Texas Instruments MSP430 series: How should group interrupts such as GPIO determine the interrupt source and process when an interrupt occurs?
An Interrupt Vector Register is provided for each group interrupt. Reading this register returns the number of the highest priority pending interrupt source. At that time, only the Interrupt Flag of the selected interrupt factor is automatically cleared.
In order to process each interrupt factor, when a group interrupt occurs, read this register in the interrupt routine and conditionally branch with the Switch statement.
There are many sample codes for group interrupt processing, so please refer to them.
Experienced FAE
Free consultation is available.
From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.