MC68HC908LJ12CPB FREESCALE [Freescale Semiconductor, Inc], MC68HC908LJ12CPB Datasheet - Page 295

no-image

MC68HC908LJ12CPB

Manufacturer Part Number
MC68HC908LJ12CPB
Description
8-bit microcontroller units
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Serial Peripheral Interface Module (SPI)
14.14.2 SPI Status and Control Register
Technical Data
296
Address: $0011
The SPI status and control register contains flags to signal these
conditions:
The SPI status and control register also contains bits that perform these
functions:
SPRF — SPI Receiver Full Bit
Reset:
Read:
Write:
This clearable, read-only flag is set each time a byte transfers from
the shift register to the receive data register. SPRF generates a CPU
interrupt request if the SPRIE bit in the SPI control register is set also.
During an SPRF CPU interrupt, the CPU clears SPRF by reading the
SPI status and control register with SPRF set and then reading the
SPI data register. Reset clears the SPRF bit.
Figure 14-14. SPI Status and Control Register (SPSCR)
1 = Receive data register full
0 = Receive data register not full
Receive data register full
Failure to clear SPRF bit before next byte is received (overflow
error)
Inconsistent logic level on SS pin (mode fault error)
Transmit data register empty
Enable error interrupts
Enable mode fault error detection
Select master SPI baud rate
Serial Peripheral Interface Module (SPI)
SPRF
Bit 7
0
= Unimplemented
ERRIE
6
0
OVRF
5
0
MODF
4
0
SPTE
3
1
MC68HC908LJ12
MODFEN
Freescale Semiconductor
2
0
SPR1
1
0
Rev. 2.1
SPR0
Bit 0
0

Related parts for MC68HC908LJ12CPB