Vusb capacitor for USB comms with 18f2550
Hi guys,
I have an intermittent problem with USB comms. I had it working, then it broke for no reason (no code changes) and the Pic drops off the bus at will and then may or may not reappear. When it fails to come on or drops off, the light on my USB hub also is not on. When it is working the light is on.
I just noticed that if I touch Pic pins (seems like any) and the Vusb cap with the same hand the device comes back on the bus. I have used this circuit for so many things I am sure MCLR etc are all good. Apart from USB it is reliable. I am using a yellow rectagular 470nj 63 cap. I am not sure what type it is or if it is the right type. I replaced it just in case it might be faulty but to no avail.
I tried replacing it with a 270nj, a 390nj and also parallelling the 470 with a 270 and then a 390 to see if it needed to go smaller or larger. I can only think it is the size. I have 25pfs on my 20Mhz crystal as I didn't have any 22pf. I also DON'T have a 1m resistor between crystal pins as I saw in the EasyHID schematic.
I'm using EasyHID code by the way.
Any ideas anyone.
Thanks again
Rich
PS. I'm learning a lot very quickly, I might even be able to help YOU soon!