1972013_en-US

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

1972013_en-US

1972013_en-US

LIN physical layer

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

Re: LIN physical layer

thanks!

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

Re: LIN physical layer

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

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 10:28 AM
Updated by: