AVR-USB on ATmega88/168
Posted: Tue Oct 30, 2007 2:39 am
Hi,
I'm kind of going crazy over here. Been fiddling for 24h now and I am getting nowhere.
I'm trying to get AVR-USB (HID) to work on a mega88. I'm doing something wrong here and i just can't find the problem.
I got a AVR-USB HID device working on a tiny45 just fine. With some instability though so i thought maybe I would try a mega88 with a 12 or 16MHz xtal and i also needed some more IO pins.
Unfortunately i cant find ANY working code AVR-USB HID code for the mega88 or mega168. Could someone _please_ post some working code for me?
Even better.. could someone check out my code ( http://pastebin.com/m232ba94e ) and figure out whats wrong with it? I can't for the life of me figure out what it is. Its just a stripped down version of the Automator code, that i found here on the forum, with some minor modifications.
I get a "usb device not recognized" message and my sanity check led is lighting up so the microcontroller and setup on the breadboard seems ok. An identical setup for the tiny45 works fine. Still i cant get the damn mega88 code to work. Going crazy here...
These are my fuse settings:
BOOTSZ=00
Boot reset vect enabled ($0000)
Brown-out 2.7 V
Ext. Full-swing Crystal 1K CK / 14 CK + 65 ms (tried all the fused delay combos)
Btw, Im using AVR Studio.
I hope that someone can shed some light on the situation here.
Thanks
noobie
I'm kind of going crazy over here. Been fiddling for 24h now and I am getting nowhere.
I'm trying to get AVR-USB (HID) to work on a mega88. I'm doing something wrong here and i just can't find the problem.
I got a AVR-USB HID device working on a tiny45 just fine. With some instability though so i thought maybe I would try a mega88 with a 12 or 16MHz xtal and i also needed some more IO pins.
Unfortunately i cant find ANY working code AVR-USB HID code for the mega88 or mega168. Could someone _please_ post some working code for me?
Even better.. could someone check out my code ( http://pastebin.com/m232ba94e ) and figure out whats wrong with it? I can't for the life of me figure out what it is. Its just a stripped down version of the Automator code, that i found here on the forum, with some minor modifications.
I get a "usb device not recognized" message and my sanity check led is lighting up so the microcontroller and setup on the breadboard seems ok. An identical setup for the tiny45 works fine. Still i cant get the damn mega88 code to work. Going crazy here...
These are my fuse settings:
BOOTSZ=00
Boot reset vect enabled ($0000)
Brown-out 2.7 V
Ext. Full-swing Crystal 1K CK / 14 CK + 65 ms (tried all the fused delay combos)
Btw, Im using AVR Studio.
I hope that someone can shed some light on the situation here.
Thanks
noobie