need some help with 18f2550

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Post Reply
phatali
Posts: 10
Joined: Sun Nov 19, 2006 12:57 am
Contact:

need some help with 18f2550

Post by phatali »

hi
im in need of some advice, i have this pic 18f2550 and want to connect a female usb plug up to the pic now i know that pins 15 is D- , 16 is D+, and vdd is pin 20. this is ok but if im wanting to connect this via version 3 board do i assign it to a port or use a certain port im sure its very simple :oops: haha just im confused, i hope someone can help me out .
thanks
ali

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

The D+ & D- USB pins of that chip are RC5 and RC4, so these can be accessed via the PORTC E-Block connector or via the header blocks next to the chip sockets (see the datasheet for the pinout).

It is likely you will not need to connect Vdd to the usb socket (unless you want to power the whole of the board via usb, but this can be tricky and I would not suggest you did this).

You will need to connect the ground pin of the USB port to the development board.

phatali
Posts: 10
Joined: Sun Nov 19, 2006 12:57 am
Contact:

Post by phatali »

fantastic!!
thanks for the help im going to experiment now hehe :D

Post Reply