Samsung S3C9228/P9228 User Manual
![Samsung](https://files.manualsbrain.com/attachments/d2c8096d7455ef27430abd90929788cd334aa0d9/common/fit/150/50/48a08a3a1c58307d54cf32c153d229d06984b46e0de4abbefb9df295a8d8/brand_logo.png)
INTERRUPT STRUCTURE
S3C9228/P9228
5-6
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