Serin after instant interupt?


Results 1 to 13 of 13

Threaded View

  1. #1

    Default Serin after instant interupt?

    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?
    Last edited by retepsnikrep; - 3rd September 2010 at 08:47.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts