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..."
Bookmarks