??? 06/14/05 14:31 Read: times |
#94892 - SPI enabled after CPOL and CPHA |
AT89C51RD2 data sheet Page 67:
1. The SPI Module should be configured as a Master before it is enabled (SPEN set). ... 4. Before writing to the CPOL and CPHA bits, the SPI should be disabled (SPEN = ’0’). Does it mean instead of MOV SPCON,#01110001B;Master with SS disabled @ f/4=2.7648MHz(2.8935us per byte) Where SPI configuration is done in the same MOV which enables the SPI, we should use(Notice bit 6) MOV SPCON,#00110001B;Master with SS disabled @ f/4=2.7648MHz(2.8935us per byte) MOV SPCON,#01110001B;Enable SPI (SPEN set) after setting MSTR, CPOL and CPHA bits Where bit 7 is 'manually' set in a second MOV instruction?(looks rather eccentric) |
Topic | Author | Date |
SPI enabled after CPOL and CPHA | 01/01/70 00:00 | |
probably yes | 01/01/70 00:00 | |
one way stream of data possible? | 01/01/70 00:00 | |
One way is often the case | 01/01/70 00:00 | |
MISO left unconnected? | 01/01/70 00:00 | |
Re: MISO left unconnected?![]() | 01/01/70 00:00 | |
one-way stream | 01/01/70 00:00 | |
MISO? | 01/01/70 00:00 |