HID keys port problem
Posted: Fri Mar 08, 2013 4:05 pm
Hi,
I'm trying to create a project based on Hid Keys. My problem starts when trying to connect the D + and D-port to another.
What happens is that I change the port in the library usbconfig.h and connect the pins where I want but after compiling the program and go to the atmega 8, this always works with the configuration of the original design.
I also changed the configuration of PORT's in main.c but the same thing always happens.
I started just by changing the D-, keeping the D+ connected to INT0. For example, in the port's initial project are defined DDRD, D-= 0 and D + = 2. I changed the D-= 3 but when I connect it to the pc it says the device is unknown. If reconnecting the D-= 0, whith no compile or copy back to the atmega8, it works correctly.
What am I doing wrong?
I'm trying to create a project based on Hid Keys. My problem starts when trying to connect the D + and D-port to another.
What happens is that I change the port in the library usbconfig.h and connect the pins where I want but after compiling the program and go to the atmega 8, this always works with the configuration of the original design.
I also changed the configuration of PORT's in main.c but the same thing always happens.
I started just by changing the D-, keeping the D+ connected to INT0. For example, in the port's initial project are defined DDRD, D-= 0 and D + = 2. I changed the D-= 3 but when I connect it to the pc it says the device is unknown. If reconnecting the D-= 0, whith no compile or copy back to the atmega8, it works correctly.
What am I doing wrong?