English
Language : 

MC68HC08AZ32 Datasheet, PDF (199/424 Pages) Motorola, Inc – Advance Information
Freescale Semiconductor, Inc.
Contents
1-spi
MOTOROLA
Serial Peripheral Interface Module (SPI)
SPI
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Pin name conventions and I/O register addresses . . . . . . . . . . . . . . 199
Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Master mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Slave mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Transmission formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Clock phase and polarity controls . . . . . . . . . . . . . . . . . . . . . . . . . 205
Transmission format when CPHA = ‘0’ . . . . . . . . . . . . . . . . . . . . . 205
Transmission format when CPHA = ‘1’ . . . . . . . . . . . . . . . . . . . . . 207
Transmission initiation latency . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Error conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Overflow error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Mode fault error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
Queuing transmission data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
Resetting the SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Low-power modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
WAIT mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
STOP mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
SPI during break interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
I/O Signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
MISO (Master in/Slave out). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
MOSI (Master out/Slave in). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
SPSCK (serial clock). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
SS (slave select) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
VSS (clock ground) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
I/O registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
SPI control register (SPCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
SPI status and control register (SPSCR) . . . . . . . . . . . . . . . . . . . 226
SPI data register (SPDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Serial Peripheral Interface Module (SPI)
For More Information On This Product,
Go to: www.freescale.com
MC68HC08AZ32
197