Re: [Amforth] Watchdog prescalers

2013-10-12 Thread Matthias Trute
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi David, > If I get watchdog sleep running OK I'll send some text and the code > to add to your documentation if that's useful. Everything that a bloody newby may understand immediatly is fine ;) (I doubt that the watchdog is something in that cate

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread vum
It works! > TimeOuts @ . 0 ok > decimal ok > 1s wdt=prescaler! ok > ?wdt. wdt control&status = 6 ok > &45 TimeOuts ! TimeOuts @ . 45 ok > wdt!interrupt ok > TimeOuts @ . 29 ok > TimeOuts @ . ?wdt. 15 wdt control&status = 46 ok > TimeOuts @ . 0 ok > ?wdt. wdt control&status = 46 o

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread vum
> ... > A quick start: It's not rocket science. You need the dict_wl.inc > included, load vocabulary.frt and assembler.frt from the lib directory. > ... > Matthias I have loaded: marker.frt postpone.frt vocabulary.frt assembler.frt multitask.frt bitnames.frt atmega328p.frt misc.

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread David Wallis
Thanks to both Vladimir and Matthius for your input. I'll try and get it all up and running on Monday. If I get watchdog sleep running OK I'll send some text and the code to add to your documentation if that's useful. Cheers, David

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread vum
> ...can you give me a pointer on what to do with the > assembler code that you posted?... > ... > David You need to use "...\amforth-5.1\lib\assembler.frt" Good luck! moving forth, Vladimir. -- October Webinars:

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread Matthias Trute
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi David, > Sorry for being dumb, but can you give me a pointer on what to do > with the assembler code that you posted? I've never had to use > assembler with forth before and can't find a page that describes > what to do on the site. You're righ

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread David Wallis
Sorry for being dumb, but can you give me a pointer on what to do with the assembler code that you posted? I've never had to use assembler with forth before and can't find a page that describes what to do on the site. Many thanks for your help. David --

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread David Wallis
Fantastic. Looks as if this is just what I need. I'll give it a try. Thanks, David -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenM

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread vum
> Message: 1 > Date: Sat, 12 Oct 2013 12:05:53 +0100 >From: David Wallis > Subject: Re: [Amforth] Watchdog prescalers > To: amforth-devel@lists.sourceforge.net > > ... > ... I was keen to use the >watchdog timer because it > works with the lowest power mode (power down) and >doesn't need exter

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread Erich Waelde
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi David, On 10/12/2013 01:05 PM, David Wallis wrote: >> Are you sure, you want to do this with the watchdog timer? Isn't the >> watchdog timer only able to generate a reset? > > > Thanks for your code Erich. I was keen to use the watchdog timer bec

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread David Wallis
>Are you sure, you want to do this with the watchdog timer? Isn't the >watchdog timer only able to generate a reset? Thanks for your code Erich. I was keen to use the watchdog timer because it works with the lowest power mode (power down) and doesn't need external components. It seems to be a fa

Re: [Amforth] Easy Start with AMForth and ATMega32

2013-10-12 Thread developm...@decotrain.de
Now it comes up again - i don't know what happened before ... amforth 5.1 ATmega32 > 24 42 + . 66 ok > 36 30 - . 6 ok Thank You! Now i must spend time to read the manual and expreiment with forth. In a week i have holidays and this will be interesting ... Cheers Karsten ---

Re: [Amforth] Watchdog prescalers

2013-10-12 Thread Erich Waelde
Hello David, On 10/12/2013 11:13 AM, David Wallis wrote: > Hi all, > > I'm trying to use the watchdog timer on an ATMega324P for power saving by > sleeping for 8 seconds, and then having the watchdog wake the device. > However, I'm struggling to set the prescaler flags in WDTCSR. > > According t

Re: [Amforth] Easy Start with AMForth and ATMega32

2013-10-12 Thread developm...@decotrain.de
Hello Erich, Am 12.10.2013 12:01, schrieb Erich Waelde: > Hello Karsten, > > On 10/12/2013 10:53 AM, developm...@decotrain.de wrote: > > Well, attaching .hex files does not really help, imho. > If you need to attach code, use the .asm or the .lst file(s). Done this time. > > > If amForth does no

Re: [Amforth] Easy Start with AMForth and ATMega32

2013-10-12 Thread Erich Waelde
Hello Karsten, On 10/12/2013 10:53 AM, developm...@decotrain.de wrote: > Hello, > > i am not as fast as i want, but today i could setup my > Test-system with an ATMega32 developement board and AMForth. It > does not run. :-( There is nothing transmitted over the RS232. > > First thing i wonder a

[Amforth] Heavy Start with AMForth and ATMega32

2013-10-12 Thread developm...@decotrain.de
Hello, for hardware security i tested that the communication with the UART works. I wrote the attached "Hello world" with an additional counter output that works perfect. But when i program the Forth there comes nothing over the UART. :-( I have no idea how to proceed? Best regards Karsten --

[Amforth] Watchdog prescalers

2013-10-12 Thread David Wallis
Hi all, I'm trying to use the watchdog timer on an ATMega324P for power saving by sleeping for 8 seconds, and then having the watchdog wake the device. However, I'm struggling to set the prescaler flags in WDTCSR. According to the datasheet, the 'Change Enable' flag (WDCE) must be set to change t

[Amforth] Easy Start with AMForth and ATMega32

2013-10-12 Thread developm...@decotrain.de
Hello, i am not as fast as i want, but today i could setup my Test-system with an ATMega32 developement board and AMForth. It does not run. :-( There is nothing transmitted over the RS232. First thing i wonder about is when i convert the template.hex to a binary file: $ hex2bin template.hex hex