- Joined
- Jul 4, 2009
- Messages
- 16,270
- Helped
- 5,140
- Reputation
- 10,309
- Reaction score
- 5,129
- Trophy points
- 1,393
- Location
- Aberdyfi, West Wales, UK
- Activity points
- 137,699
Hi Davids.
Reset the UART as quickly as possible when a false sync byte is detected. The information is a continuous stream of bytes so the sooner you start looking again, the faster the correct sync will be found. In PIC language, I clear the USART twice because it uses a FIFO and it is possible one byte is still in the queue, I'm not sure if AVR is the same.
Brian.
Reset the UART as quickly as possible when a false sync byte is detected. The information is a continuous stream of bytes so the sooner you start looking again, the faster the correct sync will be found. In PIC language, I clear the USART twice because it uses a FIFO and it is possible one byte is still in the queue, I'm not sure if AVR is the same.
Brian.