CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

USB PIC18f2550 problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bercam
Guest







USB PIC18f2550 problem
PostPosted: Wed May 02, 2007 11:57 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed May 02, 2007 12:06 pm     Reply with quote

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

View user's profile Send private message Send e-mail MSN Messenger

it works fine now
PostPosted: Mon May 07, 2007 9:44 am     Reply with quote

finally it works the problem was:

I've selecting .inf from Microchip instead .inf CCS
Guest








PostPosted: Tue May 08, 2007 5:40 am     Reply with quote

anyway you dont need to use any external resistor since pull-up resistors are inside a PIC.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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