i am using a Pic to read the voltage drop accros a resistor among other things and i want to turn that reading into a voltage is the following correct??
my ADC is 10 bit my ref voltage is say 5v (i will use actual value when i DMM the voltage)
so 5/1024*ADC reading will give me the mV??
i am using c18 so for example if i get a ADC reading of 896 5/1024*896=4.375 but how do i do it in C? or is the floating point value ok?
thank you LG
BTW its for current monitoring on the robot and various voltage readings for displaying on lcd
my ADC is 10 bit my ref voltage is say 5v (i will use actual value when i DMM the voltage)
so 5/1024*ADC reading will give me the mV??
i am using c18 so for example if i get a ADC reading of 896 5/1024*896=4.375 but how do i do it in C? or is the floating point value ok?
thank you LG
BTW its for current monitoring on the robot and various voltage readings for displaying on lcd