Hi,
As far as I understood that you need to monitor the serial input lines for your system to get "
READY" as your qualifier. You can always do the qualifier checking manually. Looking for a "R", if found then "E" if not then again "R" and so on. Thus you (your PIC) would not be sitting inside the receive subroutine. Also the b1 variable used in your code is a BIT variable. I have no idea how a bit variable is treated in the serin

?? Also your pseudo code for the interrupt makes no sense. I thought "
time" was a label but your code increments it

Please give me a little more detail on the receiver module, a datasheet pointer perhaps and exactly what you are trying to achieve in plain english. 16F676 does not have a hardware USART. Using it saves you the headache of polling the serial pin quite often so that you don't miss a bit. But you need to use USART interrupt then.
Bookmarks