Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWAN
HANEL
INTERRUPTSSix Interrupts in 8051(cont’)
0023Serial COM (RI and TI)001BTimer 1 (TF1)P3.3 (13)0013External HW (INT1)000BTimer 0 (TF0)P3.2 (12)0003External HW (INT0)90000ResetPinROM Location (hex)Interrupt
Interrupt vector table
ORG 0 ;wake-up ROM reset locationLJMP MAIN ;by-pass int. vector table
;---- the wake-up programORG 30H
MAIN:....ENDOnly three bytes of ROM space assigned to the reset pin. We put the LJMP as the first instruction and redirect the processor away from the interrupt vector table.