From: Erich W. <ew....@na...> - 2012-01-21 10:06:05
|
Hello Robert, On 01/20/2012 07:49 AM, Robert Epprecht wrote: > 3 TCCR0B c! > does not hang the system, but does not tick either. > > 4 TCCR0B c! > hangs system, had to re-flash amforth > often also takes my /dev/ttyACM0 down and I have to reboot linux > (which looks to me like a linux kernel issue). > > 5 TCCR0B c! > reset? > The system starts to print the boot message interruptet by some > bytes of garbage and endlessly repeats that. > > > Confused, > Robert You did check these hard coded numbers against the datasheet, did you? The atmega32 (where my code works) and the atmega328p (on the arduino board) are different in unexpected places. For example: sleep.asm The bits controlling sleep mode are in the register MCUCR on atmega32 and in the separate register SMCR on atmega328p. Cheers, Erich |