English
Language : 

MC9S12HY64 Datasheet, PDF (461/792 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
Serial Peripheral Interface (S12SPIV5)
SPI
2
SPI Control Register 1
BIDIROE
2
SPI Control Register 2
SPC0
SPI
Interrupt
Request
Bus Clock
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
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
LSBFE=1
MSB LSBFE=0 LSB
LSBFE=0
LSBFE=1
Data Out
MOSI
SCK
SS
Figure 13-1. SPI Block Diagram
13.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.
13.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.
13.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.
MC9S12HY/HA-Family Reference Manual Rev. 1.04
Freescale Semiconductor
461