2013-11-18 09:06 PM
Hello ,
I am working on application in which battery voltage need to be read at regular interval say 1 ms .I am newbie to this.(1) Which one is more preferred hereADC with DMA
orADC w\o DMA
?(2) How many bits accuracy would be enough ?6-bit, 8 bit or 12 bit
?(3) Do I need to use timer ?Thanks in Advance.. #adc #discovery #board #adc-and-dma2013-11-18 11:57 PM
I am working on application in which battery voltage need to be read at regular interval say 1 ms .I am newbie to this.
How fast do you expect the battery voltage to change ? Once a minute will probably suffice, too. DMA and/or timer would probably be an overkill then.(2) How many bits accuracy would be enough ?
6-bit, 8 bit or 12 bit
? What accuracy do you need, i.e. what decisions are based upon this ? If you just check for a discharge threshold, 6 bit are probably sufficient. But since you have 12 bit, you are not in a hurry, and have no advantage in using byte-sized variables, I would go with 12 bit.2013-11-19 12:39 AM
2013-11-19 01:38 AM
I am thinking instead of continuous mode in ADC ...if I go with Timer for battery voltage monitoring would that save battery power at all ?
To check a battery voltage, I would use a software triggered single-shot mode. And one measurement about every minute is sufficient. Battery voltages hardly change in a few milliseconds (except you short them...), so you gain no information. To save power, you should rather consider how to put the device into sleep modes. Keeping the MCU in run mode permanently will quickly drain you batteries.
2013-11-19 02:09 AM
Thank you so much fm.....:)