Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Clearing the Interrupt Source Status Register to accept next Interrupt in PSoC 3/5

Clearing the Interrupt Source Status Register to accept next Interrupt in PSoC 3/5

KishoreS_96
Employee
Employee
5 sign-ins 50 replies posted 25 replies posted
Question: How do I clear the Interrupt Status Register of any Component in PSoC 3/5 so that the next Interrupt can be serviced?

 

Answer:

The Status Registers of Interrupt Sources are configured as "Clear on Read". So if those registers are read using the Corresponding API inside the ISR, then the Status Register for that Interrupt will be cleared and will be ready to accept next Interrupt.

 

Example:

Timer_ReadStatusRegister() API for Timer User Module

UART_GetRxInterruptSource() API for UART User Module

Counter_ReadStatusRegister() API for Counter User Module

0 Likes
754 Views
Contributors