Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: ADC10MEM reg giving zero value as adc output

$
0
0
Ah, I missed the VLOCLK setup. Keep in mind that VLOCLK can vary quite a bit (40% as I recall), but it doesn't change much short-term (minutes/hours). If it starts to cause you trouble, SMCLK (rather than ACLK) is also usually a good choice. For checking the timing: The simplest way is to toggle a GPIO pin in the ADC ISR, and watch/measure it on a scope or a logic analyzer. For checking the ADC data: There may be some debugger tricks to periodically fetch the sample value, but I don't know them. At the very least, you can set a breakpoint inside the ADC ISR, which would be less cumbersome than single-stepping. I usually use the UART to display ADC data. This wouldn't be trivial, but you should be able to "borrow" most of your code from one of the TI example programs. The Launchpad is limited to 9600bps, i.e. 960 bytes/sec. With an snprintf format like "%3x\r\n", that's 5 bytes per reading or 500 bytes/sec, which seems feasible. You'll probably want a serial Host program (e.g. PuTTY) that is capable of logging.

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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