Re: [Amforth] Rotery-encoder

2018-11-03 Thread Martin Bitter
Hi Jan,, have a look at https://neu.forth-ev.de/wiki/res/lib/exe/fetch.php/vd-archiv:4d2018-02.pdf There is a topic: Drehgeber i.e. rotary encoder. Regards Martin Am Samstag, 3. November 2018, 20:39:18 CET schrieb Jan Kromhout via Amforth-devel: > Hello, > > Has someone tried to get a rotar

[Amforth] Rotery-encoder

2018-11-03 Thread Jan Kromhout via Amforth-devel
Hello, Has someone tried to get a rotary-encoder/switch running under amforth with interupt0 ( conected on pin 2and 3) . Or add a swich, and let it reacted with this interrupt. Have tried with no succes. Thanks for any help. Cheers, Jan ___

Re: [Amforth] Question about Timer1 - is there a bug?

2018-11-03 Thread Jan Kromhout
Hi, Thanks all for the suggestions. After reload the timer after every interrupt it is working great. My leaving question is the word “f_cpu” in the code of Timer1.frt. When I execute it I get two values on the stack. What is the meaning of this two values? Cheers, Jan Op 3 nov. 2018,

Re: [Amforth] Question about Timer1 - is there a bug?

2018-11-03 Thread Richard Burden
Hi Jan I suggest that the ISR has to toggle the pin and re-load the timer1 counter. >From memory timer1 counts upwards and once it overflows it just keeps counting up from zero unless you re-load it. Regards Richard On 11/3/18, Jan Kromhout wrote: > Hi, > > I have taken the TIMER_1 example, an

[Amforth] Question about Timer

2018-11-03 Thread Jan Kromhout via Amforth-devel
I agree with that. I came to the same conclusion. Checked yesterday also the code and found no action on this address. Tristian gave me a hint, and I will try it. Cheers, Jan ___ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@list

Re: [Amforth] Question about Timer1 - is there a bug?

2018-11-03 Thread Matthias Trute
> I think some where in amForth TCNT1 is overwritten! I can assure you, that there is no code in plain amforth that overwrites your settings. It's either your code or the hardware itself. Matthias ___ Amforth-devel mailing list for http://amforth.s