Is there any reason why the first two bytes received in the background after a reset might be corrupted? I have an 08M2 sending serial to a 28X2. The 08M2 sends
eot ($4) is an end of message marker. The 28X2 receives the data using hardware serial set up thus:
But the first two bytes of the first test message in the scratchpad after a power on reset read >uÚme:13:54:7< (the initial bytes are 117 and 218) rather than >Time:13:54:7<. Subsequent messages sent each second or so are received perfectly.
Is there some other initialisation required? The output serial line is already held high as advised. I'm rather at a loss as to why this might be. As two bytes are received in hardware I'm wondering if something is afoot in that area that needs attention. Obviously I could send a dummy message at startup but it would be nice to know the cause.
Code:
high HO_serial
pause 10 'high required for T polarity
serout HO_serial,T2400_4, ("Time:",#B_hrs,":",#B_mins,":",#B_secs,eot)
Code:
hsersetup B2400_64,%01001 'background receive, serout disabled, 'T' polarity
Is there some other initialisation required? The output serial line is already held high as advised. I'm rather at a loss as to why this might be. As two bytes are received in hardware I'm wondering if something is afoot in that area that needs attention. Obviously I could send a dummy message at startup but it would be nice to know the cause.