SERIN2 - "Timeout" hangs if > 255


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default >255 will still hang

    Either declared as WORD or value stated in the command, if > 255 the program will hang....

    But I did some additional tests with value from 256 up to 999; from time to time, the program will resume. Nevertheless, the value expressed in milliseconds is never corresponding (time is far far longer, can last over minutes!).

    Values over 999, will make the program never resume.

    My circuit is simple:
    PIC16F690 - 4MHz Xtal
    GPS module GLOBALSAT em-406a + 10k pull-up on TX
    LCDisplay in 4bits mode

    I use MCS standard 3.0.0.5 + PBP2.50C.
    Roger

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    DOH!!
    I was not really thinking about your application when I answered before.
    The TIMEOUT option will not work for you because the GPS is always sending something. All the TIMEOUT does is looks for the absence of a signal. If the GPS was turned off then TIMEOUT could be used to indicate that.
    Dave
    Always wear safety glasses while programming.

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