I have a 12F683 device waiting for an incomming single byte via standard 8,N,1 9600 baud comms.
The device is executing a loop and doing other work so is not sat waiting in a serin for the byte.
Can i use an instant interrupt on the receiving pin and then jump straight to a serin or serin2 to get
the data or will the first bit be corrupted/missing ?
Can i use the known fact the first bit is corrupted/missing to correct the data after it has been
receieved? Or will the serin hang waiting for a missing bit?
Any other ideas?
In the past I have used a seperate pulse to tell the chip data is about to arrive and it then goes
and waits in the serin.
A further question about serin2 with a timeout of say 1000ms
If the data only appears at the pin at say 999ms is the timeout count aborted or does it exit because the timeout expires even though it may be half way through receiving a byte?
Bookmarks