This documentation is out of date.

The new version of the documentation is here: https://cannylogic.com/docs

CANNY 5.2 duo, ADC Driver

From CANNY Wiki
Jump to: navigation, search

General Description

CANNY 5.2 duo supports Analog-to-Digital Converter (ADC) mode for one of three IO channels - IO Channel #10. This ADC converter have about 33k input impedance and can be used to measurement the input voltage from 0 to 15 V with 12-bit resolution and 1 millisecond sample rate.

To activate the ADC, you need to write any non-zero to register «ADC Enable Register, IO Channel 10».

Drivers Registers

The following shows permissible values for control registers of ADC Driver

ADC driver configuration register allows to enable or disable driver:

Register Expected Values
ADC Enable Register, IO Channel 10
≥ 1 = enable ADC Driver;
0 = disable ADC Driver.


ADC driver input registers allows access to the measured value:

Register Returning Values
ADC Value Register, IO Channel 10
0...4095 = measured ADC value for IO Channel 10


Examples

Example of input voltage measurement diagram.

14 12 2 1.png


Смотри также

CANNY 5.2 duo