Re: [Amforth] Overwritten timer1

2018-11-02 Thread Tristan Williams
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

Re: [Amforth] Question about Timer-1

2018-11-02 Thread Matthias Trute
> 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

[Amforth] Question about Timer-1

2018-11-02 Thread Jan Kromhout via Amforth-devel
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