The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL

PROGRAMMING


IN C


‰The 8051 compiler have extensive support for the interrupts


¾They assign a unique number to each of the 8051 interrupts ¾It can assign a register bank to an ISR


ƒThis avoids code overhead due to the pushes and pops of the R0



  • R7 registers


5

(TF2)

Timer 2 (8052 only)

4

(RI + TI)

Serial Communication

Name(INT0)(TF0)(INT1)(TF1)

3

Timer Interrupt 1

2

External Interrupt 1

1

Timer Interrupt 0

0

External Interrupt 0

Numbers

Interrupt
Free download pdf