LIN physical layer

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

LIN physical layer

Jump to solution
905 Views
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 Kudos
Reply
1 Solution
865 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
866 Views
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 Kudos
Reply
837 Views
LiZhanWu
Contributor II

thanks!

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