Serin2 Timeout, how it works?


Closed Thread
Results 1 to 2 of 2
  1. #1
    Fossil's Avatar
    Fossil Guest

    Unhappy Serin2 Timeout, how it works?

    I have trouble using the timeout option of the SERIN2 command. Hope that anyone familar with this command can help me.

    I have written a sample program below to tryout the command. If the command is correct, the LEDs should blink.

    The LED is connected to PortA.0, Serial in pin is PortC.4

    START: SERIN2 PORTC.4,188,50,LIGHT,[WAIT("TUV"),REC]
    LIGHT: TOGGLE PORTA.0
    GOTO START

    I have tried it out on my chip but the LED doesn't blink. Have I used it the wrong way? The data sheets has an example of how to use the SERIN2 command and I followed it closely, my hardware works fine but it just doesn't work. Anyone can help?

  2. #2
    Fossil's Avatar
    Fossil Guest


    Did you find this post helpful? Yes | No

    Default

    Sorry I understand now after doing more research. I now understand that timeout only occurs when the pin has constant low or high if there are noise on the pin or any change of state, the timeout will reset and therefore a timeout will never happen for my case. Cause I connected it to a RF receiver pin and there will be noise if there are no signals present. My small experiment wouldn't work too cause I used it on the same board and its still connected to the RF receiver. Thanks for reading guys.

    I still welcome suggestions on how to go about the problem. But I guess it would be a hardware problem now and not the problem with the command. Many thanks for reading.

Similar Threads

  1. Serin2 and Timeout to Label
    By f0ster52 in forum Serial
    Replies: 2
    Last Post: - 10th April 2009, 03:29
  2. Yet another SERIN2 question
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 31st March 2009, 20:11
  3. Serin2 Timeout
    By tazntex in forum Serial
    Replies: 15
    Last Post: - 15th August 2008, 15:40
  4. 18f242 serin2 timeout
    By Armadus in forum Serial
    Replies: 1
    Last Post: - 28th July 2007, 22:41
  5. SERIN SERIN2 Timeout
    By markedwards in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd June 2005, 18:59

Members who have read this thread : 0

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