- Joined
- Jul 4, 2009
- Messages
- 16,503
- Helped
- 5,157
- Reputation
- 10,347
- Reaction score
- 5,207
- Trophy points
- 1,393
- Location
- Aberdyfi, West Wales, UK
- Activity points
- 139,598
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.