MC68HC705C4ACB MOTOROLA [Motorola, Inc], MC68HC705C4ACB Datasheet - Page 142

no-image

MC68HC705C4ACB

Manufacturer Part Number
MC68HC705C4ACB
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
Serial Peripheral Interface (SPI)
11.7.3 Overrun Error
11.8 SPI Interrupts
11.9 SPI I/O Registers
Technical Data
142
Failing to read the byte in the SPDR before a subsequent byte enters the
shift register causes an overrun condition. In an overrun condition, all
incoming data is lost until software clears SPIF. The overrun condition
has no flag.
The SPIF bit in the SPSR indicates a byte has shifted into or out of the
SPDR. The SPIF bit is a source of SPI interrupt requests. The SPI
interrupt enable bit (SPIE) in the SPCR is the local mask for SPIF
interrupts.
The MODF bit in the SPSR indicates a mode error and is a source of SPI
interrupt requests. The MODF bit is set when a logic 0 occurs on the
PD5/SS pin while the MSTR bit is set. The SPI interrupt enable bit (SPIE)
in the SPCR is the local mask for MODF interrupts.
These input/output (I/O) registers control and monitor SPI operation:
– CPHA = 1 — A slave SPI can cause a write collision error by
SPI data register (SPDR)
SPI control register (SPCR)
SPI status register (SPSR)
writing to the SPDR while receiving a transmission, that is,
between the first active SCK edge and the end of the eighth
SCK cycle. The error does not affect the transmission from the
master SPI, but the byte that caused the error is lost.
Serial Peripheral Interface (SPI)
MC68HC705C4A • MC68HSC705C4A — Rev. 3.0
MOTOROLA

Related parts for MC68HC705C4ACB