Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Help with Serial interfacing to a PIC 16F88

Status
Not open for further replies.

wolwil

New Member
[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:

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

  • Serial Test Schem&.jpg
    Serial Test Schem&.jpg
    58 KB · Views: 549
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top