Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

Clearing Counter/Timer/PWM Interrupt in PSoC 3/5

Anonymous
Not applicable

Clearing Counter/Timer/PWM Interrupt in PSoC 3/5

Question: How do I clear the interrupt caused by Counter/Timer/PWM component so that the next interrupt is processed by the CPU?

 

Answer:

To clear interrupt caused by peripherals, inside the ISR code, read the status register of the peripheral causing the interrupt. This status read will clear the ‘interrupt request’ bit of the peripheral.

So for clearing the interrupts caused by counter, Counter_ReadStatusRegister API should be called inside the counter's ISR. This will clear the interrupt request enabling further interrupts.

0 Likes
Version history
Revision #:
1 of 1
Last update:
‎Mar 23, 2011 01:07 PM
Updated by:
Anonymous
 
Contributors