INTERRUPT STRUCTURES3C9228/P9228

Programming Tip — How to clear an interrupt pending bit

As the following examples are shown, a load instruction should be used to clear an interrupt pending bit.

Examples:

1.

LD

INTPND1, #11111011B

; Clear P0.2's interrupt pending bit

 

 

 

 

 

 

 

 

 

 

IRET

 

 

2.

LD

INTPND2, #11110111B

; Clear watch timer interrupt pending bit

 

 

 

 

 

 

 

 

 

 

IRET

 

 

5-6

Page 96
Image 96
Samsung S3C9228/P9228, 8-Bit CMOS Microcontroller Programming Tip How to clear an interrupt pending bit, Examples