CANNY 5.3 MD1A, ADC Driver
General Description
Two special through contacts of the CANNY 5.3 MD1A controller are designed for use as analog-to-digital converters with a resolution of 12 bits, which can operate in two modes: in voltage measurement mode in the range of 0…5V and in voltage measurement mode in the range of 0…16V. Control of operating modes is performed for each ADC separately and is carried out using the corresponding registers. By default, the voltage measurement mode is active from 0 to 5V.
If necessary, ADC channels can be output to certain pins of the 3-pin connector by installing special jumpers on the pads provided for this, located on the reverse side of the controller board.
The controller’s ADCs are constantly active and do not require additional activation. If necessary, you only need to set their operating mode.
Registers
The ADC driver setup register is used to set its operating modes. Below is a description of the expected values of the ADC driver setup registers.
Register | Expected Values |
---|---|
ADCx Mode Setup Register | ≥ 1 = activate on the voltage measurement mode in the range 0..16V of the corresponding ADC channel; 0 = deactivate the voltage measurement mode in the range 0..16V of the corresponding ADC channel, returning to the default voltage measurement mode, i.e. in the range 0..5V. |
The ADC driver registers contain information about the state of the channel. Below is a description of the return values.
Register | Return Values |
---|---|
ADCx Value Register | 0…4095 = measured ADC value of the corresponding ADC channel, taking into account the mode used. |
Examples
Note: The analog-to-digital converter of the CANNY 5.3 MD1A 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.