hi
there is a board that use stm32f0 that sending data via rs485 and i have a board that use lpc1768 that use adm485 as rs485 ic
every 400 ms stm board send me a few byte information and i see it in oscope but in lpc1768 i keep getting this error ARM_USART_EVENT_RX_OVERFLOW
why is that?
can ADM485 5v output to MCU be cause of problem?
what do u think?
已解决! 转到解答。
Hello navid ansari,
1. error ARM_USART_EVENT_RX_OVERFLOW
I don't know what the code you are using?
If you get the error ARM_USART_EVENT_RX_OVERFLOW, from the name, it should be caused by you didn't read the RX buff, then the new data come in again, it caused the problem.
But for the details, I need to check your code.
2. can ADM485 5v output to MCU be cause of problem?
From the datasheet, we can get that, the max input voltage is 5V.
So, you need to check your output voltage to the MCU, whether it is higher than 5V, because 5V already the max data.
3. 485 code
Just as what I have replied you in your another post, you can refer to the sample code which I shared with you.
how to clear buffer in usart1 lpc1768?
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello navid ansari,
1. error ARM_USART_EVENT_RX_OVERFLOW
I don't know what the code you are using?
If you get the error ARM_USART_EVENT_RX_OVERFLOW, from the name, it should be caused by you didn't read the RX buff, then the new data come in again, it caused the problem.
But for the details, I need to check your code.
2. can ADM485 5v output to MCU be cause of problem?
From the datasheet, we can get that, the max input voltage is 5V.
So, you need to check your output voltage to the MCU, whether it is higher than 5V, because 5V already the max data.
3. 485 code
Just as what I have replied you in your another post, you can refer to the sample code which I shared with you.
how to clear buffer in usart1 lpc1768?
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------