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 (

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] 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

[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