Typewriter User Manual

11/2/95 SECTION 1: OVERVIEW UM Rev 1
MOTOROLA MC68340 USER'S MANUAL ix
TABLE OF CONTENTS (Continued)
Paragraph Page
Number Title Number
5.4.2.3 Changing Privilege Level........................................................................ 5-39
5.5 Exception Processing ...................................................................................... 5-39
5.5.1 Exception Vectors......................................................................................... 5-40
5.5.1.1 Types of Exceptions ................................................................................. 5-41
5.5.1.2 Exception Processing Sequence .......................................................... 5-41
5.5.1.3 Exception Stack Frame............................................................................ 5-42
5.5.1.4 Multiple Exceptions.................................................................................. 5-42
5.5.2 Processing of Specific Exceptions ............................................................ 5-44
5.5.2.1 Reset ........................................................................................................... 5-44
5.5.2.2 Bus Error..................................................................................................... 5-46
5.5.2.3 Address Error............................................................................................. 5-46
5.5.2.4 Instruction Traps........................................................................................ 5-47
5.5.2.5 Software Breakpoints............................................................................... 5-47
5.5.2.6 Hardware Breakpoints............................................................................. 5-48
5.5.2.7 Format Error............................................................................................... 5-48
5.5.2.8 Illegal or Unimplemented Instructions.................................................. 5-48
5.5.2.9 Privilege Violations................................................................................... 5-49
5.5.2.10 Tracing........................................................................................................ 5-50
5.5.2.11 Interrupts..................................................................................................... 5-51
5.5.2.12 Return from Exception.............................................................................. 5-52
5.5.3 Fault Recovery............................................................................................... 5-53
5.5.3.1 Types of Faults .......................................................................................... 5-55
5.5.3.1.1 Type I—Released Write Faults........................................................... 5-55
5.5.3.1.2 Type II—Prefetch, Operand, RMW, and MOVEP Faults................. 5-56
5.5.3.1.3 Type III—Faults During MOVEM Operand Transfer ....................... 5-57
5.5.3.1.4 Type IV—Faults During Exception Processing............................... 5-57
5.5.3.2 Correcting a Fault ..................................................................................... 5-57
5.5.3.2.1 Type I—Completing Released Writes via Software....................... 5-57
5.5.3.2.2 Type I—Completing Released Writes via RTE................................ 5-57
5.5.3.2.3 Type II—Correcting Faults via RTE.................................................... 5-58
5.5.3.2.4 Type III—Correcting Faults via Software.......................................... 5-58
5.5.3.2.5 Type III—Correcting Faults by Conversion and Restart................. 5-58
5.5.3.2.6 Type III—Correcting Faults via RTE................................................... 5-59
5.5.3.2.7 Type IV—Correcting Faults via Software ......................................... 5-59
5.5.4 CPU32 Stack Frames .................................................................................. 5-60
5.5.4.1 Four-Word Stack Frame .......................................................................... 5-60
5.5.4.2 Six-Word Stack Frame............................................................................. 5-60
5.5.4.3 Bus Error Stack Frame............................................................................. 5-60
5.6 Development Support...................................................................................... 5-63
5.6.1 CPU32 Integrated Development Support................................................ 5-63
5.6.1.1 Background Debug Mode (BDM) Overview ........................................ 5-64
5.6.1.2 Deterministic Opcode Tracking Overview............................................ 5-64
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...