Hello everyone. Quick question here.
I am playing with my first real hardware serial program. All I am doing is receiving 16 bytes and putting them into an array. It is all interrupt based, and works. The issue is the first byte seems to always be 00h. Now I know the first sent byte is 03h as seen with Logic (awesome cheap analyzer). So before I go all out and just post the code and ask for help, I am wondering if the RCREG gets the byte from the UART on the first interrupt, or if it is not actually shifted until the second byte is received.
Thanks for your thoughts on this.
Bookmarks