English
Language : 

MC68HC08AZ16 Datasheet, PDF (244/527 Pages) Motorola, Inc – HCMOS Microcontroller Unit
Serial Peripheral Interface Module (SPI)
I/O registers
The following formula is used to calculate the SPI baud rate:
where:
Baud rate= CGMOUT
2 X BD
CGMOUT = base clock output of the clock generator module (CGM)
BD = baud rate divisor
SPI data register
(SPDR)
The SPI data register is the read/write buffer for the receive data register
and the transmit data register. Writing to the SPI data register writes data
into the transmit data register. Reading the SPI data register reads data
from the receive data register. The transmit data and receive data
registers are separate buffers that can contain different values. See
Figure 2.
SPDR
Read:
Write:
Reset:
Bit 7
6
5
4
3
2
R7
R6
R5
R4
R3
R2
T7
T6
T5
T4
T3
T2
Indeterminate after reset
Figure 15. SPI data register (SPDR)
1
Bit 0
R1
R0
T1
T0
R7:R0/T7:T0 — Receive/Transmit data bits
NOTE: Read-modify-write instructions should not be used on the SPI data
register since the buffer read is not the same as the buffer written.
35-spi
MOTOROLA
Serial Peripheral Interface Module (SPI)
MC68HC08AZ32
243