Hello,

I want to read 4 AC voltage at 50 Hz coming from a Current Sensor

using the BX-24.

The BX-24 (or other type of processor) read only DC voltage but the

idea is to use BX-24 to calculate the RMS value of the signal by

finding the max value by successive GetADC commands.

There are 2 versions of GetADC:

-The integer version returns the raw 10-bit integer voltage

-The float version returns the nondimensional voltage in range 0.0 to

1.0.

My question is to know what is the fastest way to get A/D Value, the

Float Version or the Inter Version.

Speed is important in this application even if 50 Hz is not high

frequency.

Thanks for your help and reply.

Best Regards.

Patrick.

# GetADC Procedure Float Version and Function (Integer Version) BX-24

Started by ●January 30, 2009

Posted by ●January 31, 2009

> My question is to know what is the fastest way to get
A/D Value, the

Float version or the [Integer] version.

Integer is faster - and different. The float value is derived by

dividing an integer ADC read by _1023.0_, not 1024.0, so that the

float fullscale is exactly 1.0. This is presumably done so that a

voltage dividing pot will yield 0.0 and 1.0 when turned to the

extremes, but it is not technically as accurate as the integer ADC

read value, which can never reach 1024.

Tom

Float version or the [Integer] version.

Integer is faster - and different. The float value is derived by

dividing an integer ADC read by _1023.0_, not 1024.0, so that the

float fullscale is exactly 1.0. This is presumably done so that a

voltage dividing pot will yield 0.0 and 1.0 when turned to the

extremes, but it is not technically as accurate as the integer ADC

read value, which can never reach 1024.

Tom