Freescale Semiconductor, Inc.
Table of Contents
8.1
8.2
8.3
8.4
8.5
8.5.1
8.5.2
8.5.3
8.5.4
8.6
8.7
8.7.1
8.7.2
8.7.3
Section 8. Serial Peripheral Interface (SPI)
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
SPI Transfer Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Clock Phase and Polarity Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
SPI Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Master In/Slave Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Master Out/Slave In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Serial Clock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Slave Select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
SPI System Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
SPI Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Serial Peripheral Control Register . . . . . . . . . . . . . . . . . . . . . . . . . 138
Serial Peripheral Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Serial Peripheral Data I/O Register . . . . . . . . . . . . . . . . . . . . . . . . 140
Section 9. Timing System
9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
9.2 Timer Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
9.3
9.3.1
9.3.2
9.3.3
Input Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Timer Control Register 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Timer Input Capture Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Timer Input Capture 4/Output Compare 5 Register . . . . . . . . . . . . 148
9.4 Output Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
9.4.1
Timer Output Compare Registers. . . . . . . . . . . . . . . . . . . . . . . . . . 149
9.4.2
Timer Compare Force Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
9.4.3
Output Compare Mask Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
9.4.4
Output Compare Data Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
9.4.5
Timer Counter Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
9.4.6
Timer Control Register 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
9.4.7
Timer Interrupt Mask 1 Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
9.4.8
Timer Interrupt Flag 1 Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
9.4.9
Timer Interrupt Mask 2 Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
9.4.10 Timer Interrupt Flag Register 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
9.5
9.5.1
9.5.2
9.5.3
Real-Time Interrupt (RTI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Timer Interrupt Mask Register 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Timer Interrupt Flag Register 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Pulse Accumulator Control Register. . . . . . . . . . . . . . . . . . . . . . . . 159
9.6 Computer Operating Properly (COP) Watchdog Function . . . . . . . . . . 159
9.7
9.7.1
9.7.2
9.7.3
Pulse Accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Pulse Accumulator Control Register. . . . . . . . . . . . . . . . . . . . . . . . 161
Pulse Accumulator Count Register. . . . . . . . . . . . . . . . . . . . . . . . . 162
Pulse Accumulator Status and Interrupt Bits . . . . . . . . . . . . . . . . . 162
M68HC11E Family — Rev. 5
MOTOROLA
Table of Contents
For More Information On This Product,
Go to: www.freescale.com
Data Sheet
11