2018-04-09 05:42 AM
Hello Forums,
I am working on SPC570Sx 32-bit processor.
I facing the issue with the UART Idle line.
In our application software has to detect the wake up pattern for Diagnostic Tool(Fast Init).
we don't want to use the Auto Wakeup mode to detect the Wakeup signal So the Auto Wakeup mode is Disabled.
The idea is that when ever the RXD pin will goes low for certain time period(about 25ms) we will consider as Wake up.
Software is checking the the LINSR register with field LINS values to detect the Idle state.In Microcontroller Manual LINS values in given like 0x1 Init,0x2 Idle,0x3 Sync Break,0x4 Sync Del and so on....
So When ever the RXD pin goes low, we are expecting the LINS values other than 0x2 (Idle state).
and we starts the timer for Wake up detection.
But I observed that LINs has always value
0x2 Idle even if the RXD pin goes low( Idle -> LOW).
I have checked the RXD pin status by using the register Uartsr with field RDI and its coming low.
please can someone help me to resolve this issue ?
2018-04-09 06:24 AM
This is not an STM32 processor, can someone move this to the right forum
https://community.st.com/community/automotive-mcus-community/spc5-automotive-mcus
DAHMEN.IMEN
st.mcu
2018-04-10 07:23 AM
Hello ,
Have you set correctly your pinmap on LIN ?
Did you use Interrupt Routine or did you check in the loop ''
Software is checking the the LINSR register with field LINS values to detect the Idle state'' ?
The best thing is to use the interrupt.
Have you checked the UART LIN application in SPC5Studio ?
There is nice example.
Best regards
Erwan