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.
Part Number: MSP430FR6820
we use the ADC module in MSP430FR6820 for two different measurements, having two configurations and 'deconfiguration' (common for both configurations).
We are doing the measurements in a cycle: first configuration, getting sample, deconfiguring ADC; second configuration, getting sample, deconfiguring ADC, and so on. We have a problem that the ADC doesn´t end the conversion, reaching "frozen ADC module" state (attached first picture below). Registers after deconfiguration are attached below in the second picture.
If I test only first configuration, (never-ending cycle: first configuration, getting sample, deconfig), or only second configuration (never-ending cycle: first configuration, getting sample, deconfig), everything works fine.
Can you help with some advice?
In which case can ADC stop working?
I think you meet the problem that ADC will do conversion for another one time. It because when you read the ADCMEMX, the next conversion is started. It will finish the conversion after all.
Add ADCCTL0 &= ~ ADCENC after the last conversion. If if doesn't solve your question. Please post your code.
If the post helped solve your issue, please click on the 'This resolved my issue' button.
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.
In reply to Eason Zhou:
thanks for your feedback. So far after adding that part it looks good, will check again after a few days.
Also, we need to check the minimal battery voltage (higher than 1,8V). In our aplication we use 868MHz transciever (Tx current 30mA, voltage goes down gradually) and we need to be able to turn it off in time. Do we have any example of measurement of the baterry(Vcc) with comparator / msp430fr6820?
In reply to Bart:
It will not break the converter. See from the spec, if analog input voltage range below AVCC, it will be OK.
Here is the reference code you can find:
Regarding the last question about battery voltage measurement, do you happen to have some feedback on that (comparator based measurement with msp)?
Sorry to make you confused and reply late. The code I attached is for comparator. It can be used in your situation.
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.