Datasheet

SPIx_M = 0xXX
Holds bits 0–7 of the hardware match buffer.
SPIx_D = 0xxx
Holds bits 0–7 of the data to be transmitted by the transmit buffer and received by the receive buffer.
RESET
CONTINUE
READ SPMF WHILE SET
TO CLEAR FLAG,
THEN WRITE A 1 TO IT
YES
SPMF = 1
?
NO
NO
NO
YES
YES
YES
READ
WRITE TO
SPRF = 1
?
SPTEF = 1
?
INITIALIZE SPI
SPIx_C1 = 0x54
SPIx_C2 =
SPIx_BR = 0x00
0x80
SPIx_D
SPIx_D
Figure 16-18. Initialization Flowchart Example for SPI Master Device
Chapter 16 8-Bit Serial Peripheral Interface (8-bit SPI)
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
Freescale Semiconductor, Inc. 451