16F628A Serin timeout and Timer1


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Lightbulb

    Hello,

    forget the timeout-option in "serin" when you receive rf-transmissions.

    I've build it like this:
    I use Timer1 to measure a timelimit.
    So, start Timer1,
    Repeat receive 1 character trough serin,
    if the character is your lead-in receive the rest,
    until timer1 ends.
    go sleep....

    It may be necessary to slow down the transmitter by using DEFINE CHAR_PACING 1000 because you are using slow software rather than fast hardware!

    For me it it not necessary to receive each transmission!
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  2. #2
    Rubicon's Avatar
    Rubicon Guest


    Did you find this post helpful? Yes | No

    Default

    Thankyou all for your help.

    As the transmitter is only sending the qualifier byte and a single code byte over and over at 300bps I'll drop the Serin timeout and give the Serin Timer1 timeout option a go this weekend.

    Once again thanks.

    Regards,

    Andrew.

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Wink

    Think about some leading bytes ($55) in order to syncronize the receiver...
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

Similar Threads

  1. rfPIC Serin problem
    By gavo in forum mel PIC BASIC Pro
    Replies: 52
    Last Post: - 11th March 2008, 17:52

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