biza 0 Posted March 20, 2014 Share Posted March 20, 2014 How can I get the sampling frequency of MSP430g2553 Quote Link to post Share on other sites
yosh 121 Posted March 20, 2014 Share Posted March 20, 2014 10-Bit 200-ksps Analog-to-Digital (A/D) Converter With Internal Reference, Sample-and-Hold, and Autoscan Source: http://www.ti.com/product/msp430g2553 Quote Link to post Share on other sites
enl 227 Posted March 20, 2014 Share Posted March 20, 2014 Could you be a bit more specific? Do you mean the maximum A/D sampling freq as given by @@yosh? Or do you mean something else, like the actual sampling frequency in an application? Quote Link to post Share on other sites
abecedarian 330 Posted March 20, 2014 Share Posted March 20, 2014 Sampling more than one source will take longer so @@yosh comment needs to be considered. I.e. if the ADC can do 200 Ksps, sampling two sources could halve that sample rate. Quote Link to post Share on other sites
biza 0 Posted March 22, 2014 Author Share Posted March 22, 2014 I'm collecting samples of temperature, just need to know the sampling frequency of the microcontroller, so being able to obtain samples with with a low frequency Quote Link to post Share on other sites
enl 227 Posted March 22, 2014 Share Posted March 22, 2014 As low as you want. General idea is: set up timer to provide periodic interrupt. If not low enough freq, count the interrupts and do what is needed every n interrupts. Put processor to sleep. On interrupt, or after n interrupts, start ADC conversion. Set for interrupt on completion. Let processor go back to sleep. When conversion is done, interrupt wakes it back up so you can read value and do what you will with it. I have a device that has been going for over a year on a set of AA batteries using a 32KHz crystal for moderately precise timing, waking up every 8sec (max that the process will allow... could go longer) to do its thing. Most of the time, it is just counting and going back to sleep, for a period of roughly 5 min, but the period does vary, so the count is varied as needed. If major processing is needed from the ADC value, leave that in your main loop, and force full wake up when ADC is complete, so that the processing can be done. Then go back to sleep. abecedarian 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.