NATIONAL TAIWAN OCEAN UNIVERSITY 國國國國國國國國 Chapter 11 INTERRUPTS PROGRAMMING ©2002 MuDer Jeng 02/03/14 Microcomputers and Microprocessors Outlines ♦ Contrast and compare interrupts versus polling ♦ Explain the purpose of the ISR ♦ List the interrupts of the 8051 ♦ Explain the purpose of the interrupt vector table ♦ Enable or disable 8051 interrupts ♦ Program the 8051 timers using interrupts ♦ Describe the two external hardware interrupts of the 8051 ©2002 MuDer Jeng ♦ Contrast edge-triggered with level-triggered interrupts ♦ Program the 8051 for interrupt-based serial communication ♦ Define the interrupt priority of the 8051 ©2002 MuDer Jeng Six interrupts in the 8051 ©2002 MuDer Jeng Step in enabling an interrupt ©2002 MuDer Jeng ©2002 MuDer Jeng PROGRAMMING TIMER INTERRUPTS ©2002 MuDer Jeng Roll-over timer flag and interrupt JNB TF, target ©2002 MuDer Jeng ©2002 MuDer Jeng ©2002 MuDer Jeng ©2002 MuDer Jeng ©2002 MuDer Jeng Sampling the edge-triggered interrupt ©2002 MuDer Jeng RI and TI flags and interrupts ©2002 MuDer Jeng Use of serial COM in the 8051 ©2002 MuDer Jeng ©2002 MuDer Jeng ©2002 MuDer Jeng Clearing RI and TI before the RETI instruction CLR TI ; CLR RI ©2002 MuDer Jeng ©2002 MuDer Jeng ©2002 MuDer Jeng Interrupt priority upon reset ©2002 MuDer Jeng ©2002 MuDer Jeng ©2002 MuDer Jeng Setting interrupt priority with the IP register ©2002 MuDer Jeng ©2002 MuDer Jeng ... and compare interrupts versus polling ♦ Explain the purpose of the ISR ♦ List the interrupts of the 8051 ♦ Explain the purpose of the interrupt vector table ♦ Enable or disable 8051 interrupts. .. Program the 8051 timers using interrupts ♦ Describe the two external hardware interrupts of the 8051 ©2002 MuDer Jeng ♦ Contrast edge-triggered with level-triggered interrupts ♦ Program the 8051... priority of the 8051 ©2002 MuDer Jeng Six interrupts in the 8051 ©2002 MuDer Jeng Step in enabling an interrupt ©2002 MuDer Jeng ©2002 MuDer Jeng PROGRAMMING TIMER INTERRUPTS ©2002 MuDer Jeng Roll-over