English
Language : 

MC68HC08AZ0 Datasheet, PDF (219/444 Pages) Motorola, Inc – Advance Information
Freescale Semiconductor, Inc.
Contents
1-spi
MOTOROLA
Serial Peripheral Interface Module (SPI)
SPI
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
Pin name conventions and I/O register addresses . . . . . . . . . . . . . . 219
Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Master mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Slave mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Transmission formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
Clock phase and polarity controls . . . . . . . . . . . . . . . . . . . . . . . . . 225
Transmission format when CPHA = ‘0’ . . . . . . . . . . . . . . . . . . . . . 225
Transmission format when CPHA = ‘1’ . . . . . . . . . . . . . . . . . . . . . 227
Transmission initiation latency . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Error conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Overflow error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Mode fault error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
Queuing transmission data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Resetting the SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Low-power modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
WAIT mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
STOP mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
SPI during break interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
I/O Signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
MISO (Master in/Slave out). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
MOSI (Master out/Slave in). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
SPSCK (serial clock). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
SS (slave select) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
VSS (clock ground) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
I/O registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
SPI control register (SPCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
SPI status and control register (SPSCR) . . . . . . . . . . . . . . . . . . . 246
SPI data register (SPDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Serial Peripheral Interface Module (SPI)
For More Information On This Product,
Go to: www.freescale.com
MC68HC08AZ0
217