Adc9 Click example.
Description
This click is 8th channel analog to digital converter expansion board, usefull for projects where we have demand for multi channel ADC conversion such as microcontrollers with small number or none analog inputs. It offers integrated features, such as internal oscillator, temperature sensor and burnout sensor detection, in order to reduce system component count and total solution cost.
The demo application is composed of two sections :
Application Init
Initalizes SPI driver, resets and starts the device, and makes an initial log.
Application Task
This is an example that shows the capabilities of the ADC 9 click by calculating voltage level based on ADC from channels 0(positive) and 1(negative), and logs the result.
Additional Function
- void measurement_init ( adc9_t *ctx, adc9_rw_t *rw ) - Measurement Initialization function is used to easily apply desired settings, in this case device is set to read ADC value from channels 0 (positive) and 1 (negative) with default data format, gain, boost and internal clock.
NOTE
Depending on the VOLT SEL jumper position on the click board the user needs to set VREF macro value (mV) in the code.
- Author
- MikroE Team