Hi, I think there is a bug in Arduino UNO and ATmega328P when using Timers/Counters 0 and 1 in CTC mode with external input on T0/T1: it counts from 0 to 1 and then it stops working.
I tested the code on real hardware and it works fine.
Furthermore, all other modes (Normal and PWM) of the simulator are working properly.
I tested the code on real hardware and it works fine.
Furthermore, all other modes (Normal and PWM) of the simulator are working properly.
Last edited by arcachofo on Wed Mar 23, 2022 10:13 am; edited 1 time in total (Reason for editing : Mark as solved (green color).)