lecture13

lecture13 - ECE252 Microprocessors Spring 2011 Lecture 13:...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, ECE252 L13- ECE252 Microprocessors Spring 2011 Lecture 13: Exception Processing Jie Hu http://web.njit.edu/~jhu/ece252/002
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, ECE252 L13- Block Diagram of Macintosh 512K Motherboard Processor 68000 I/O Interface 6522 Real- time clock Serial I/O 8530 Floppy disk controller System ROM RAM buffers and Mux PAL decoders Dynamic RAM 512KB Sound logic Video logic Speaker Video display Control signals Modem Printer Mouse Keyboard System bus Disk drive
Background image of page 2
Jie Hu, ECE/NJIT, ECE252 L13- Review of Last Lecture 68000 Instruction Set System Control Generating Machine Codes In-Class Programming Practice
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, ECE252 L13- Today’s Lecture Processor execution states Privilege states Exception processing sequence Exception Processing Processor execution states Privilege states Exception processing sequence Multiple Exceptions In-Class Programming Practice Fibonacci Number
Background image of page 4
Jie Hu, ECE/NJIT, ECE252 L13- Exception Processing What is an exception? Occurrence of some condition that alters the normal flow of execution can be from either external or internal Exception handling is the mechanism that microprocessors provide to take care of processing a specific exception when it is encountered.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, ECE252 L13- Execution States 68000 has three processing/execution states normal: the processor is executing instructions that may be part of a user program halted: the processor is not executing any instructions exception: the processor is handling exceptions Normal Halted Exception exception encountered return from exception handler catastrophic failures, STOP !RESET signal higher priority interrupts
Background image of page 6
Jie Hu, ECE/NJIT, ECE252 L13- Exception Processing What should be done before an exception is handled? The current processor context should be saved in some predefined location The exception vector should be obtained in order to locate the handler Supervisor bit in SR should be set such that processor enters supervisor state What need to be done when returning from exception handler?
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 24

lecture13 - ECE252 Microprocessors Spring 2011 Lecture 13:...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online