Feel sure this must be possible, but haven't yet found how route the signal.
Here is what I have, a PWM is running on Timer B0 - it has a duty period of about 1200 cycles of SMCLK, that is the clock I'm using for Timer B0.
Now I want a couple of ADC measurements to be taken, synchronous to the PMW period. I can clock ADC12 to SMCLK - and thats good. But really what I want is Sequence of Channels conversion is started with same timing as the PWM.
So either that the interrupt on Timer B, starts the ADC12 sequence. Or that the interrupt routine that handles Timer B, can take an action that starts the ADC12 sequence.
I can see I could toggle ADC12ENC to stop the ADC, and only having it run with the PWM Period - but that seems a cludge - but can't see any other trigger I can control.
So what are peoples thoughts? Am I missing something, Or do i have to set ADC12ENC=1 on entering the PWM interrupt handler, and then later on in the PWM interrupt handler set ADC12ENC=0?