I am having a bit of difficulty trying to decipher the data sheet on this one.
I have a Tiny 25 set up with phase and frequency correct PWM on PB0 and this runs fine at around 245Hz. I have set up the ADC to free run and that also runs ok.
So what's the problem? Well I'm trying to trigger the ADC from the PWM timer / counter and according to the data sheet, by setting ADTS1 and ADTS0 (ADCSRB register)the trigger source will then be Timer / Counter Compare match A. However, when I try this the ADC stops running.
Am I missing something here or can this Timer Counter not be used to trigger the ADC if it is already set up for PFC PWM?