adc 2.0.0.0
|
ADC Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
ADC Click example.
This example demonstrates the use of ADC Click board. The all channels can be configured as single-ended or pseudo-differential pair.
The demo application is composed of two sections :
Initializes SPI driver, performs the reference voltage selection and initializes UART console for results logging.
Reads voltage level of channels 0 and 1 in the both configurations, single-ended and pseudo-differential pair, every 1 second. All channels results will be calculated to millivolts [mV].
note: In single-ended mode the all channels must be in the range from Vss (GND) to Vref (3V3 by default). In pseudo-differential mode the IN- channel must be in the range from (Vss - 100mV) to (Vss + 100mV). The IN+ channel must be in the range from IN- to (Vref + IN-). If any of conditions are not fullfilled, the device will return 0 or Vref voltage level, and measurements are not valid.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |