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)
Register Descriptions
MC9S12DP256 — Revision 1.1
Serial Peripheral Interface (SPI)
MODF — Mode Fault Flag
This bit is set if the SS
input becomes low while the SPI is configured
as a master. 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. The MODF flag is set only if the MODFEN bit of SPICR2
register is set, Refer to MODFEN bit description in SPI Control
Register 2 (SPICR2).
1 = Mode fault has occurred.
0 = Mode fault has not occurred.
SPI Data Register
(SPIDR)
Read: anytime; normally read only after SPIF is set
Write: anytime; see SPTEF
The SPI Data register is both the input and output register for SPI
data. A write to this register allows a data byte to be queued and
transmitted. For a SPI configured as a master, a queued data byte is
transmitted immediately after the previous transmission has
completed. The SPI Transmitter empty flag in SPISR indicates when
the SPI data register is ready to accept new data.
NOTE:
Do not write to the SPI data register unless the SPTEF bit is high.
Reading the data can occur anytime from after the SPIF is set to
before the end of the next transfer. If the SPIF is not serviced by the
end of the successive transfers, those data bytes are lost and the data
within the SPIDR retains the first byte until SPIF is serviced.
Address Offset: $0005
Bit 7 6 5 4 3 2 1 Bit 0
R
Bit 7 6 5 4 3 2 2 Bit 0
W
Reset: 0 0 0 0 0 0 0 0
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...