With Vref- of 2.61 the total A/D range is 2.39V. (5-2.61)
Divide that by 1024 = 0.0023362 volts per step.
Drop the leading 0's and decimal point, to make it 2336
Then ...Final resolution is .035 A per A/D step.Code:Amps = 2336 * ADvalue Amps = DIV32 660 ; sensitivity * 10 LCDOUT "A=",DEC AMPS/100,".",DEC2 AMPS //100
And you can only read positive currents.
hth,




Bookmarks