English
Language : 

MC9S12XD256MAL Datasheet, PDF (525/1348 Pages) Freescale Semiconductor, Inc – Freescale’s Scalable Controller Area Network
12.3.2.4 SPI Status Register (SPISR)
Chapter 12 Serial Peripheral Interface (S12SPIV4)
7
6
5
4
3
2
1
0
R SPIF
0
SPTEF
MODF
0
0
0
0
W
Reset
0
0
1
0
0
0
0
0
= Unimplemented or Reserved
Figure 12-6. SPI Status Register (SPISR)
Read: Anytime
Write: Has no effect
Table 12-7. SPISR Field Descriptions
Field
7
SPIF
5
SPTEF
4
MODF
Description
SPIF Interrupt Flag — This bit is set after a received data byte has been transferred into the SPI data register.
This bit is cleared by reading the SPISR register (with SPIF set) followed by a read access to the SPI data
register.
0 Transfer not yet complete.
1 New data copied to SPIDR.
SPI Transmit Empty Interrupt Flag — If set, this bit indicates that the transmit data register is empty. To clear
this bit and place data into the transmit data register, SPISR must be read with SPTEF = 1, followed by a write
to SPIDR. Any write to the SPI data register without reading SPTEF = 1, is effectively ignored.
0 SPI data register not empty.
1 SPI data register empty.
Mode Fault Flag — This bit is set if the SS input becomes low while the SPI is configured as a master and mode
fault detection is enabled, MODFEN bit of SPICR2 register is set. Refer to MODFEN bit description in
Section 12.3.2.2, “SPI Control Register 2 (SPICR2)”. The flag is cleared automatically by a read of the SPI status
register (with MODF set) followed by a write to the SPI control register 1.
0 Mode fault has not occurred.
1 Mode fault has occurred.
MC9S12XDP512 Data Sheet, Rev. 2.21
Freescale Semiconductor
525