S12G128 LIN can't clear Interrupt Flag

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12G128 LIN can't clear Interrupt Flag

445 Views
sufree
Contributor II

Hi,

I want to clear the Break Detect Interrupt Flag   in  SCI Alternative Status Register 1 (SCIASR1)   by the following code ,I have set the AMAP=1,but it in vain,I don't know why .

if(0 != (SCI1ASR1&SCIASR1_BKDIF_MASK)) //=1
{
/* clear break detect interrupt flag */
//pSCI->sciasr1.byte|=SCIASR1_BKDIF_MASK;
SCI1ASR1_BKDIF=0x1;

state = RECV_SYN;
return;

}

0 Kudos
2 Replies

296 Views
sufree
Contributor II

Hi ,thank you , because of i use a wrong way to generate a break character.

0 Kudos

296 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

What do you see on a scope, what do you receive?

I do not see any reason why this flag cannot be cleared unless it keeps receiving break characters. How do you generate a break character, using SCICR2[SBK]?

 

Regards,

Daniel