Quote Originally Posted by JESmitter View Post
Hi Troy,
Here's my OSCON
OSCCON = %01100000 ' Set system clock 4MHz(1MHz internal w/x4 PLL enabled)

My SERIN SYNTAX
SERIN PrgIn,1,5000,PassProg,[ProgIDRx],IDByteRx ' Check for new I.D.

My Qualifier Variable
ProgIDRx VAR BYTE ' Received Programmer ID

My Byte of interest
IDByteRx VAR BYTE ' New IDByte

This should work, right???
Well, that's what I'm confused about. Don't you need to actually nominate something as the qualifier rather than an empty variable?

p207 of the manual:
"list of data items to be received may be preceded by one or more qualifiers enclosed within brackets. SERIN 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 (i.e. the next received byte is compared to the first item in the qualifier list). A Qualifier can be a constant, variable or a string constant. Each character of a string is treated as an individual qualifier."

So, if you have an empty variable as a qualifier, I guess serin is waiting for a "null" to arrive before accepting anything into IDByteRx.

That's the way I read it, but again, I've never really used serin.

Troy