|
|
View previous topic :: View next topic |
Author |
Message |
bercam Guest
|
USB PIC18f2550 problem |
Posted: Wed May 02, 2007 11:57 am |
|
|
Hi all,
I'm trying to run the USB CDC code downloaded from CCS web page.
I've got my own board using PIC18f2550.
The board is running with 4Mhz Xtall:
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,DEBUG,USBDIV,PLL1, CPUDIV1,VREGEN
#use delay(clock=48000000)
I'm using USART serial port to debug code
#use rs232(STREAM=CH1,baud=19200,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)
I've put a 470nF on C3 and 47KOhm resistor between VCC_USB and D+ in order to select Hi-Speed USB peripheral
My board gets power from USB port and after plug it into USB conector I can see messages in the hyperterminal session (The board is running). At same time Windows recognize a new peripheral and show me a window in order to select .inf driver file .
After that I select the follow path C:\MCHPFSUSB\fw\CDC\inf\win2k_winxp
At the end Windows could not install the hardware: wizard could not find a suitable software
any suggestion |
|
|
kevcon
Joined: 21 Feb 2007 Posts: 142 Location: Michigan, USA
|
|
Posted: Wed May 02, 2007 12:06 pm |
|
|
Double check the data sheet for the resistor value on D+, all of the specs I've seen use a 1.5K resistor. |
|
|
bertronicom
Joined: 17 Nov 2004 Posts: 26 Location: University of Cantabria -SPAIN
|
it works fine now |
Posted: Mon May 07, 2007 9:44 am |
|
|
finally it works the problem was:
I've selecting .inf from Microchip instead .inf CCS |
|
|
Guest
|
|
Posted: Tue May 08, 2007 5:40 am |
|
|
anyway you dont need to use any external resistor since pull-up resistors are inside a PIC. |
|
|
|
|
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
|