cancel
Showing results for 
Search instead for 
Did you mean: 

Getting UART State always Idle even if RXD is LOW

Posted on April 09, 2018 at 14:42

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 ?

2 REPLIES 2
Posted on April 09, 2018 at 15:24

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Erwan YVIN
ST Employee
Posted on April 10, 2018 at 16:23

Hello ,

Have you set correctly your pinmap on LIN ?

0690X0000060ARqQAM.png

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