Serout And Serin Via Rf Link


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    23

    Question Serout And Serin Via Rf Link

    Hi everyone
    I am using multiple 12f629s running with internal 4 meg clocks in this idea.
    First I need to:
    Send a simple 2 or 3 digit number via serout from one 12f629, to an rf transmitter. This will be received by an rf receiver, then serin to another 12f629.
    Never done Serout/Serin code. Does anyone have any sample serout/serin code that would help me build on?
    Secondly:
    There will be a pulse sent by the Xmit a few msec. prior to sending the serial code so the pic on the receiver end wakes up from either sleep or nap.
    Normally, I'd like the pic to check the receive line for the above pulse, then go into the serin receive routine. If the pulse is absent then it goes back to sleep or nap for another period. (just to save power) I can use the pulse to either bring MCLR low, or simply wait for the nap period to end.
    Which would be better? - a sleep that ends when MCLR is brought low, or a nap that just checks the receive each time after its short time out period?
    This is another area of Pic Basic Pro that I am not clear on!
    Thanks for any help!
    Ron

  2. #2
    Join Date
    Feb 2005
    Location
    Toronto, Canada
    Posts
    46


    Did you find this post helpful? Yes | No

    Default

    SEROUT2 1,396,[dec din]
    SERIN2 0,396, [dec din]

    sends at 2400

    works fine for me.

    your rf chips prob won't need a max232 so it should hopefully be easy, but I've never first hand used an rf transmitter

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    First, you need to decide what transmitter and receiver you will use. AM? FM? If AM, superheterodyne or superregenerative receiver? What range is required? Outdoors? Indoors? What's the biggest number you will send? What's the biggest number you are willing to spend on hardware?

    Second, the RF receiver power use will likely dwarf the 12F629 power use so your sleep idea is probably not worth pursuing unless you also plan to power down the receiver while the PIC sleeps. How frequent are the transmissions?

    I think SerOut/SerIn overly complicates this type of communication. Check this recent thread for ideas.

  4. #4
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    I would add one more thing to what's been said. Whatever protocol you use for the communications, test it through wires first. Only after you have everything working through wires, you should add the wireless element.

  5. #5
    Join Date
    Dec 2005
    Posts
    23


    Did you find this post helpful? Yes | No

    Smile Lot of good stuff

    Hi all
    Lot of good stuff in these posts. I already have ideas about how to accomplish this.
    Thanks again

Similar Threads

  1. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  2. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  3. Help with serin, serout, Manchester encoding
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 5th April 2007, 13:31
  4. Replies: 11
    Last Post: - 13th July 2005, 19:26
  5. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 15:54

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