I am using counter 4 but it only seems to count down. I have the Wave generation mode set to 0 with WGM4 0 to 3 set to zero. I have read the atmel documentation multiple times but there only seems brief mention of "direction" for the control unit.
The Arduino core may have initialized timers for "Phase Correct" PWM. If you're going to use a timer for purposes other than analogWrite(), make sure you initialize ALL of the control bits.
Here is the code, I suspect I am doing something daft, it's definitely counting down, it's not the end of the world just really annoying not knowing whats wrong. Ignore the ICR as I was going on the use that further in the project.
This is a classic case illustrating the Sampling Theorem, and the expected aliasing that results from sampling at a frequency less than the highest frequency in the input stream.
Like wagon wheels that appear to be rotating backwards in a cowboy Western movie.