I changed the config for 20 Mhz clock, but still no enumeration. I uploaded my project files in the following zip. Can someone please let me know if they can get this to enumerate on their bread board? Thanks
I changed the config for 20 Mhz clock, but still no enumeration. I uploaded my project files in the following zip. Can someone please let me know if they can get this to enumerate on their bread board? Thanks
It would have been much easier to start with mister_e's example ....
Apparently, you have an 18F2550.INC file in your project folder where you are changing the configs.
PBP won't use that file. It uses the one in the PBP folder.
But you should really put the configs in your program, and comment out the configs in the 18F2550.inc file in the PBP folder.
Use these ...Then remove the pauses in your loops, USBSERVICE must be called every ~1ms or less. (when enumerating)Code:asm __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_ON_2L & _BORV_2_2L & _VREGEN_ON_2L __CONFIG _CONFIG2H, _WDT_OFF_2H __CONFIG _CONFIG3H, _MCLRE_ON_3H & _LPT1OSC_OFF_3H & _PBADEN_OFF_3H & _CCP2MX_ON_3H __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L endasm
After making those changes, I was able to get your program to enumerate on an 18F4550. Don't have a 2550.
DT
Well I changed the config files and took out the pause in the code. Still no enumeration. Could this be a hardware problem?
I attached everything the same way as the 4550 pictured by easyhid, but just adapted to the 2550.
There's always a chance for a hardware problem. But that's a liitle hard to troubleshoot on this end.
The schematic is good though.
Just noticed you have a DEFINE LOADER_USED 1
Are you using a bootloader?
DT
No im not, im using melabs pic programmer. Should I take out that define statement?
Okay, Finally I got the thing to show up on the pc! A 1k pull up resistor needs to be put on D+ and Vsub!! I was under the assumption that there was an internal pull up resistor there. Maybe I didn't configure that in the code.
Well Thanks for everyones help so far.
The windows doesnt recognize the device tho. So it wont enumerate as an HID device yet.
Last edited by jizyjuice; - 7th April 2007 at 22:40.
There are internal pull-ups. And EasyHID configures them for Full-Speed, so you shouldn't need external ones.
Did you use all the configs from post #11?
In particular _VREGEN_ON_2L.
Your original configs had that turned OFF, just want to make sure it's turned ON now.
It doesn't really matter, it's fine even if not using a bootloader. But if you were using a bootloader it may have caused problems with the config settings, so I thought I'd ask.Should I take out that define statement?
DT
Bookmarks