Search found 4 matches

by Stephan
Wed Aug 15, 2007 11:21 pm
Forum: V-USB
Topic: Problems with ATMega88
Replies: 12
Views: 13261

Yes we changed the Makefile to compile for the Mega88 and we use PD1 and PD2 for USB and set DDRD to 0x00. All the code I used is in the original post. I can't provide a debug log.
by Stephan
Wed Aug 15, 2007 3:52 pm
Forum: V-USB
Topic: Problems with ATMega88
Replies: 12
Views: 13261

I used this test program and measured a frequency of 666KHz. #include <avr/io.h> #include <avr/wdt.h> static void initHardware(void) { DDRD |= (1 << DDD5); PORTD &= ~(1 << PD5); TCCR0B = 5; /* Set timer to scale at 1024 eg 12MHz/1024/ 256 for overflow */ } int main(void) { wdt_enable(WDTO_2S); i...
by Stephan
Mon Aug 13, 2007 1:45 pm
Forum: V-USB
Topic: Problems with ATMega88
Replies: 12
Views: 13261

I changed the low fuse to 0xDF and commented out the register changes in usbconfig.h it compiled fine, but I still can't detect the usb device.

Stephan
by Stephan
Mon Aug 13, 2007 11:29 am
Forum: V-USB
Topic: Problems with ATMega88
Replies: 12
Views: 13261

Problems with ATMega88

Hi, I am trying to get a simple test program working using AVR USB on a Mega88. I took the code from the Automator project and modified it so that it writes back 3 bytes when it received a HID_GET_REPORT. However the PC does not find the usb device. I use 'lsusb' and it does not show up. I modified ...