The default configs for the 2455 are for a 20mhz crystal.
But you say you also commented those and used the ones in USBdemo which are for a 4mhz crystal, so it may be unlikely, but you may want to verify the settings in the programmer before downloading just to make sure.
@ 4mhz, Should be ...
Code:
__CONFIG _CONFIG1L, _PLLDIV_1_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
__CONFIG _CONFIG1H, _FOSC_XTPLL_XT_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
__CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_ON_2L & _BORV_2_2L & _VREGEN_ON_2L
Does the fact that the pc sometimes appears to recognize the PIC imply that the hardware is OK?
No. Not really.
Especially if it reported being a "HID Mouse".
Shouldn't have said anything about a mouse with USBdemo.
USBdemo definitely works, so the problems not in the program (assuming you haven't modified it).
Have you verified that D+ goes to Pin 3 of the USB connector, D- is on Pin 2, Pin 4 is grounded, and Pin 1 is left Open?
Bookmarks