This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: EOF End of Frame detection in serial (RS485)

Part Number: MSPM0G3507


HI , I want to detect EOF in RS485 communication mode. is there any API that give me EOF indication? i have implemented nut it only works in normal UART implementation. but when I configured it for RS485 mode. it wont work 

  • As I know, in RS-485 communication, "End-Of-Frame" (EOF) is not a standard term. Instead, the communication is typically structured in terms of "frames," which are sequences of bits that include data, start and stop bits, and sometimes parity or error-checking bits. So you should do the analysis by software.

  • yes, there is 3.5char inter frame space silent time. but I have to detect end of frame so that I can perform operation on received frame. 

    also inter character delay is also I am trying to calculate so after that I will check if that delay crossover it means it is EOF. but I am facing some issue to calculate inter character delay (delay between two consecutive character).

    E.g. for baud rate greater than 115200 inter character delay is 750us and interframe time out is 1750us. I am configuring timer that generate 1750us interrupt and I am updating EOF flag inside it. with this setting I am receiving wrong data. actually, I am sending what i am receiving. 

    SENDING:   41 42 43 44 45 46 47 48

    RECEIVING: 5F AF DD D5 CD C5 FD 01

  • Can you use UART timeout interrupt, it may give you some help.