English
Language : 

MC9S12C Datasheet, PDF (414/680 Pages) Motorola, Inc – 16-Bit Microcontroller
Chapter 14 Serial Peripheral Interface (SPIV3) Block Description
14.1.3 Block Diagram
Figure 14-1 gives an overview on the SPI architecture. The main parts of the SPI are status, control, and
data registers, shifter logic, baud rate generator, master/slave control logic, and port control logic.
SPI
SPI
Interrupt
Request
Bus Clock
2
SPI Control Register 1
2
SPI Control Register 2
BIDIROE
SPC0
SPI Status Register
SPIF MODF SPTEF
Interrupt Control
Baud Rate Generator
Counter
Slave
Control
CPOL
CPHA
Phase + SCK in
Slave Baud Rate Polarity
Control
Master Baud Rate
Phase + SCK out
Polarity
Control
Port
Control
Master
Logic
Control
Prescaler Clock Select Baud Rate
Shift
Clock
Sample
Clock
SPPR 3 SPR 3
SPI Baud Rate Register
Shifter
LSBFE=1
LSBFE=0
data in
SPI Data Register
8
LSBFE=1
8
MSB
LSB
LSBFE=0
LSBFE=0
LSBFE=1
data out
MOSI
SCK
SS
Figure 14-1. SPI Block Diagram
14.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 SPIV3 module has a total of four external pins.
14.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.
414
MC9S12C-Family / MC9S12GC-Family
Freescale Semiconductor
Rev 01.23