??? 03/26/11 20:57 Read: times |
#181649 - Looks like mode #1 to me Responding to: ???'s previous message |
mov SPCON,#10010110b ; Fclk Periph/128, Master Mode, SPI Mode 3 This looks like mode #1 to me. But it would still clock out on the SCK pin. If your chips do not possess a SPCON register, you can write a pattern and try to read it back. I presume that a non-existent SPI will not read back correctly. Most C compiler header files will give symbolic names for your bit-positions or bit-masks. I do not know what you have in your ASM header files, but using names is easier to read than magic values. Admittedly, many people like binary constants. Magic Hex constants or even decimal constants require a special type of brain cell. If your chips do not contain the SPI peripheral, you will have to bit-bang. David. |
Topic | Author | Date |
Hardware SPI in AT89C51RD2 | 01/01/70 00:00 | |
Hardware SPI in AT89C51RD2 | 01/01/70 00:00 | |
tried a few things | 01/01/70 00:00 | |
Temic marked as Atmel | 01/01/70 00:00 | |
thankyou Jan | 01/01/70 00:00 | |
signature bytes | 01/01/70 00:00 | |
signature | 01/01/70 00:00 | |
maybe![]() | 01/01/70 00:00 | |
Looks like mode #1 to me | 01/01/70 00:00 | |
header files | 01/01/70 00:00 | |
Spend the time to create proper header file | 01/01/70 00:00 | |
RE: i could never find the right header file | 01/01/70 00:00 |