From: Erich W. <ew....@na...> - 2011-03-26 09:58:29
|
Hello, On 03/26/2011 11:31 AM, D Nyberg wrote: > Okay gang, I'm making progress with my efforts to get amforth running, > but encountering perplexing problems. > > Issue 1: I got the console running, but only by overriding the kernel's > calculated uart divider value of 0x33 with my empirically determined > value of 0x71. Must be running at a clock rate wildly different from > what the crystal says, or is ignoring the crystal or something like > that. Any thoughts on possible causes for this? > A brand new controller runs on its internal RC oszillator at roughly 1 MHz, no matter what crystal is connected. To make the external crystal the clock source for the controller, you must set the fuses accordingly. Example: on the arduino duemilanove (atmega328p) with 16 MHz crystal, the fuse values are LFUSE=0xFF HFUSE=0xD9 EFUSE=0x05 Check the file amforth/releases/4.2/appl/arduino/readme.txt in the amforth source tree. > > Issue 2: With the console running, I can do a few really basic things > such as 1 . yields a correct response of 1<cr> ok, but... If I enter 1 > 2 + . I get the strange response "?? -13 6"<cr> ok. The output ?? -13 6 says: What you typed in, resulted in an error (??), -13 is "word not found", iirc, and 6 is the column in which the not-found word ends. Cheers, Erich |