Steve Underwood wrote:

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

Thanks Steve,
I wasn't too clear there ;) I am already using TimerA to supply the start of sequence pulse. ACLK is running at 40 kHz, so in UP mode, set-reset, I set on 9 and reset on 10 counts. so I think all I need to do is use the TimerA0_Vector for my ISR, which will get the interrupt on the leading edge of that pulse. I'm using an external reference which is already up.
I'll try it out.
 Garst



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users



Reply via email to