CANNY 5.3 pico, ADC Driver

From CANNY Wiki
Jump to: navigation, search

General Description[edit]

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[edit]

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


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.

Смотри также[edit]

CANNY 5.3 pico