Clearing the Interrupt Source Status Register to accept next Interrupt in PSoC 3/5
Employee
Jun 02, 2010
03:53 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Jun 02, 2010
03:53 AM
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
Labels
Rate this article: