English
Language : 

S912XHZ512F1VAG Datasheet, PDF (601/978 Pages) Freescale Semiconductor, Inc – Covers MC9S12XHZ384, MC9S12XHZ256
Chapter 16 Serial Peripheral Interface (S12SPIV4)
SPI
2
SPI Control Register 1
BIDIROE
2
SPI Control Register 2
SPC0
SPI
Interrupt
Request
SPI Status Register
SPIF MODF SPTEF
Interrupt Control
Baud Rate Generator
Counter
Slave
Control
CPOL
CPHA
Slave Baud Rate
Master Baud Rate
Master
Control
Phase +
Polarity
Control
Phase +
Polarity
Control
SCK In
SCK Out
Port
Control
Logic
Bus Clock
Prescaler Clock Select Baud Rate
SPPR 3 SPR 3
SPI Baud Rate Register
LSBFE=1
Shift
Clock
Shifter
LSBFE=0
Sample
Clock
Data In
SPI Data Register
8
LSBFE=1
8
MSB LSBFE=0 LSB
LSBFE=0
LSBFE=1
Data Out
MOSI
SCK
SS
Figure 16-1. SPI Block Diagram
16.2 External Signal Description
This section lists the name and description of all ports including inputs and outputs that do, or may, connect
off chip. The SPI module has a total of four external pins.
16.2.1 MOSI — Master Out/Slave In Pin
This pin is used to transmit data out of the SPI module when it is configured as a master and receive data
when it is configured as slave.
16.2.2 MISO — Master In/Slave Out Pin
This pin is used to transmit data out of the SPI module when it is configured as a slave and receive data
when it is configured as master.
MC9S12XHZ512 Data Sheet, Rev. 1.06
Freescale Semiconductor
601