English
Language : 

MC68HC908LJ24 Datasheet, PDF (287/464 Pages) Motorola, Inc – Microcontrollers
Data Sheet — MC68HC908LJ24
Section 14. Serial Peripheral Interface Module (SPI)
14.1 Contents
14.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
14.3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
14.4 Pin Name Conventions and I/O Register Addresses . . . . . . . 289
14.5 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .290
14.5.1 Master Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
14.5.2 Slave Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
14.6 Transmission Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .293
14.6.1 Clock Phase and Polarity Controls. . . . . . . . . . . . . . . . . . . 293
14.6.2 Transmission Format When CPHA = 0 . . . . . . . . . . . . . . . 294
14.6.3 Transmission Format When CPHA = 1 . . . . . . . . . . . . . . . 296
14.6.4 Transmission Initiation Latency . . . . . . . . . . . . . . . . . . . . . 297
14.7 Queuing Transmission Data . . . . . . . . . . . . . . . . . . . . . . . . . . 299
14.8 Error Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
14.8.1 Overflow Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
14.8.2 Mode Fault Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
14.9 Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .304
14.10 Resetting the SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
14.11 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
14.11.1 Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .307
14.11.2 Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .307
14.12 SPI During Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . 308
14.13 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
14.13.1 MISO (Master In/Slave Out) . . . . . . . . . . . . . . . . . . . . . . . . 309
14.13.2 MOSI (Master Out/Slave In) . . . . . . . . . . . . . . . . . . . . . . . . 309
MC68HC908LJ24/LK24 — Rev. 2.1
Freescale Semiconductor
Serial Peripheral Interface Module (SPI)
Data Sheet
287