Atmega128 restarts
Posted: Sat May 03, 2008 6:37 pm
Hi,
I have a problem with Atmega128 and AVR-USB. When I call usbInit() my AVR restarts.
Schematic: www.exsports.info/sch.JPG
UsbConfig: www.exsports.info/usbconfig.h
Code:
In my board R17 and R18 (from schematic) are 100Ohm instead of 68Ohm. Fuse bits configuration is in my opinion OK (0xEF 0x99 0xFd). I'm using 12Mhz crystal.
Sorry for my English and thanks for help.
I have a problem with Atmega128 and AVR-USB. When I call usbInit() my AVR restarts.
Schematic: www.exsports.info/sch.JPG
UsbConfig: www.exsports.info/usbconfig.h
Code:
Code: Select all
int main(void)
{
PORTD = 0;
DDRD = 0b11111000;
usbInit();
sei();
for(;;){
usbPoll();
}
return 0;
}
In my board R17 and R18 (from schematic) are 100Ohm instead of 68Ohm. Fuse bits configuration is in my opinion OK (0xEF 0x99 0xFd). I'm using 12Mhz crystal.
Sorry for my English and thanks for help.