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 ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel