| ??? 07/04/06 02:38 Read: times |
#119593 - 89v51rd2 SPI register mapping? |
The Philips data sheet I have for the RD2 gives the following bit addresses for the SPI control register SPCTL (@D5H):
SPR0 BIT 080H ;SPCTL.0 - CLOCK RATE SELECT 0 SPR1 BIT 081H ;SPCTL.1 - CLOCK RATE SELECT 1 CPHA BIT 082H ;SPCTL.2 - CLOCK PHASE CONTROL CPOL BIT 083H ;SPCTL.3 - CLOCK POLARITY SELECT MSTR BIT 084H ;SPCTL.4 - MASTER - /SLAVE SELECT DORD BIT 085H ;SPCTL.5 - DATA TRANSMISSION ORDER SPEN BIT 086H ;SPCTL.6 - SPI ENABLE SPIE BIT 087H ;SPCTL.7 - SPI INTERRUPT ENABLE Couple of points, these are the same bit addresses as P0 and I thought only SFRs with byte addresses x0H and x8H could be bit addressable. Anyone able to shed any light on what are the real bit addresses? Also anyone able to tell me whether the SPI configuration register (@0AAH) is called SPCFG (on pg 13) or SPSR (on pg 44) and what are the bit addresses of SPIF and WCOL, SPSR.7 and SPSR.6 respectively. I have checked that it's the latest data sheet, rev.03 Dec 2004. Any assistance appreciated. |
| Topic | Author | Date |
| 89v51rd2 SPI register mapping? | 01/01/70 00:00 | |
| use the SST datasheet | 01/01/70 00:00 | |
Thanks Jan | 01/01/70 00:00 |



