Here's a great tutorial on getting timers going.
Looks like the Arduino Micro does not have a timer2, so that code needs to be removed.
I modified the frequency scalar to x1 and chose 1599 as the OCR (output compare register).
According to the docs...
interrupt frequency (Hz) = (Arduino clock speed 16,000,000Hz) / (prescaler * (compare match register + 1))
= 16,000,000/(1*(1599+1))
= 10kHz
So, I have a 10kHz timer running. Easy as that!
The thinking here is that I have an incoming analog signal on one of the pins, and I go and read the ADC value at 10kHz which should be about right for sampling the analogue NBTV signal. I can increase/reduce the frequency of course as I see how that goes. Interesting that the sample code shows output from an oscilloscope with a square wave generated via timer interrupt. Impressive how EASY it all is!
Anyway, I have to solder a header onto this tiny thing, and then I can connect to the LineOut from the CD player.
I have to understand how the ADC works, too and at what rate that can work.
I'll do a separate thread on the ADC