adc9 2.0.0.0
|
ADC 9 Click is 8th channel analog to digital converter expansion board, for projects where you have demand for multi channel ADC conversion such as microcontrollers with small number or none analog inputs. This Click board is based on MCP3564 a 24-bit Delta-Sigma Analog-to-Digital Converter with programmable data rate of up to 153.6 ksps from Microchip.
We provide a library for the Adc9 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Adc9 Click driver.
- Initialization function.void adc9_cfg_setup ( adc9_cfg_t *cfg );
ADC9_RETVAL adc9_init ( adc9_t *ctx, adc9_cfg_t *cfg );
- Function is used to read ADC value when the default fata format is applied.uint8_t adc9_irq_pin_state ( adc9_t *ctx );
uint8_t adc9_read_def_adc ( adc9_t *ctx, adc9_rw_t *rw, int32_t *rd_data );
float adc9_volt_calc ( adc9_t *ctx, int32_t adc_val, uint16_t v_ref, uint8_t gain );
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 :
Initalizes SPI driver, resets and starts the device, and makes an initial log.
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.
Depending on the VOLT SEL jumper position on the click board the user needs to set VREF macro value (mV) in the code.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.