|
|
View previous topic :: View next topic |
Author |
Message |
Storic
Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
|
USB not working |
Posted: Fri Feb 02, 2007 1:30 am |
|
|
HI I an using V4.023 and 3.249 CCS compiler, on a board that I had put together. Using the demo program "ex_usb_hid.c" on the USB Demo board (18F4550) all works OK and the PC can see the USB (with errors). when I put the same program into my board (can not see at all), using the USB drawing supplied, pin 2 to C4 pin 3 to C5, when I traced out the USB demo board I found the reverse, Pin 2 to C5 and Pin 3 to C4, (what to do with 400 land fill PCB), (I an using the USB B Mini) for the USB Plug. I reversed the connection on my PCB by cutting tracks and soldering jumper wires, Yep working now
Andrew _________________ What has been learnt if you make the same mistake? |
|
|
Ttelmah Guest
|
|
Posted: Fri Feb 02, 2007 3:33 am |
|
|
I'm sorry, but the connections are not reversed in the drawing....
The USB 'B' socket, has the pinout running:
2 1
3 4
As you look 'into' the socket,
and
3 4
2 1
Looking at the base of the socket, from below the board. Notice the row reversal.
Pin 3 on the socket, goes to C5 on the processor (pin 43), and pin 2 on the socket, goes to C4 on the processor (Pin 42 - the circuit diagram is slightly confusing, since the pin locations on the drawing of the processor, do not correspond to those round the real chip...).
I'm afraid you just laid the board out wrong...
Best Wishes |
|
|
Storic
Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
|
|
Posted: Fri Feb 02, 2007 5:00 am |
|
|
Yes you are probably correct, not only this, I cant get the USB to work at All. even on my USB Dev kit. Programs OK, code in OK, USB ???. not to worry, I will try another 18F4550 micro. _________________ What has been learnt if you make the same mistake? |
|
|
Storic
Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
|
|
Posted: Sat Feb 03, 2007 3:01 am |
|
|
I found the reason why my USB was not working, it appears that I have my tracks to close together, pin connection was OK, Using external wires to of board mini USB B connector (4 pin) it work with out any problems. was not an easy one to find where after careful review of the circuit connection every think was correct
Now I found the cause, the fix is easy ?
**** not the tracks "found a short on C3 to ground" the Vbus Cap pin****
Andrew _________________ What has been learnt if you make the same mistake? |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|