Other Parts Discussed in Thread: CONTROLSUITE
Hi everyone,
I'm using following example.
C:\ti\controlSUITE\device_support\F2807x\v210\F2807x_examples_Cpu1\sw_prioritized_interrupts
I have two questions about this example.
(1) This example isn't crear adc interrupt flag. (ISRSWPrioritizedInterrupts.c , __interrupt void ADCA1_ISR( void ) )
Why does it work correctly, even though flags are not cleared as shown below?
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //clear INT1 flag
(2) If this C(ISRSWPrioritizedInterrupts.c) source file is used, will TIMER 1 _ ISR be the interrupt with the lowest priority?
#if (INT13PL != 0)
__interrupt void TIMER1_ISR(void) // INT13 or CPU-Timer1
{
IER |= MINT13; // Set "global" priority
/*Do not I need to set masks IER or PIEIER here?*/
EINT;
//
// Insert ISR Code here.......
//
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
__asm (" ESTOP0");
for(;;);
}
#endif
Best reagrds
Sasaki