Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 236059

Forum Post: RE: MSP430FR6043: ADC12_B and REF_A configuration

$
0
0
> Ref_A_enableReferenceVoltage(REF_A_BASE); > if(Ref_A_isRefGenActive(REF_A_BASE)) This appears to expect the REF to be ready immediately, and I expect that won't be true. I think the function you want is "Ref_A_isVariableReferenceVoltageOutputReady(REF_A_BASE) // REFGENRDY?", and it should probably be in a loop similar to the ones in the "init" functions. Other than that, I don't see anything obviously wrong. ----------- Unsolicited: You may want to look at User Guide (SLAU367P) Sec 34.2.4 ("Auto Power Down"), since the ADC+REF can do much of this work for you. If the REF is used by one of the VRSEL-s, the reference is switched on automatically, then switched off after the conversion(s); for continuous sampling (ADC12_B_MULTIPLESAMPLESENABLE) it stays on through the burst. The "cost" is that the first conversion has to wait for the REF to start up (40usec typical), but at 1sps I don't think you'll notice that.

Viewing all articles
Browse latest Browse all 236059

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>