ATmega16 16PU -- 16Mhz -- Device Not Recognized
Posted: Tue Jun 22, 2010 8:04 pm
Hello,
I'm new to AVRs and am trying to use V-USB for a joystick project:
Current hardware:
ATmega16 16PU
16Mhz crystal
Fuse, low: 0x9F, high: 0xC9
Bus powered 5V circuit with 3.6 zeners
Self-made vero-board-based development board
6 foot usb cable with shield grounded to board ground
USBasp programmer
I have tried various non-USB programs on the uC and they all work fine. I don't have an oscilloscope, but I've made an LED blink at the expected rate, so I'm guessing that it is indeed running at 16Mhz. I have HID Mouse loaded on the uC at the moment. But when I connect it to my desktop, it always says "device not recognized". When I connect it to a netbook, it gets recognized half the time, but as "Unknown Device" (as displayed in the speech bubble upon detection and then in device manager). I'm guessing that something like "Standard HID Mouse" is the correct outcome, so is this an error? Is the crystal's timing off?
The desktop has an intel 82801GB (ICH7) controller while the Netbook has an 82801G (ICH7) controller, so I'm wondering why there is such a difference.
I don't have a 12MHz crystal now, and no debugging h/w except for a bunch of LEDs and a multimeter. Any suggestions how to go about fixing this will be most welcome.
Thanks for reading,
Matt
I'm new to AVRs and am trying to use V-USB for a joystick project:
Current hardware:
ATmega16 16PU
16Mhz crystal
Fuse, low: 0x9F, high: 0xC9
Bus powered 5V circuit with 3.6 zeners
Self-made vero-board-based development board
6 foot usb cable with shield grounded to board ground
USBasp programmer
I have tried various non-USB programs on the uC and they all work fine. I don't have an oscilloscope, but I've made an LED blink at the expected rate, so I'm guessing that it is indeed running at 16Mhz. I have HID Mouse loaded on the uC at the moment. But when I connect it to my desktop, it always says "device not recognized". When I connect it to a netbook, it gets recognized half the time, but as "Unknown Device" (as displayed in the speech bubble upon detection and then in device manager). I'm guessing that something like "Standard HID Mouse" is the correct outcome, so is this an error? Is the crystal's timing off?
The desktop has an intel 82801GB (ICH7) controller while the Netbook has an 82801G (ICH7) controller, so I'm wondering why there is such a difference.
I don't have a 12MHz crystal now, and no debugging h/w except for a bunch of LEDs and a multimeter. Any suggestions how to go about fixing this will be most welcome.
Thanks for reading,
Matt