USB Hid using a PIC18F4455
Posted: Tue Sep 08, 2009 10:01 am
Hi there,
I’ve recently built a USB Hid device using the USB pack in Flowcode v3.6 and it works great when compiled to an ECIO40 chip.
I’m now looking to build the same circuit from scratch but use an 18f4455 chip (ie the same microchip as found on a ECIO40 but DIP version, not smd) instead of the actual ECIO40. I’m following the same schematic as the ECIO 40 chip and am using a 4mhz crystal. I have also configured the 18f4455 using the configuration settings I found whilst reading the supremely helpful matrix multimedia forum posts. The settings are as follows…
USB Clock Selection - clk src from 96MHz PLL/2
CPU Sys CLK Select - no divide
OCS Select - Match the value of your crystal (so set to 4mhz)
Oscillator - HS: HS+PLL, USB-HS
USB Voltage Regulator - Enabled
Watchdog timer – Disabled
Sadly I still get an error message that the USB has malfunctioned etc and is an unknown device when I plug my circuit (with chip) into a usb port.
Any help as to where I am going wrong or a point to one of the forum posts would be super. I should say I am programming the 18f4455 using the EB006 Multi-programmer, I’ve swapped out the 19.6608MHz crystal, replaced it with the 4MHz crystal I mention above, and moved the silder to the XTAL position and the chip does compile successfully.
Many thanks in advance.
Alex Baxter.
I’ve recently built a USB Hid device using the USB pack in Flowcode v3.6 and it works great when compiled to an ECIO40 chip.
I’m now looking to build the same circuit from scratch but use an 18f4455 chip (ie the same microchip as found on a ECIO40 but DIP version, not smd) instead of the actual ECIO40. I’m following the same schematic as the ECIO 40 chip and am using a 4mhz crystal. I have also configured the 18f4455 using the configuration settings I found whilst reading the supremely helpful matrix multimedia forum posts. The settings are as follows…
USB Clock Selection - clk src from 96MHz PLL/2
CPU Sys CLK Select - no divide
OCS Select - Match the value of your crystal (so set to 4mhz)
Oscillator - HS: HS+PLL, USB-HS
USB Voltage Regulator - Enabled
Watchdog timer – Disabled
Sadly I still get an error message that the USB has malfunctioned etc and is an unknown device when I plug my circuit (with chip) into a usb port.
Any help as to where I am going wrong or a point to one of the forum posts would be super. I should say I am programming the 18f4455 using the EB006 Multi-programmer, I’ve swapped out the 19.6608MHz crystal, replaced it with the 4MHz crystal I mention above, and moved the silder to the XTAL position and the chip does compile successfully.
Many thanks in advance.
Alex Baxter.