Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Thank you Yes, I try to communicate (Modbus 485) with the Uart. I have a 20ms timebased main tasks and when if I have a "free time" (all tasks have not been completed 20ms)then, I manage the communication frames. The Uart is by interruption (Tx and RX). The firmware is about 65Kb. What specific part would you like to review? Best Regards.
1. Try changing the oversampling to 16x and see if the least significant bit is still lost?
2. Can you please let us know if the issue is observed while sending or receiving data? As per our understanding it occurs while receiving data through UART.
3. If it is possible can you please share the part of the project that shows the error and remove other parts that may not be required to reproduce the issue at our end? Please share the oscilloscope trace.
The sampling of UART happens completely in hardware even though you might perform several other tasks in firmware you should not lose anything either you lose the entire byte due to firmware traffic losing the last bit alone should not be related to firmware.