I've been doing lots of reading and slowly trying to work my way through the TX / RX progs to get an understanding of what's actually happening, the sequence etc. One thing I can't see though is this.
In the TX program we've got:
And the RX has:Code:SEROUT2 D_OUT,BAUD,[PreAmble,Synch,DAT_OUT,DAT_OUT,CHK_SUM]
So my Q is this: What's happened to the 'PreAmble BYTE' ?Code:SERIN2 D_IN,N2400,[WAIT(Synch),DAT_IN1,DAT_IN2,CHK_SUM]
The Manual says:Code:PreAmble CON $A5 ' 10100101 preamble
So in this case that would be the Synch BYTE right? Synch BYTE always first (because of the WAIT command), the rest to follow. I can't see where / how the preAmble arrives though.The list of data items to be received may be preceded by one or more qualifiers between parenthesis after WAIT. SERIN2 must receive these bytes in exact order before receiving the data items. If any byte received does not match the next byte in the qualifier sequence, the qualification process starts over
Also this from WIKI:
http://en.wikipedia.org/wiki/Syncword
Suggest to me that a PreAmble and a Synch are two ways of doing the say thing, or very similar, have a got that on right?
Dave




Bookmarks