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)
SPI Baud Rate
Register (SPIBR)
Read: anytime
Write: anytime; writes to unimplemented bits have no effect
NOTE:
Writing to this register during data transfers may cause spurious results
SPPR2–SPPR0 — SPI Baud Rate Preselection Bits
SPR2–SPR0 — SPI Baud Rate Selection Bits
These bits specify the SPI baud rates as shown in the table below
The baud rate divisor equation is as follows
Table 77 Bidirectional Pin Configurations
Pin Mode SPC0 MSTR
MISO
(1)
1. Slave output is enabled if BIDIROE bit = 1, SS = 0, and MSTR = 0 (C)
MOSI
(2)
2. Master output is enabled if BIDIROE bit = 1 and MSTR = 1 (D)
SCK
(3)
3. SCK output is enabled if MSTR = 1 (B, D)
SS
(4)
4. SS output is enabled if MODFEN bit = 1, SSOE = 1, and MSTR = 1 (B, D).
A
Normal 0
0 Slave Out Slave In SCK in SS in
B 1 Master In Master Out SCK out SS I/O
C
Bidirectional 1
0 Slave I/O --- SCK in SS In
D 1 --- Master I/O SCK out SS I/O
Address Offset: $0002
Bit 7 6 5 4 3 2 1 Bit 0
R 0
SPPR2 SPPR1 SPPR0
0
SPR2 SPR1 SPR0
W
Reset: 000 0 0 0 0 0
= Unimplemented or Reserved
BaudRateDivisor SPPR 1+()2•
SPR 1+()
=
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...