CANNY 7.2 Duo, ADC Driver

General Description

CANNY 7.2 Duo supports Analog-to-Digital Converter (ADC) mode through one special contact on the board. The ADC pin can be connected to pin 1 of the X3 connector (channel 8) through a special pad.

This ADC converter has about 110k input impedance and can be used to measure an input voltage from 0 to 32V with 12-bit resolution and 1 millisecond sample rate.

ADC driver is always active.

It is possible to determine the Main Power Input voltage of the controller, for which a separate ADC is used. Information on the value of the ADC power supply of the controller is available in a special register.

Registers

The ADC driver registers contain information about the state of the channel. Below is a description of the return values.

ADC channel registers.
Register Return Values
ADC Channel Input Value Register 0…4095 = measured ADC value
ADC Main Power Input Voltage Value Register, mV 0…32760 = measured Main Power Input Voltage value in millivolts

Examples

Function diagram for obtaining the results of an analog-to-digital conversion.


Note: The analog-to-digital converter of the CANNY 7.2 Duo controller is linear.

Note: The voltage values at the ADC contact are measured by the controller at regular intervals. In the time period between measurements, the ADC value register retains the previously measured value.

SEE ALSO