|
MC68HC11KW1 Datasheet, PDF (151/238 Pages) Motorola, Inc – High-density complementary metal oxide semiconductor HCMOS) microcontroller unit | |||
|
◁ |
8.5.3 SPDR â SPI data register
SPI data (SPDR)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$002A (bit 7) (6) (5) (4) (3) (2) (1) (bit 0) undeï¬ned
The SPDR is used when transmitting or receiving data on the serial bus. Only a write to this
register initiates transmission or reception of a byte, and this only occurs in the master device. At
the completion of transferring a byte of data, the SPIF status bit is set in both the master and slave
devices.
A read of the SPDR is actually a read of a buffer. To prevent an overrun and the loss of the byte
that caused the overrun, the ï¬rst SPIF must be cleared by the time a second transfer of data from
the shift register to the read buffer is initiated.
SPI is double buffered in and single buffered out.
8.5.4 OPT2 â System conï¬guration options register 2
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
System conï¬g. options 2 (OPT2) $0038 LIRDV CWOM 0 IRVNE LSBF SPR2 XDV1 XDV0 000x 0000
8
LIRDV â LIR driven (refer to Section 4)
1 (set) â Enable LIR drive high pulse.
0 (clear) â LIR not driven high on MODA/LIR pin.
CWOM â Port C wired-OR mode (refer to Section 6)
1 (set) â Port C outputs are open-drain.
0 (clear) â Port C operates normally.
Bit 5 â Not implemented; always reads zero.
IRVNE â Internal read visibility/not E (refer to Section 4)
1 (set) â Data from internal reads is driven out of the external data bus.
0 (clear) â No visibility of internal reads on external bus.
In single chip mode this bit determines whether the E clock drives out from the chip.
1 (set) â E pin is driven low.
0 (clear) â E clock is driven out from the chip.
MC68HC11KW1
SERIAL PERIPHERAL INTERFACE
8-9
|
▷ |