Diecimila (ATmega168); IDE 1.6.1
I want to do a project wherein I mark the zero-crossing of 2 sine wave inputs (on 2 analog pins). When each cross zero an interrupt is triggered.
The first signal's interrupt starts a timer. The second signal's interrupt stops the timer and reads the value. From the timer value I can calculate phase between the 2 signals. I can then generate a pwm output relative to the phase.
The challenge will be with timing. The interrupts will be happening every 40 microseconds. What is the Arduino's (the ATmega168's?) specification regarding how quickly it can process interrupts? What should I look for in the Atmel datasheet to know this?
This article got me thinking about this (it's a PDF):
I'd like any thoughts you have about pitfalls, ideas, pitfalls (c; ...
Never dealt with Arduino's timers or interrupts.
PS, I note that some posts' subjects have "Solved" or such added (likely in other forums, like the Programming Questions forum). Does the OP (me) do this when I'm successful or is this done by the moderator?