serin2


Closed Thread
Results 1 to 3 of 3

Thread: serin2

  1. #1
    Join Date
    Mar 2008
    Posts
    59

    Default serin2

    I am using a 16f628A with the internal oscillator. I am trying you use this simple code with a wireless receiver "RWS-434". If you hold porta.2 low it will timeout every two seconds and my led will flash. If I hook up the receiver or hold Porta.2 high It will never time out the led stays on forever. Can anyone offer an easy cure for this? "Hardware or software"

    CMCON = 7
    VAR1 VAR WORD
    VAR2 VAR WORD
    VAR3 VAR WORD

    OVER:

    LOW PORTA.1 'LED
    PAUSE 100
    HIGH PORTA.1 'LED

    SERIN2 PORTA.2,17197,2000,OVER,[wait(53),VAR1,VAR2,VAR3]

    GOTO OVER

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by n0yox View Post
    I am using a 16f628A with the internal oscillator.
    First problem right there. Internal oscillator probably not accurate enough to be using with any sort of serial transmission over wired or wireless.

    I am trying you use this simple code with a wireless receiver "RWS-434".
    I'm looking at my magic crystal ball and it's telling me that you should go to www.rentron.com and read...then read some more...then when you're done with that, read it all again, wash, lather, rinse, repeat.

    If you hold porta.2 low it will timeout every two seconds and my led will flash. If I hook up the receiver or hold Porta.2 high It will never time out the led stays on forever. Can anyone offer an easy cure for this? "Hardware or software"
    Try this...again, read it, then read it again...
    http://www.picbasic.co.uk/forum/show...eout+idle+high

  3. #3
    Join Date
    Mar 2008
    Posts
    59

    Smile serin2 timeout

    Quote Originally Posted by skimask View Post
    First problem right there. Internal oscillator probably not accurate enough to be using with any sort of serial transmission over wired or wireless.

    I'm looking at my magic crystal ball and it's telling me that you should go to www.rentron.com and read...then read some more...then when you're done with that, read it all again, wash, lather, rinse, repeat.

    Try this...again, read it, then read it again...
    http://www.picbasic.co.uk/forum/show...eout+idle+high

    I am sure an external oscillator would be better however I don't have space for it. My project seems to work very well, I just have this little problem with program flow.

    Thank You for your report from the other side! I have read several pages about this subject with no definitive answer "that I could see".

    This link is very helpful! I have hope one of these solutions will be a fix for my problem. I would guess a mode change will fix my problem when pulled high using a resistor. I know my receiver has spikes when I look at the output with a scope so I'm thinking a mode change will not fix what is most likely a receiver problem.I assumed the "timeout" would be based on not receiving my qualifying character, I was wrong.

    I would like to Thank You for your efforts and help!

Similar Threads

  1. GPS $GPRMC to PIC16F684. Need help with SERIN2
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th November 2009, 09:47
  2. Getting SERIN2 to work?
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 22nd July 2009, 20:10
  3. SLOW Serin2 and Serout2
    By dragons_fire in forum General
    Replies: 3
    Last Post: - 26th June 2009, 02:38
  4. SERIN2 digit parsing
    By skimask in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th January 2007, 23:15
  5. SEROUT2 and SERIN2 commands
    By bangunprayogi in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th August 2005, 09:03

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