Interupt action when enabling interupt with interupt flag "1"

Status
Not open for further replies.

Lauris

Newbie level 6
Joined
Apr 24, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Lithuania, Vlinius
Activity points
1,355
Hello everyone,

Was wondering if anyone can explain interupt handler actions in case of enabling interupt with interupt source flag already set.

To be more precise processor - LPC2368, fragment of code;
Code:
*
*  *
*  *  *   //U0LSR.5 (THRE) = 1 somewhere before line below
                U0IER |= (1 << 1);      //Enable TRHE interupts if they were disabled
*  *  *
*  *  
*

void uart0_ (void) __irq {
  switch (U0IIR & 0x0E) {       //swich depending on interupt received
        case 0x06:                              
        break;
        case 0x04:                      
        break;
        case 0x0C:              
        break;
        case 0x02:              //<<<<<< will it come here                                              
        break;
  }
  VICVectAddr = 0x00;
}



so in case of action described above will I get interupt executed or do I need to take any extra actions to ensure interupt execution?

tahnk you in advance,
Laurynas.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…