Hi Garst,
Garst R. Reese wrote:
I'm using ACLOCK to trigger a sequence of conversions every 250us.
This gives me an ADC12IFG when the sequence is complete. At present, I
turn off ENC and ADC12 before processing the data, and then turn on
ADC12 and ENC. There is no TimerA ISR active.
But, I'm wondering if I could use one to turn on the ADC12 and ENC.
This would keep the ADC12 off until it was needed and save a bit of
power.
Thoughts?
I have done that. It works OK. If you are using the voltage reference,
you have to leave that on all the time - it has a fairly long
stabilisation time. The SD16 converter has a much faster reference,
which might be usable in short pulses. Its a pity the ADC12 isn't the
same. That said, keeping the ADC12 off for half the time makes a
noticable difference to the overall consumption. The complexity of
achieving this is low. The timer interrupt routine you need is trivial.
It just ties up an extra timer channel to get the interrupt at the right
moment.
Regards,
Steve