Datasheet
Table Of Contents
- List of Sections
- Table of Contents
- General Description
- Central Processing Unit (CPU)
- Pinout and Signal Description
- System Configuration
- Registers
- Operating Modes
- Resource Mapping
- Bus Control and Input/Output
- Resets and Interrupts
- Voltage Regulator (VREG)
- Flash EEPROM 256K
- EEPROM 4K
- Port Integration Module
- Clocks and Reset Generator (CRG)
- Pulse Width Modulator (PWM)
- Enhanced Capture Timer (ECT)
- Serial Communications Interface (SCI)
- Serial Peripheral Interface (SPI)
- Inter-IC Bus (IIC)
- MSCAN
- Analog to Digital Converter
- Byte Data Link Controller Module
- Contents
- Overview
- Features
- Block Diagram
- Register Map
- Functional Description
- Register Descriptions
- External Pin Descriptions
- Reset Initialization/Basic Operation
- Transmitting A Message
- Receiving A Message
- Transmitting An In-Frame Response (IFR)
- Receiving An In-Frame Response (IFR)
- Special BDLC Operations
- Modes of Operation
- Interrupt Operation
- Low Power Options
- Background Debug Module (BDM)
- Breakpoint (BKP) Module
- Revision History
- Glossary
- Literature Updates

Serial Peripheral Interface (SPI)
Interrupts
MC9S12DP256 — Revision 1.1
Serial Peripheral Interface (SPI)
Description of
Interrupt
Operation
The Serial Peripheral Interface only originates interrupt requests. The
following is a description of how the Serial Peripheral Interface makes a
request and how the MCU should acknowledge that request. The
interrupt vector offset and interrupt priority are chip dependent.
MODF Description MODF occurs when the master detects an error on the SS
pin. The
master SPI must be configured for the MODF feature (see Table 76).
Once MODF is set, the current transfer is halted and the following bits
are changed:
• SPE=0, The SPI automatically disables itself.
• MSTR=0, The master bit in SPICR1 resets.
The MODF interrupt is reflected in the status register MODF flag.
Clearing the flag will also clear the interrupt. This interrupt will stay active
while the MODF flag is set. MODF has an automatic clearing process
which is described in SPI Status Register (SPISR).
SPIF Description SPIF occurs when the SPI receives/transmits the last SCK edge in a
data transfer operation. Once SPIF is set, it does not clear until it is
serviced. SPIF has an automatic clearing process which is described in
SPI Status Register (SPISR). In the event that the SPIF is not serviced
before the end of the next transfer (i.e. SPIF remains active throughout
another transfer), the latter transfers will be ignored and no new data will
be copied into the SPIDR.
SPTEF Description SPTEF occurs when the SPI Data register transfers a byte into the
transmit buffer Once SPTEF is set, it does not clear until it is serviced.
SPTEF has an automatic clearing process which is described in SPI
Status Register (SPISR).
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...