
Originally Posted by
tekart
This is pretty basic - but it's driving me nutz.
I have a serin routine that is not responding to the qualifiers. The point of this circuit is to take the serial processing work off of another PIC, so I'm using an 12F509 to wait for a particular serial burst with 2 specific qualifiers. Then it sends a 2mS pulse to the host processor to let it know that valid data arrived. The serial is coming in via a MAX232 - so it's uninverted.
I wrote a test line that just waits for the serial data line to go low - and that works. The data line is clean and stays high between comms - see scope pic below.
The serial burst looks like this:
Tx:0F 03 00 00 00 05 84 E7
Guy
Hey Guy,
I got it to work for me on my 12f683, but I had to change this line, so I could use characters that I can type on my keyboard:
Code:
SCADAin,2,200,NoOp,["15","3"],X ' check f"or right qualifiers only
Then when I enter 153x (x=any character or number) your code works, and X=x
Bookmarks