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
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 driver input registers allows access to the measured value:
Register | Returning Values | ||||
---|---|---|---|---|---|
|
|
Examples
Example of input voltage measurement diagram.
Смотри также