S12G128 LIN can't clear Interrupt Flag

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S12G128 LIN can't clear Interrupt Flag

825 次查看
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 项奖励
回复
2 回复数

676 次查看
sufree
Contributor II

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

0 项奖励
回复

676 次查看
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