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 Help

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



Joined: 14 Sep 2003
Posts: 96
Location: Toronto, Ontario, Canada

View user's profile Send private message

USB Help
PostPosted: Wed Apr 18, 2012 7:50 pm     Reply with quote

Hi

I have never used a Pic with USB so I am trying to learn.

Just compiled the USB Keyboard Example ex_usb_keybord.c

Set The CPU type to USB_HW_MCHP_18F14K50 in ex_usb_common.h.

All compiles fine with Version PCH v4.132.

Hardware like this:
Used 12Mhz Crystal connected D+ & D- to USB Connector.
Pullup on MCLR.
Serial RS232 connections.

Example starts, Intro screen shown as in code via RS232
'CCS HID Keyboard Demo. ......

Last Line shows USB Connected, waiting for enumaration.....

I have it connected to Win7, Device manager shows under keyboards:

HID Keyboard Device

At this point I'm lost. ????

Waiting for enumeration..... ???? rest of demo not working.

Thanks in advance for any help.
Ttelmah



Joined: 11 Mar 2010
Posts: 19529

View user's profile Send private message

PostPosted: Thu Apr 19, 2012 1:39 am     Reply with quote

Two things:

Capacitor from Vdd to Vss right next to the chip. Something with good HF performance (polyester/ceramic for example, not an electrolytic).
Similar capacitor from Vusb to Vss. I suspect this is the critical one you are missing. Without this, USB won't work. 330 or 470nF polyester.

Best Wishes
Jerry I



Joined: 14 Sep 2003
Posts: 96
Location: Toronto, Ontario, Canada

View user's profile Send private message

USB Help
PostPosted: Thu Apr 19, 2012 6:48 am     Reply with quote

Thanks Ttelmah for quick answer.

Your were right I did not have a capacitor Vusb to Vss.

I did add capacitors as you suggested, but still does not work.

Any other ideas.

Thanks
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