MPC5200B Users Guide, Rev. 1
17-6 Freescale Semiconductor
SPI Registers—MBAR + 0x0F00
17.3.4 SPI Status Re gister —MBAR + 0x0F05

Table17-7. SPI Baud Rate Selection

SPPR2 SPPR1 SPPR0 SPR2 SPR1 SPR0 SPI Module
Clock Divisor
Baud Rate
IPB 33.0
MHz
Baud Rate
IPB 66.0
MHz
Baud Rate
IPB 132.0
MHz
000000 2 16.50 MHz33.00 MHz66.00 MHz
000001 4 8.250 MHz16.50 MHz33.00 MHz
000010 8 4.125 MHz8.250 MHz16.50 MHz
000011 16 2.063 MHz4.125 MHz8.250 MHz
....
111100 256 128.9 KHz257.8 KHz512.6 KHz
111101 512 64.45 KHz128.9 KHz257.8 KHz
111110 1024 32.23 KHz64.45 KHz128.9 KHz
111111 2048 16.1 KHz32.23 KHz64.45 KHz

Table17-8. SPI Status Register

msb 0 1 2 3 4 5 6 7 lsb
R SPIF WCOL Reser ved MODF Reserved
W
RESET:00000000
Bit Name Description
0 SPIF SPI Interrupt flag—bit sets after 8th SCK cycle in a data transfer. Bit is cleared by an SPISR
register read (with SPIF set) followed by an SPI data register read or write access.
0 = Transfer not yet complete
1 = New data copied to SPIDR
1 WCOL Write Collision flag—bit indicates a serial transfer was in progress when the MCU tried to write
new data into the SPI data register. The flag is cleared automatically by an SPI status register
read (with WCOL set) followed by a SPI data register read or write access.
0 = Write collision did not occur
1 = Write collision occurred
2—Reserved
3 MODF Mode Fault flag—bit sets if SS input goes low while SPI is configured as a master. Flag is cleared
automatically by an SPI status register read (with MODF set) followed by a SPI control register
1 write.
0 = Mode fault did not occur
1 = Mode fault occurred
4:7 — Reserved