HIDKeys with atmega168
Posted: Tue Mar 11, 2008 11:40 pm
Hello everybody,
I'm trying to run the HIDkeys project on an atmega168 but I can't.
I've downloaded the latest usbdriver from the powerswitch project, i've changed the -mmcu directive in Makefile to atmega168 and i've inserted these defines in the main.c file :
#if !defined TCCR0 && defined TCCR0B
#define TCCR0 TCCR0B
#endif
#if !defined TIFR && defined TIFR0
#define TIFR TIFR0
#endif
Compilation goes without errors and i can program my atmega168 thanks to an arduino board.
The problem is that when I build the circuit on my breadboard and I plug it in a computer it doesn't work. Windows doesn't recognise the HID device and Mac Os X does nothing.
I'm better with software than with hardware and I'm not able to modify the circuit if it have to be modified.
Does anybody have already realized that project with the atmega168?
Do I have to modify the circuit?
Are my modifications to source code enough?
In other words: where am I doing wrong?
Thanks in advance for any help and sorry for my English.
I'm trying to run the HIDkeys project on an atmega168 but I can't.
I've downloaded the latest usbdriver from the powerswitch project, i've changed the -mmcu directive in Makefile to atmega168 and i've inserted these defines in the main.c file :
#if !defined TCCR0 && defined TCCR0B
#define TCCR0 TCCR0B
#endif
#if !defined TIFR && defined TIFR0
#define TIFR TIFR0
#endif
Compilation goes without errors and i can program my atmega168 thanks to an arduino board.
The problem is that when I build the circuit on my breadboard and I plug it in a computer it doesn't work. Windows doesn't recognise the HID device and Mac Os X does nothing.
I'm better with software than with hardware and I'm not able to modify the circuit if it have to be modified.
Does anybody have already realized that project with the atmega168?
Do I have to modify the circuit?
Are my modifications to source code enough?
In other words: where am I doing wrong?
Thanks in advance for any help and sorry for my English.