Code for Send/Receive TTL/Comport Sample?


Closed Thread
Results 1 to 40 of 53

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262


    Did you find this post helpful? Yes | No

    Default Re: Code for Send/Receive TTL/Comport Sample?

    the pic is sending data and its receiving it, as when it sends, my serial software shows new characters, same when i send data to the pic, the lcd updates with new characters, it just oddball characters, for instance if I have the pic send this line to the PC
    Hserout ["Hello World", 13, 10]
    this is what shows up in the software on PC each line come up every time it sends that line, you can see its not right...
    X
    ¸
    \
    ¸
    ¸
    ¸H
    ¸
    ¸
    ¸
    ¸
    ¸>
    ¸¸¸¸¸¸




    I also added these lines to program
    Code:
    Define OSC 20  
    define HSER_BAUD 9600
    DEFINE HSER_BITS 8
    DEFINE HSER_CLROERR 1
    RCSTA = $90
    TXSTA = $24
    TRISC = %11000000
    TRISD = 0
    BAUDCON.4 = 1
    BAUDCON.5 = 1
    RCSTA.7 = 1
    Last edited by wdmagic; - 2nd July 2013 at 13:02.
    Chris


    Any man who has accomplished anything in electronics at one time or another has said... " STOP! WAIT! NOOO! Dangit.... Oh Well, Time to start over..."

Similar Threads

  1. how to send and receive sms using vb?
    By shyhigh2002 in forum Off Topic
    Replies: 0
    Last Post: - 1st April 2009, 09:18
  2. please who can help me for sample code
    By jasem700 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 22nd February 2009, 20:41
  3. How to build modem for only send and receive the msg
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th April 2006, 13:37
  4. send and receive data using pic 16f84a
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2006, 20:12
  5. send and receive data using pic 16f84a
    By PoTeToJB in forum Serial
    Replies: 1
    Last Post: - 25th February 2006, 14:47

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