pac1720
2.0.0.0
|
PAC1720 Click is a compact add-on board that contains an energy monitoring solution. This board features the PAC1720, an I2C configurable dual high-side bidirectional current sensing monitor with precision voltage measurement capabilities from Microchip Technology. The PAC1720 measures the voltage developed across external sense resistors to represent the high-side current of a battery or voltage regulator.
We provide a library for the PAC1720 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for PAC1720 Click driver.
pac1720_cfg_setup
Config Object Initialization function. pac1720_init
Initialization function. pac1720_default_cfg
Click Default Configuration function. pac1720_set_vsource_config
This function sets the Voltage Source configuration (sample time and average samples) for the selected channel. pac1720_set_vsense_config
This function sets the Voltage Sense configuration (sample time, average samples, and sampling range) for the selected channel. pac1720_get_measurements
This function reads voltage, current, and power from the selected channel. This example demonstrates the use of PAC1720 Click board by reading the voltage, current, and power from both available channels.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration.
Reads the voltage, current, and power from both channels and displays the results on the USB UART approximately once per second.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
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. UART terminal is available in all MikroElektronika compilers.