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)
MSTR — SPI Master/Slave Mode Select Bit
1 = Master mode
0 = Slave mode
CPOL — SPI Clock Polarity Bit
This bit selects an inverted or non-inverted SPI clock. To transmit data
between SPI modules, the SPI modules must have identical CPOL
values.
1 = Active-low clocks selected; SCK idles high
0 = Active-high clocks selected; SCK idles low
CPHA — SPI Clock Phase Bit
This bit is used to shift the SCK serial clock.
1 = The first SCK edge is issued at the beginning of the 8-cycle
transfer operation
0 = The first SCK edge is issued one-half cycle into the 8-cycle
transfer operation
SSOE — Slave Select Output Enable
The SS output feature is enabled only in the master mode by
asserting the SSOE as shown in Table 76.
LSBFE — SPI LSB-First Enable
This bit does not affect the position of the msb and lsb in the data
register. Reads and writes of the data register always have the msb
in bit 7.
1 = Data is transferred least significant bit first.
0 = Data is transferred most significant bit first.
Table 76 SS
Input / Output Selection
MOD
FEN
SSOE Master Mode Slave Mode
0 0 ---- SS input
0 1 ---- SS input
10SS input with MODF feature SS input
11 SS output SS input
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...