Other Parts Discussed in Thread: MSP430F2274
Hello,
I am looking for a safe way to stop an ADC measurement before it has completed on the MSP430F2274. Reading the user guide, I came across this information in the ADC section:
22.2.6.6 Stopping Conversions
Stopping ADC10 activity depends on the mode of operation. The recommended ways to stop an active conversion or conversion sequence are:
- Resetting ENC in single-channel single-conversion mode stops a conversion immediately and the results are unpredictable. For correct results, poll the ADC10BUSY bit until reset before clearing ENC.
- Resetting ENC during repeat-single-channel operation stops the converter at the end of the current conversion.
- Resetting ENC during a sequence or repeat sequence mode stops the converter at the end of the sequence.
- Any conversion mode may be stopped immediately by setting the CONSEQx = 0 and resetting the ENC bit. Conversion data is unreliable.
In the paragraph above, is there a meaningful difference between the phrase "results are unpredictable" and "Conversion data is unreliable"? When I read "Conversion data is unreliable", I know that means not to trust the result in ADC10MEM, which I'm fine with. But the phrase "results are unpredictable" is a bit more vague...is that suggesting the program counter could be corrupted? or some other undesirable issue could occur? Or does it mean the same thing as "Conversion data is unreliable"?
Also, if I interrupt the ADC by resetting ENC in the middle of a measurement, do I need to do anything special to any ADC registers before I start my next ADC measurement? For example, a dummy read to the ADC10MEM register to clear it of possibly corrupted data?
Thanks