How are the two chips connected?
chip#1 ground to chip#2 ground
chip#1 TX to chip #2 RX
???
How are the two chips connected?
chip#1 ground to chip#2 ground
chip#1 TX to chip #2 RX
???
Dave
Always wear safety glasses while programming.
YES THE CHIPs has a common ground. RB5 is going to the receiving pic on RB2 (PIC16F88)
ken
Try these settings on both the Tx and RX chip
Code:DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0 DEFINE HSER_SPBRG 51 ' 2400 Baud @ 8MHz, 0.17% DEFINE HSER_CLROERR 1 ' Clear overflow automatically
Dave
Always wear safety glasses while programming.
just copied and paste your code and still did not work. Same as before.....
ken
Do you have your TX pin set for output (TRIS = 0)?
Charles Linquist
i ADDed this after I sent the code yesterday.:
TRISB = %00000000
AND
the other pic:
TRISB =%11111111
could it be in the include file?
K
If you are talking about "modedefs.inc" no. You do not need that file for what you are doing so it is not doing any harm. It is for SERIN/SEROUT and a couple other commands.
Have you tried sending/receiving to a PC?
Dave
Always wear safety glasses while programming.
Bookmarks