Debugin timeout


Closed Thread
Results 1 to 5 of 5

Thread: Debugin timeout

  1. #1
    Join Date
    Dec 2009
    Location
    Canada
    Posts
    68

    Default Debugin timeout

    Hi Folks,

    Maybe someone already had this experience and know a solution:
    I use DEBUGIN {Timeout, Label,}[wait(...]
    in my code and learnt that the Timeout works only if the input stays high. If input signal is low, then the program may wait forever and does not go any further until the input level comes to 1.

    Is there a solution for a case when input signal grops to 0 when another device becomes inactive, not connected or it's voltage drops on some reason?

    Thank you

    Alexey

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,796

    Default Re: Debugin timeout

    You cann't have it all. Both software serial port and timeout. It is the way serial port works and software waits for the correct edge to come.

    If you have hardware usart, then go for it.

    Ioannis

  3. #3
    Join Date
    Dec 2009
    Location
    Canada
    Posts
    68

    Default Re: Debugin timeout

    Hi Ioannis,

    Thank you. this is pitty, but still good to know - I probably can not go with HSERIN anyway because of negative signal levels in my application

    Best regards,
    Alexey

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default Re: Debugin timeout

    Some PIC have polarity option for their Built-in USART. From there you can detect Framing Error... problem solved.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Dec 2009
    Location
    Canada
    Posts
    68

    Default Re: Debugin timeout

    Thank you Mister_e It looks like my micro has that feature. It always worth reading manual before doing something... but it is 500+ pages long...

    Thanks again!

    Alexey

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