I am writing a simple beep function.
Yes, I know I can do this using the Arduino tone() function, but I'm trying to implement
this beep function using low-level timer control.
In the following code, timer 2 generates a periodic interrupt which calculates the amplitude of the beep sine wave and timer 1 generates the beep PWM waveform.
As written, it does not work, so I am asking for help. What am I missing?
Thanks John, I got it working. And you are right, the code I posted worked fine. The problem I was having was in a different area. Process of elimination. Marking this issue as closed.