PDA

View Full Version : ADC Calculator



mpgmike
- 26th November 2017, 21:06
The Mr.E Calc has an ADC Calculator function, but it calculates clock times for reading the ADC port. I needed the ability to enter voltages and get a 12-bit ADC value (expected) for a long list of voltages. Again, I turned to my new-found skill of PC programming and created an ADC Calculator App. From the start page, you set the VREF+ voltage (defaults to 5.00) then enter the voltage. It spits out 8-, 10-, and 12-Bit ADC values. Click on "Calc Volts" and it allows you to work the program in reverse. Choose 8-, 10-, or 12-Bit from the Radio Buttons and enter an ADC value. The Volts give you the expected voltage for that ADC value.

8511

mpgmike
- 27th November 2017, 01:41
8513

As I said, this whole PC programming thing is new to me. I spent some time with the ADC Calculator and realized there was a bit of polishing that needed to be done. Attached is a bit refined version.