04-16-2020, 08:38 PM
(04-16-2020, 05:05 PM)curlymo Wrote: Nice! Can we discuss this in a PR on github?
Hi again,
i am not at github. PM wanted?
The problem is, if you have two ISR running which are blocking with cli then you will risk missing edges in this case.
Two or four ... edges not seen is no problem, one or three ... results in inverted signal if you only are using toggle.
It's also critical to change PI_IN inside PCINT0_ISR and outside...
Summary i modified PCINT0_ISR as written and have only wdt_reset() and ten_us_counter++ in TIMER1_ISR.
Works perfect, fits in attiny25.