vcpmonitor2 2.0.0.0
|
VCP Monitor 2 Click is a three-channel, high-side current and bus voltage monitor with alert indication function ensuring the intended application works within desired operating conditions. Featured chip INA3221-Q1, by Texas Instruments, monitors both shunt voltage drops and bus supply voltages, in addition to having programmable conversion times and averaging modes for these signals.
We provide a library for the Vcpmonitor2 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 Vcpmonitor2 Click driver.
- Initialization function.void vcpmonitor2_cfg_setup ( vcpmonitor2_cfg_t *cfg );
VCPMONITOR2_RETVAL vcpmonitor2_init ( vcpmonitor2_t *ctx, vcpmonitor2_cfg_t *cfg );
- Get DIE ID.uint16_t vcpmonitor2_get_manifacture_id ( vcpmonitor2_t *ctx );
uint16_t vcpmonitor2_get_die_id ( vcpmonitor2_t *ctx );
float vcpmonitor2_get_bus_voltage ( vcpmonitor2_t *ctx, uint8_t channel );
VCP Monitor 2 Click is a three-channel, high-side current and bus voltage monitor with alert indication function ensuring the intended application works within desired operating conditions.
The demo application is composed of two sections :
Initiaizes the driver, and checks the communication by reading the manufacture device ID. After that, performs the device default configuration.
Displays the voltage, current, and power detected from channel 1 on the USB UART every 2 seconds. It also displays the status of alert indicators.
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.