AnsweredAssumed Answered

S12G128  LIN  can't clear  Interrupt Flag

Question asked by 歌 苏 on Jun 30, 2017
Latest reply on Jul 3, 2017 by 歌 苏

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;

}

Outcomes