Issues sending and receiving data


Results 1 to 20 of 20

Threaded View

  1. #10
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default Re: Issues sending and receiving data

    hard to see the red bits doing anything of value except to cause framing errors

    you could add the blue bits to prevent framing errors @ startup

    Code:
    COMMTX            VAR        PORTA.2    MESLED            VAR        PORTB.5        'MESSAGE LED
    
    
    
    
    PreAmble         CON     $A5    
    
    
    
    
    '*****************************************************************************
    INIT:
    
    
    
    
    PORTA=000000
    PORTB=000000
    PORTC=000000
    HIGH COMMTX
    pause 10
    GOTO START
    
    
    
    
    '*****************************************************************************
    START:
    
    
    
    
    HIGH INTLED
    HIGH COMMTX
    PAUSE 500
    LOW COMMTX
    LOW INTLED
    
    
    
    
    PAUSE 200
    
    
    
    
    HIGH MESLED
    
    
    
    
    debug PreAmble,$af,$c2,$b5,$ef,13,10
    
    
    
    
    PAUSE 500
    LOW MESLED
    
    
    
    
    PAUSE 4000
    
    
    
    
    GOTO START

    if you use a viable pin on the rx unit it for debug will work , its not a way i would recommend
    Last edited by richard; - 30th October 2024 at 06:52.
    Warning I'm not a teacher

Similar Threads

  1. SERIN2 Receiving Wrong Data
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 4th May 2024, 20:31
  2. how to display data receiving from xbee to LCD
    By NURULHAIZA in forum mel PIC BASIC
    Replies: 2
    Last Post: - 19th November 2010, 21:24
  3. Sending/receiving data using Linx modules
    By Goat 403 in forum Serial
    Replies: 3
    Last Post: - 21st May 2009, 13:57
  4. Receiving and Transmitting Serial data at the same time
    By BobP in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th April 2007, 22:00
  5. Receiving data from more than one serial Port
    By PICtron in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th March 2005, 10:20

Members who have read this thread : 15

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