Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 11 INTERRUPTS PROGRAMMING

Similar presentations


Presentation on theme: "Chapter 11 INTERRUPTS PROGRAMMING"— Presentation transcript:

1 Chapter 11 INTERRUPTS PROGRAMMING
2002/2/27 Microcomputers and Microprocessors

2 Outlines Contrast and compare interrupts versus polling
Explain the purpose of the ISR List the 6 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

3 Contrast edge-triggered with level-triggered interrupts
Program the 8051 for interrupt-based serial communication Define the interrupt priority of the 8051

4 Six interrupts in the 8051

5 Step in enabling an interrupt

6

7 PROGRAMMING TIMER INTERRUPTS

8 Roll-over timer flag and interrupt
JNB TF, target

9

10

11

12

13 Programming external hardware interrupts

14

15

16 Sampling the low level-triggered interrupt

17 Edge-triggered interrupts

18

19

20 Sampling the edge-triggered interrupt

21 RI and TI flags and interrupts

22 Use of serial COM in the 8051

23

24

25 Clearing RI and TI before the RETI instruction
CLR TI ; CLR RI

26

27

28 Interrupt priority upon reset

29

30

31 Setting interrupt priority with the IP register

32


Download ppt "Chapter 11 INTERRUPTS PROGRAMMING"

Similar presentations


Ads by Google