This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'm using the MSP430FR5725. I want to read and store the ADC results of pins A15, A14, and A1. To do this, I am doing a sequence of channels operation. I am accomplishing this in an interrupt handler by resetting ADC10SC. This decrements the channel that is currently being read in. Once I get to A0, I disable the interrupt and go about my main code. I have this running continuously while in a low power state until a certain action stops the interrupt and wakes my system. This works fine. However, when I want to enable the ADC in subsequent reads, the INCH value decrements, so now it doesn't start at A15, but rather A14 and so on. I think it is setting ADC10SC after a read has completed, then proceeding with normal operation of the main software.
I can post my code in a little bit. Currently, I am unable to. Any help/idea is appreciated. Thank you.
Are you sure you use ADC10CONSEQ correctly?
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
When you don't need A13..A2 and A0, I think you should go for single channel single conversion mode. When a conversion is done, change the channel number and start the next conversion.In sequence mode, yo do not only 13 superfluous conversions, you also affect the digital operation on these 13 inputs, as the port logic will (at least on some MSPs) deactivate the digital port function during the sampling process, causing glitches if you need these pins for different things.
Time to say goodbye - I don't have the time anymore to read and answer forum posts. See my bio for details.Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.I'm sorry that I can no longer provide help in the forum or by private conversation.
In reply to Jens-Michael Gross:
When I called the ADC interrupt, I did so in a function:
//enable, start conversion
This was the function I was using that set my INCHx to get off track. I then changed it to:
I have yet to get any problems after this change.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.