Section 7. system integration module (sim) – Freescale Semiconductor MC68HC08KH12 User Manual
Page 7

MC68HC(7)08KH12
—
Rev. 1.1
Advance Information
Freescale Semiconductor
7
Section 7. System Integration Module (SIM)
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
SIM Bus Clock Control and Generation . . . . . . . . . . . . . . . . . . 65
Bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Clock Start-Up from POR . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Clocks in Stop Mode and Wait Mode . . . . . . . . . . . . . . . . . 66
Reset and System Initialization. . . . . . . . . . . . . . . . . . . . . . . . . 66
External Pin Reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Active Resets from Internal Sources . . . . . . . . . . . . . . . . . . 67
Power-On Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Computer Operating Properly (COP) Reset. . . . . . . . . . . 69
Illegal Opcode Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Illegal Address Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Universal Serial Bus Reset . . . . . . . . . . . . . . . . . . . . . . . 70
SIM Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
SIM Counter During Power-On Reset . . . . . . . . . . . . . . . . . 71
SIM Counter During Stop Mode Recovery . . . . . . . . . . . . . 71
SIM Counter and Reset States . . . . . . . . . . . . . . . . . . . . . . 71
Exception Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
SWI Instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Interrupt Status Registers . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Interrupt Status Register 1 . . . . . . . . . . . . . . . . . . . . . . . . 77
Interrupt Status Register 2 . . . . . . . . . . . . . . . . . . . . . . . . 78
Interrupt Status Register 3 . . . . . . . . . . . . . . . . . . . . . . . . 78
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Break Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Status Flag Protection in Break Mode. . . . . . . . . . . . . . . . . 79
Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
SIM Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Break Status Register (BSR). . . . . . . . . . . . . . . . . . . . . . . . 83