Re: [Amforth] measuring time

2012-01-15 Thread Robert Epprecht
Marcin Cieslak writes: >>> Robert Epprecht wrote: >> I need a word similar to arduino micros() to keep track of time. > 1ms ( is wait one microsecond ) > n ms ( wait n microseconds) ) yes, but these are for waiting, not measuring time. Robert ---

Re: [Amforth] measuring time

2012-01-15 Thread Robert Epprecht
"pito" writes: > long time back I used these words for time measurements: [...] Thanks, looks easier then i thought it would be. Will try to do something similar. Is there a special reason you selected timer 2? I was thinking about using timer 0. Robert ---

Re: [Amforth] uploading files on arduino UNO

2012-01-15 Thread Robert Epprecht
Matthias Trute writes: > I've got an major update for the amforth-shell.py script oh, thank you > maybe you could give it a try as well. > amforth-shell.py -u etc svn r1140 [with truncated path names] amforth-shell.py -v -t /dev/ttyACM0 -u some-file Traceback (most recent call last): File "

[Amforth] VE_ROOT wordlist anywhere?

2012-01-15 Thread Marcin Cieslak
Hello, my build of amforth trunk (r957) fails with amforth-eeprom.asm that VE_ROOT is not defined anywhere. It seems that even ONLY restores the wordlist order to contain FORTH vocabulary and there are no words defined in VE_ROOT. A patch below removes the VE_ROOT altogether, but I am not sure

Re: [Amforth] measuring time

2012-01-15 Thread Marcin Cieslak
>> Robert Epprecht wrote: > Does amforth set up a timer to measure time or do I have to do that by > hand? I need a word similar to arduino micros() to keep track of time. > Has somebody already written that? 1ms ( is wait one microsecond ) n ms ( wait n microseconds) ) > btw: What hw initiali

Re: [Amforth] measuring time

2012-01-15 Thread pito
Robert, long time back I used these words for time measurements: \ 2007-12-26 EW w4_clock_tick.fs \ 2010-09-02 PITO - FLOAT TIME MEASUREMENT ATMEGA 32 \+timerregister and enable interupt \-timerdisable interupt \ this is for mega32 marker -mytimer \ TIMER_COUNTER_2 $42

Re: [Amforth] measuring time

2012-01-15 Thread Matthias Trute
Hi Robert, > Does amforth set up a timer to measure time or do I have to do that by > hand? I need a word similar to arduino micros() to keep track of time. > Has somebody already written that? The directory examples may be a starting point. More can be found in the subversion tree /applications

Re: [Amforth] Problems with a Duemilanove

2012-01-15 Thread Marcin Cieslak
>> Torsten Sadowski wrote: > Hello Marcin, > > This is what I get from avra: > > duemilanove.hex: > [exec] AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May > 2010) > [exec] Copyright (C) 1998-2010. Check out README file for more info > [exec] > [exec]AVRA i

[Amforth] measuring time

2012-01-15 Thread Robert Epprecht
Does amforth set up a timer to measure time or do I have to do that by hand? I need a word similar to arduino micros() to keep track of time. Has somebody already written that? btw: What hw initialization (like timers, setting up i/o pins and the like) does amforth do, if any? Robert -

Re: [Amforth] uploading files on arduino UNO

2012-01-15 Thread Matthias Trute
Robert, >>> As for the amforth-upload.py script, I assume that reading characters >>> until the ok-prompt is seen *before* sending bytes would help as well. >> >> I just added a code line that *could* help. It simply sends an empty >> line to the conroller and waits for the ok and the prompt befor