Read voltage of AIN input

Hi,

Is it possible to have the real voltage value of a AIN input ? If yes with which precision ? (floating) ?

Because I’ve got to make a calculation out of it and I’d like to have the maximum accuracy …

Thanks

Hi,

see the MIOS function reference: http://www.ucapps.de/mios_fun.html , especially http://www.ucapps.de/mios_fun.html#MIOS_AIN_PinGet - I think it reads AIN in 10bit resolution.

Bye, Moebius

I think it reads AIN in 10bit resolution.

Yes 10Bit is the max. you can get with an 18F452 PIC

Thank you so much both of you : you’re right this works perfectly well  :smiley:

It will greatly simplify the integration of my distance sensor (works like some kind of D-Beam controler)

Bye and thancks again  8)