Intr Progg
Intr Progg
INTERRUPTS
microcontroller can serve many
Interrupts vs. devices (not all at the same time)
Polling ¾ Each devices can get the attention of the
(cont’) microcontroller based on the assigned
priority
¾ For the polling method, it is not possible to
assign priority since it checks all devices in
a round-robin fashion
The microcontroller can also ignore
(mask) a device request for service
¾ This is not possible for the polling method
Edge-triggered (TCON.1)
Activation of INT1
Level-triggered
0
INT1 IT1 0013
(Pin 3.3)
1 IE1
Edge-triggered (TCON.3)
-- IP.7 Reserved
-- IP.6 Reserved
PT2 IP.5 Timer 2 interrupt priority bit (8052 only)
PS IP.4 Serial port interrupt priority bit
PT1 IP.3 Timer 1 interrupt priority bit
PX1 IP.2 External interrupt 1 priority bit
PT0 IP.1 Timer 0 interrupt priority bit
PX0 IP.0 External interrupt 0 priority bit