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
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.
nO DID NOT SEND TO pc. Actually never done that in my life....
If you are using the hardware serial port (as I suggest), then the polarity will be wrong for a direct connection to a PC, so that won't work.
If you issue HSEROUT [...] and the port doesn't even toggle, then you have some other problem.
Charles Linquist
I can some steady activity on the HSEROUT port. Seems to me the receiving end is a problem. I used another picF88 chip in case it would be a hardwire pin problem, but still the LCD is not showing the input. I removed the First LCDOUT and juste the one after the HSERIN and the L:CD is showing blank...
Are you using HSERIN for the receive side?
Just do this -
LCDOUT $FE,$1
Topp:
HSERIN [X]
LCDOUT X
Goto Topp
Charles Linquist
this is what I have now. the tiny rail of the breadboard seems to be defective, although I tested it with my multimeter and it seems to be conducting, but then if I put the wire from the transmitting pic directly to the receiving chip leg then I could see something on the LCD. that fixed. I am sending 5 or 22 or 85 from the TX pic and I am always receiving 49 on the RX chip....
Mainloop:
Pause 50
Hserin [encoded22]
PAUSE 100
lcdout $FE,1, "input ", bin encoded22
pause 200
goto Mainloop
end
Bookmarks