MC68HC908AP16CFA MOTOROLA [Motorola, Inc], MC68HC908AP16CFA Datasheet - Page 307

no-image

MC68HC908AP16CFA

Manufacturer Part Number
MC68HC908AP16CFA
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
15.9 Resetting the SPI
MC68HC908AP Family — Rev. 2.5
MOTOROLA
The following sources in the SPI status and control register can generate
CPU interrupt requests:
Any system reset completely resets the SPI. Partial resets occur
whenever the SPI enable bit (SPE) is low. Whenever SPE is low, the
following occurs:
These items are reset only by a system reset:
By not resetting the control bits when SPE is low, the user can clear SPE
between transmissions without having to set all control bits again when
SPE is set back high for the next transmission.
Freescale Semiconductor, Inc.
For More Information On This Product,
The shift register is cleared.
All control bits in the SPSCR register (MODFEN, ERRIE, SPR1,
SPI receiver full bit (SPRF) — The SPRF bit becomes set every
time a byte transfers from the shift register to the receive data
register. If the SPI receiver interrupt enable bit, SPRIE, is also set,
SPRF generates an SPI receiver/error CPU interrupt request.
SPI transmitter empty (SPTE) — The SPTE bit becomes set every
time a byte transfers from the transmit data register to the shift
register. If the SPI transmit interrupt enable bit, SPTIE, is also set,
SPTE generates an SPTE CPU interrupt request.
The SPTE flag is set.
Any transmission currently in progress is aborted.
The SPI state counter is cleared, making it ready for a new
complete transmission.
All the SPI port logic is defaulted back to being general-purpose
I/O.
All control bits in the SPCR register
and SPR0)
The status flags SPRF, OVRF, and MODF
Go to: www.freescale.com
Serial Peripheral Interface Module (SPI)
Resetting the SPI
Data Sheet
307

Related parts for MC68HC908AP16CFA