I have an ATmega32 that i've set up to sample analog signals at 1 ms intervals. To get exact timings, i use the Timer1 compare match B as the trigger source for the ADC. The ADC complete interrupt then does some follow-on calculations.
This all works very well and i do get my samples. But, from time to time i'd like to stop sampling, so i thought it'd be enough to simply stop Timer 1 via setting the prescaler bits all to zero. What happens is that the ADC keeps happily sampling and the ADC complete interrupts continue to occur, as if stopping timer 1 would have no effect at all.
Now, do i misinterpret the manual? My understanding is that due to a stopped timer, no compare match event will occur, therefore no triggering of the ADC could happen.
Where am i wrong here? Of course i could change the ADC settings to have it stop, but i'd like to simply stop timer 1 for that purpose.