Jan,
If you want to see different frequencies using your code I think you
will need to reset TCNT1 to the value you want in your overflow isr.
: timer1.isr
\ toggle output PD7
togglePD7
\ reset TCNT1
your-value TCNT1 !
;
However, using CTC mode would be more accurate and
> Is it correct that I can use this timer with his interrupts freely
> without any harm/restrictions for Amforth?
Yes, that's correct.
Matthias
___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
Hi,
I have take a look into the excellent work of Erich Walde “Clock Works”.
When I walk trough the code I see that Timer1 is used freely.
Is it correct that I can use this timer with his interrupts freely without any
harm/restrictions for Amforth?
Cheers,
Jan