Serial Data for PIC16LF84A


Results 1 to 14 of 14

Threaded View

  1. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by oneohthree View Post
    The transmitter being used is the TLP-434 and the receiver used is the RLP-434
    A link to the data sheet is: http://www.sparkfun.com/datasheets/RF/TLPRLP.pdf
    Code:
    B2 VAR PORTB.0:Serin 0,N2400,B2:RX1 VAR PORTB.0:RX2 VAR PORTB.1:RX3 VAR PORTB.2:RX4 VAR PORTB.3:action VAR PORTB.4:alert VAR PORTB.5:PORTB.0=1:PORTB.1=0:PORTB.2=0:PORTB.3=1
    B0 VAR PORTB.6:B1 VAR PORTB.7:PORTB.6=1:PORTB.7=0:B0=1:B1=0
    'Tracking
    If (RX3==0) && (RX4==0) Then 'Check if only tracking mode
    If (RX1==B0) && (RX2==B1) Then 'Check if the address matches
    RX3=1:action = RX3:High 0:alert = 0:Low 1
    Else 'back to transmitter
    action = RX3:Low 0:alert = 0:Low 1
    Endif 'back tor transmitter
    Endif
    'Track and Find
    If (RX3==0) && (RX4==1) Then
    If (RX1==B0) && (RX2==B1) Then 'The receiver will take action to find the child
    RX3=1:action=RX3:High 0:alert=1:High 1
    Else
    action=0:Low 0:alert=0:Low 1
    Endif
    Endif
    That's better...
    Is this your first time using these RF modules?
    If it is, you'd do well to do a search on manchester encoding.
    You should find everything you need...we had a thread here awhile back that went a number of pages, dealt with transmitting temperature readings, but will be easily adaptable to your application.
    Or you could do something wierd and write all your own code...
    Get back after you've read up on the encoding a bit...
    Last edited by skimask; - 27th March 2007 at 04:21.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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