English
Language : 

MC68HC11P2 Datasheet, PDF (135/268 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Serial Peripheral Interface (SPI)
SPI registers
7.7.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)
not
affected
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 first 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.
7.7.4 OPT2 — System configuration options register 2
Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1
System config. options 2 (OPT2)
$0038
LIRDV
CWOM
STRC
H
IRVNE
LSBF
SPR2
0
bit 0
State
on reset
0 000x 0000
LIRDV — LIR driven (refer to Operating Modes and On-Chip Memory)
1 = Enable LIR drive high pulse.
0 = LIR only driven low – requires pull-up on pin.
CWOM — Port C wired-OR mode (refer to Parallel Input/Output)
1 = Port C outputs are open-drain.
0 = Port C operates normally.
STRCH — Stretch external accesses (refer to Operating Modes and
On-Chip Memory)
1 = Off-chip accesses are extended by one E clock cycle.
0 = Normal operation.
MC68HC11P2 — Rev 1.0
Serial Peripheral Interface (SPI)
For More Information On This Product,
Go to: www.freescale.com
Technical Data