DHWCtrl.APortMeasure

The selected ADC Clock is MCU Clock / 128 (i.e. 13.56 Mhz / 128)

After 13 ADC Clock Ticks the first sample will measured. 13 ADC Clock Ticks are needed for one sample:

(1 / 13.56 Mhz) * 128 * 13 = 0.123 ms

So we have each 0.123ms one sample. As reference voltage the AVR internal 2.56V is used, the results are 10 bit values, so to get the voltage in Volt use the following formula:

Vin = float(result) / 1024 * 2.56V = float(result) / 400V

Properties

Parameters (request frame)

Name Type/Size Description
Port Integer (8 bits) Measured port (same variable as in DHWCtrl.PortGet )
Count Integer (8 bits) Count of taken measurements.

Returned values (response frame)

Name Type/Size Description
Voltages Array (until end of frame) -
Voltage Integer (16 bits) Voltage measured at the analog port.