English
Language : 

MC68HC08AS32A Datasheet, PDF (14/296 Pages) Motorola, Inc – Microcontrollers
Table of Contents
Freescale Semiconductor, Inc.
Data Sheet
14
14.3 Reset and System Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
14.3.1 External Pin Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
14.3.2 Active Resets from Internal Sources . . . . . . . . . . . . . . . . . . . . . . . 203
14.3.2.1 Power-On Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
14.3.2.2 Computer Operating Properly (COP) Reset . . . . . . . . . . . . . . . . 205
14.3.2.3 Illegal Opcode Reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
14.3.2.4 Illegal Address Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
14.3.2.5 Low-Voltage Inhibit (LVI) Reset . . . . . . . . . . . . . . . . . . . . . . . . . 205
14.4 SIM Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
14.4.1 SIM Counter During Power-On Reset . . . . . . . . . . . . . . . . . . . . . . 206
14.4.2 SIM Counter During Stop Mode Recovery . . . . . . . . . . . . . . . . . . . 206
14.4.3 SIM Counter and Reset States . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
14.5 Program Exception Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
14.5.1 Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
14.5.1.1 Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
14.5.1.2 SWI Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
14.5.2 Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
14.5.3 Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
14.5.4 Status Flag Protection in Break Mode . . . . . . . . . . . . . . . . . . . . . . 210
14.6 Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
14.6.1 Wait Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
14.6.2 Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
14.7 SIM Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
14.7.1 SIM Break Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
14.7.2 SIM Reset Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
14.7.3 SIM Break Flag Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . 214
Section 15. Serial Peripheral Interface (SPI)
15.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
15.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
15.3 Pin Name and Register Name Conventions . . . . . . . . . . . . . . . . . . . . . 215
15.4 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
15.4.1 Master Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
15.4.2 Slave Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
15.5 Transmission Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
15.5.1 Clock Phase and Polarity Controls . . . . . . . . . . . . . . . . . . . . . . . . . 220
15.5.2 Transmission Format When CPHA = 0. . . . . . . . . . . . . . . . . . . . . . 221
15.5.3 Transmission Format When CPHA = 1. . . . . . . . . . . . . . . . . . . . . . 222
15.5.4 Transmission Initiation Latency . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
15.6 Error Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
15.6.1 Overflow Error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
15.6.2 Mode Fault Error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
15.7 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Table of Contents
For More Information On This Product,
Go to: www.freescale.com
MC68HC08AS32A — Rev. 1
MOTOROLA