Please see if you can help this is getting very annoying
![Evil or Very Mad :evil:](./images/smilies/icon_evil.gif)
![Evil or Very Mad :evil:](./images/smilies/icon_evil.gif)
I cannot get my pic to stop freezing after receiving rs232 data for a while. Could this be a flowcode or pic error?
It seems that the only way to get it running again is by doing a reset. (And that I do not want to do.)
The bytes are received in strings of 84 bytes every 500ms, after every 14 bytes I must do a checksum and make sure byte 8 of each 14 is 0 then 1 then 2, 3, 4 and 5.
Sometimes it will run for a long time before freezing.
I'm using a Pic18f252 with hardware & software Usart.
19660800Hz Crystal
V3 Development board HP488
Maxim232
Received data sample:
001 000 010 129 255 001 001 000 000 000 000 000 000 140
001 000 010 129 000 001 001 001 000 000 000 077 188 151
001 000 010 129 001 001 001 002 000 000 000 019 017 180
001 000 010 129 002 001 001 003 000 000 000 019 136 045
001 000 010 129 003 001 001 004 000 000 000 019 178 089
001 000 010 129 004 001 001 005 000 000 000 019 136 049