
Originally Posted by
LEDave
Just had a breakthrough with the project

...
Good news!
About the checksum:
Code:
SEROUT2 D_OUT,BAUD,PACE,[PreAmble,Synch,DAT_OUT,DAT_OUT,CHK_SUM,VISITS.highbyte,VISITS.lowbyte]
I always thought the idea behind checksum was to confirm that a data transfer had completed successfully. As it stands, you are checking data from the front of the stream only. I would put the CHKSUM at the end of your data stream, that way you are certain you have received everything.
It might not be necessary with the way PBP processes Serout commands, but this is from old programming habits in a business environment (you want to be sure everything made it through).
Code:
SEROUT2 D_OUT,BAUD,PACE,[PreAmble,Synch,DAT_OUT,DAT_OUT,VISITS.highbyte,VISITS.lowbyte,CHK_SUM]
(unless the location of CHKSUM in SEROUT is pre-determined by hardware/software)
Bookmarks