433MHz RF PIC2PIC connection


Results 1 to 22 of 22

Threaded View

  1. #19
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Hi Ralph,

    Done. Works perfectly.

    Receiving on 18F452

    DEFINE OSC 20
    DEFINE LOADER_USED 1
    myVar VAR byte[32]


    BEGIN:
    SERIN2 PORTB.0,16468,1000,TIME_OUT,[STR myVar\32\13]
    HSEROUT [STR myVar\32,13,10] ' Display result
    CLEAR ' Clear array
    GOTO BEGIN

    TIME_OUT:
    HSEROUT ["Time Out",13,10] ' Indicate timeout
    GOTO BEGIN

    Sending with 16F876A

    DEFINE OSC 20
    DEFINE LOADER_USED 1

    BEGIN:
    SEROUT2 PORTB.0,16468,["-- Hello there this is a test --",13]
    PAUSE 1000
    GOTO BEGIN

    18F452 connected to PC serial port returns the following in MCS+ terminal program: -- Hello there this is a test --

    Dissconnect 16F876A from 18F452 serial input, ground 18F RB0, returns Time Out. Float or take RB0 HIGH, sit & spin in the SERIN2 line.

    Tried similar routines via RF. Still works flawlessly. Tossed in a few bytes to DC balance the receiver data-slicer, but I get similar good results.

    Ran same tests with the WAIT modifier. Same results.

    ' RX
    DEFINE OSC 20
    DEFINE LOADER_USED 1
    myVar VAR byte[32]

    BEGIN:
    SERIN2 PORTB.0,16468,1000,TIME_OUT,[WAIT("X"),STR myVar\32\13]
    HSEROUT [STR myVar\32,13,10]
    CLEAR ' Clear array
    GOTO BEGIN

    TIME_OUT:
    HSEROUT ["Time Out",13,10]
    GOTO BEGIN

    ' TX
    DEFINE OSC 20
    DEFINE LOADER_USED 1

    BEGIN:
    SEROUT2 PORTB.0,16468,["X-- Hello there this is a test --",13]
    PAUSE 1000
    GOTO BEGIN

    I suspect something else may be causing your headaches.
    Last edited by Bruce; - 2nd September 2004 at 00:13.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Generic RF Receiver
    By dhouston in forum Code Examples
    Replies: 0
    Last Post: - 8th September 2009, 14:35
  2. Interfacing 16F88 to RF module
    By scomi85 in forum General
    Replies: 2
    Last Post: - 19th February 2009, 12:52
  3. CO2 MG811 sensor connection
    By elektoro2009 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th May 2008, 00:49
  4. Replies: 2
    Last Post: - 29th September 2007, 06:49
  5. Need CRC for RF PIC2PIC Bit arrayed interface
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 24th August 2006, 12:35

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