English
Language : 

MC9S12XD256MAL Datasheet, PDF (522/1348 Pages) Freescale Semiconductor, Inc – Freescale’s Scalable Controller Area Network
Chapter 12 Serial Peripheral Interface (S12SPIV4)
Pin Mode
Normal
Bidirectional
Normal
Bidirectional
Table 12-4. Bidirectional Pin Configurations
SPC0
0
1
0
1
BIDIROE
MISO
Master Mode of Operation
X
Master In
0
MISO not used by SPI
1
Slave Mode of Operation
X
Slave Out
0
Slave In
1
Slave I/O
MOSI
Master Out
Master In
Master I/O
Slave In
MOSI not used by SPI
12.3.2.3 SPI Baud Rate Register (SPIBR)
7
6
5
4
3
R
0
0
SPPR2
SPPR1
SPPR0
W
Reset
0
0
0
0
0
= Unimplemented or Reserved
2
SPR2
0
Figure 12-5. SPI Baud Rate Register (SPIBR)
1
SPR1
0
0
SPR0
0
Read: Anytime
Write: Anytime; writes to the reserved bits have no effect
Table 12-5. SPIBR Field Descriptions
Field
Description
6–4
SPI Baud Rate Preselection Bits — These bits specify the SPI baud rates as shown in Table 12-6. In master
SPPR[2:0] mode, a change of these bits will abort a transmission in progress and force the SPI system into idle state.
2–0
SPI Baud Rate Selection Bits — These bits specify the SPI baud rates as shown in Table 12-6. In master mode,
SPR[2:0] a change of these bits will abort a transmission in progress and force the SPI system into idle state.
The baud rate divisor equation is as follows:
BaudRateDivisor = (SPPR + 1) • 2(SPR + 1)
The baud rate can be calculated with the following equation:
Baud Rate = BusClock / BaudRateDivisor
NOTE
For maximum allowed baud rates, please refer to the SPI Electrical
Specification in the Electricals chapter of this data sheet.
Eqn. 12-1
Eqn. 12-2
MC9S12XDP512 Data Sheet, Rev. 2.21
522
Freescale Semiconductor