LIN physical layer

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

LIN physical layer

跳至解决方案
892 次查看
LiZhanWu
Contributor II

The same code, the LIN physical layer can work during debugging, but the LIN physical layer cannot work during program download and execution.

PIM set:

void pim_init(void)
{
MODRR0_SCI1RR = 1; // SCI - FreeMASTER

DDRS_DDRS4 = 1; // Debugg Signal
DDRS_DDRS5 = 1; // Debugg Signal

//DDRT_DDRT0 = 1; // Debugg Signal
DDRT_DDRT1 = 0; // Input switch signal

MODRR0_S0L0RR = 0x01; //LIN routed to RX
MODRR2_T0IC3RR = 0x01; //RX routed to TIM0C3
}

LIN sends Datas:

LIN sends using register LP0DR_LPDR1

微信图片_20241011163333.jpg微信图片_20241011163340.jpg

0 项奖励
回复
1 解答
852 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @LiZhanWu,

Some registers can be written only once in Normal mode

This applies to MODRR0 and MODRR2.

Make sure the application writes it only once.

danielmartynek_0-1728973847151.png

 

Regards,

Daniel

在原帖中查看解决方案

0 项奖励
回复
2 回复数
853 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @LiZhanWu,

Some registers can be written only once in Normal mode

This applies to MODRR0 and MODRR2.

Make sure the application writes it only once.

danielmartynek_0-1728973847151.png

 

Regards,

Daniel

0 项奖励
回复
824 次查看
LiZhanWu
Contributor II

thanks!

yes, you are right.I write MODRR0 two times.