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
---
"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
---
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 "
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
>> 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
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
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
>> 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
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
-
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
10 matches
Mail list logo