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
解決済! 解決策の投稿を見る。
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.
Regards,
Daniel
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.
Regards,
Daniel
thanks!
yes, you are right.I write MODRR0 two times.