![](http://datasheet.mmic.net.cn/290000/HC908AT32GRS_datasheet_16130418/HC908AT32GRS_14.png)
L
G
R
Table of Contents
General Release Specification
MC68HC908AT32
—
Rev. 2.0
14
Table of Contents
MOTOROLA
16.9
16.9.1
16.9.2
16.9.3
16.9.4
16.9.5
16.9.6
16.9.7
I/O Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .234
SCI Control Register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . .234
SCI Control Register 2 . . . . . . . . . . . . . . . . . . . . . . . . . . .237
SCI Control Register 3 . . . . . . . . . . . . . . . . . . . . . . . . . . .241
SCI Status Register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243
SCI Status Register 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247
SCI Data Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248
SCI Baud Rate Register . . . . . . . . . . . . . . . . . . . . . . . . . .249
Section 17. Serial Peripheral Interface (SPI)
17.1
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253
17.2
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254
17.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254
17.4
Pin Name and Register Name Conventions. . . . . . . . . . . . . .255
17.5
17.5.1
17.5.2
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .256
Master Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .258
Slave Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259
17.6
17.6.1
17.6.2
17.6.3
17.6.4
Transmission Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .260
Clock Phase and Polarity Controls . . . . . . . . . . . . . . . . . .260
Transmission Format When CPHA = 0. . . . . . . . . . . . . . .261
Transmission Format When CPHA = 1. . . . . . . . . . . . . . .262
Transmission Initiation Latency. . . . . . . . . . . . . . . . . . . . .263
17.7
17.7.1
17.7.2
Error Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265
Overflow Error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265
Mode Fault Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .267
17.8
Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .269
17.9
Queuing Transmission Data. . . . . . . . . . . . . . . . . . . . . . . . . .270
17.10 Resetting the SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .272
17.11 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .273
17.11.1
Wait Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .273
17.11.2
Stop Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .273
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.