English
Language : 

MC68HC812A4 Datasheet, PDF (263/342 Pages) Motorola, Inc – 16-bit device composed of standard on-chip peripheral modules connected by an intermodule bus. Modules include
Advance Information — MC68HC812A4
Section 15. Serial Peripheral Interface (SPI)
15.1 Contents
Advance Information
MOTOROLA
15.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .264
15.3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .264
15.4 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265
15.5 Register Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
15.6 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
15.6.1 Master Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .267
15.6.2 Slave Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .268
15.6.3 Baud Rate Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . .268
15.6.4 Clock Phase and Polarity . . . . . . . . . . . . . . . . . . . . . . . . . .268
15.6.5 SS Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .271
15.6.6 Single-Wire Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . .272
15.7 SPI Register Descriptions and Reset Initialization . . . . . . . . .273
15.7.1 SPI Control Register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . .273
15.7.2 SPI Control Register 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . .275
15.7.3 SPI Baud Rate Register . . . . . . . . . . . . . . . . . . . . . . . . . . .276
15.7.4 SPI Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .277
15.7.5 SPI Data Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .278
15.8 External Pins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .279
15.8.1 MISO (Master In, Slave Out) . . . . . . . . . . . . . . . . . . . . . . .279
15.8.2 MOSI (Master Out, Slave In) . . . . . . . . . . . . . . . . . . . . . . .279
15.8.3 SCK (Serial Clock) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .279
15.8.4 SS (Slave Select) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .280
15.9 Low-Power Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .280
15.9.1 Run Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .280
15.9.2 Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .280
15.9.3 Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .281
15.10 Interrupt Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .281
15.11 General-Purpose I/O Ports . . . . . . . . . . . . . . . . . . . . . . . . . . .281
Serial Peripheral Interface (SPI)
MC68HC812A4 — Rev. 3.0
263