USB port on a 16F877A

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Puddy32
Posts: 7
Joined: Sat Mar 24, 2012 12:49 am
Has thanked: 1 time
Contact:

USB port on a 16F877A

Post by Puddy32 »

Hi all
Im doing a project at collage at the moment with a 16F877A, motor controller with PID,
Im nearly finished and in the process of programming so I want to put a USB port onto my circuit board so i can programme it in circuit.
However I cant seem to get it right and it is frustrating to have to take out the chip everytime.
Would anyone have some info on how to put a usb port onto a 16F877A, wiring diagram?
Your help would be appreciated
Puddy

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: USB port on a 16F877A

Post by JohnCrow »

Hi Puddy

The 16F877A does not have a built in USB function like the 18F4455/18F4550 type devices.You will need to use something like an FT232BL device.
Have you looked at the EB039 e-block.
This will connect to the UART on port C of your device. The data sheet for this will give you a starting point as to how the extra circuity will work
Unless you have to use the 16F877A it may be simpler to change to the 18F series device. Flowcode has built in functions to use USB with this chip.

Dont think this form of USB connection would let you program the chip in circuit though.

If I needed that option Id go for the ECIO40 or maybe the ECIO28 if it had enough I/O capabillity.
1 in 10 people understand binary, the other one doesn't !

Puddy32
Posts: 7
Joined: Sat Mar 24, 2012 12:49 am
Has thanked: 1 time
Contact:

Re: USB port on a 16F877A

Post by Puddy32 »

Hi John
Thanks for the reply
Unfortunately I have to use the 16F877A, I will check out what you suggested see how it goes.
Puddy

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB port on a 16F877A

Post by Benj »

Hello,

You can make a cable to go from your EB006 or HP488 programmer to program the device in your own circuitry.

http://www.matrixmultimedia.com/support ... ?f=2&t=586

The cable has to remain fairly short but may help with the problem of moving the chip back and forth continuously.

Post Reply