I'm not that familiar with Atmega168/328 so I need help... I've also read the
datasheet. It is education but still kinda confusing for beginners.
I've enabled hardware PWM generator using Timer1 on two pins to control
two servos. From what I've researched in the internet so far, Timer1 uses
Now, I've used the pulseIn command (Arduino) to capture an incoming RC
signal from a receiver but it's pretty much noisy. Probably because the resolution
of the timer of the pulseIn command is not high enough. That's why I want to
use the 16bit Timer1, which is pretty much occupied with PWM generation for the
Now the question. In the same microcontroller, I would like to know if it's
possible to use ICR1 to capture a signal to calculate the width of the pulse while
still being used for PWM generation? Thanks in advance.