Oct 22, 2014 #21 M milan.rajik Banned Joined Apr 1, 2013 Messages 2,524 Helped 540 Reputation 1,078 Reaction score 524 Trophy points 1,393 Activity points 0 If your VSSA is 0V and VDDA is 3.3V and ADC input is 3.3V then your 16 bit raw adc value will be 65535 (0 to 65535). Use unsigned int 16, float or double type variable to read in the raw adc value. Code C - [expand]1 ADC_Ans * 3.3 / 65535 //If ADC_Ans = 65535 (3.3V) then 65535 * 3.3 / 65535 = 3.3V
If your VSSA is 0V and VDDA is 3.3V and ADC input is 3.3V then your 16 bit raw adc value will be 65535 (0 to 65535). Use unsigned int 16, float or double type variable to read in the raw adc value. Code C - [expand]1 ADC_Ans * 3.3 / 65535 //If ADC_Ans = 65535 (3.3V) then 65535 * 3.3 / 65535 = 3.3V
Oct 22, 2014 #22 M Max.Otto11 Newbie level 6 Joined Oct 13, 2014 Messages 13 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 180 I got the answer. So it's Solved - - - Updated - - - I get the Answer. So problemn Solved..