..long time back.. maybe somebody finds it useful.. provided as-is..
Time measurement (with float results) 48bit timer (timer + epoch)
for 1284p:
\ \\\
\ 2007-12-26 EW w4_clock_tick.fs
\ 2010-09-02 PITO - FLOAT TIME MEASUREMENT ATMEGA 1284P
\
Working with the ATMega328, I found that I had to set the prescaler
(TCCR0B) after I assigned the interrupt vector. So, you might try
: tim0start ( -- ) tim0ini +tim0int 5 TCCR0B c! ; (remove the prescaler
store from tim0ini )
It worked for me.
BTW thanks to the list for help with the lfuse cl
Matthias Trute writes:
My chip is labelled ATMEGA-328-PU
I have included atmega328p.frt
Hope that's ok?
> Are the numbers behind the T-labels correct (memory mapped addresses,
> somewhere around $40ff) for the Atmega328p?
hex TCCR0A .
44
> Otherwise it looks like you're programming
> the wrong
Matthias Trute writes:
>> ImportError: No module named fdpexpect
> ii python-pexpect2.3-1ubuntu
Yes, that was the problem here.
Uploading a very short first testfile to the uno with amforth-shell.py went
fine now :)
Thanks a lot,
Robert
-
Hi,
> But here we go:
> Whats wrong with the following simple test code:
looks innocent (haven't tried it however)
> The result on my arduino uno is quite inconsistent, but mostly I see:
>
> 3 TCCR0B c!
> does not hang the system, but does not tick either.
>
> 4 TCCR0B c!
> hangs system, had t
Robert,
> import fdpexpect
> ImportError: No module named fdpexpect
>
> Is this a debian python installation problem?
Most probably. My ubuntu 11.10 has the
package
> dpkg -l | grep python | grep exp
ii python-pexpect2.3-1ubuntu
installed automatically, IIR