[SOLVED] Help with Serial interfacing to a PIC 16F88
Hello,
I have this circuit attached below and I can open hyperterm and hold the tx and rx of the FT232 and verify I am sending characters but when I try to get my PIC to read that character it does not see it.
Does anything look wrong with my circuit?
Here is my code for the PIC using PIC BASIC PRO:
Thanks
EDIT:
I didn't need the MAX232 just the FT232 and all I was missing was the ground from the FT232 needed to be tied into the Ground of the PIC circuit because the FT232 is powered from the USB and the PIC is powered externally.
Hello,
I have this circuit attached below and I can open hyperterm and hold the tx and rx of the FT232 and verify I am sending characters but when I try to get my PIC to read that character it does not see it.
Does anything look wrong with my circuit?
Here is my code for the PIC using PIC BASIC PRO:
Code:
DEFINE OSC 4
Include "modedefs.bas"
B0 var byte
high PORTB.1
mainloop: Serin PORTB.2,N2400,B0
If B0 = "b" Then
Low PORTB.3
endif
If B0 = "a" Then
high PORTB.3
endif
Goto mainloop
Thanks
EDIT:
I didn't need the MAX232 just the FT232 and all I was missing was the ground from the FT232 needed to be tied into the Ground of the PIC circuit because the FT232 is powered from the USB and the PIC is powered externally.
Attachments
Last edited: