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 efficient. Also if
you are not too fussed on your multiplexing frequency then a different
choice of timer and prescaler might make it easier. Your C code
mentioned 200Hz I think. Have a look at timer0 (8 bit) with a /256
prescaler and an overflow isr.

Best wishes,
Tristan

On 02Nov18 21:33, Jan Kromhout wrote:
> Thanks Tristian,
> 
> Yes, I’m looking for something i can use for multplexing 7-segment displays.
> But still strange I can’t use this timer freely.
> How could we figger out where this oceurs?
> 
> But still thanks again for your helpfull remarks.
> 
> Cheers,
> 
> Jan
> 
> 
> Verstuurd vanaf mijn iPad
> _______________________________________________
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to