This documentation is out of date.

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

CANNY 5.3 pico, ADC Driver

From CANNY Wiki
Revision as of 14:05, 30 August 2019 by Support (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to: navigation, search

General Description

CANNY 5.3 pico supports Analog-to-Digital Converter (ADC) mode for one special pin (contact #6) of the connector X1. This ADC converter can be used to measurement the input voltage from 0 to 5V with 12-bit resolution and 1 millisecond sample rate

ADC driver is always active.

Drivers Registers

The following shows permissible values for control registers of ADC Driver

ADC driver input registers allows access to the measured value:

Register Returning Values
ADC Channel Input Value Register
0...4095 = measured ADC value


Examples

Example of input voltage measurement diagram.

16 10 2 1.PNG

Note: The CANNY 5.3 pico analog-to-digital converter is linear.
Note: The voltage values at the ADC pin are measured by the controllers at regular intervals. In the interval between measurements, the ADC value register stores the previous measured value.


Смотри также

CANNY 5.3 pico