profet23a
2.0.0.0
|
PROFET 2 Click is a compact add-on board that contains a smart high-side power switch. This board features the BTS70802EPAXUMA1, a dual-channel, high-side power switch with embedded protection and diagnosis feature from Infineon Technologies.
We provide a library for the PROFET23A 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 PROFET23A Click driver.
profet23a_cfg_setup
Config Object Initialization function. profet23a_init
Initialization function. profet23a_default_cfg
Click Default Configuration function. profet23a_set_mode
Set mode device mode for specific channel channel. profet23a_read_an_pin_voltage
Read AN pin voltage level function. profet23a_set_den
Set diagnostic enable pin state. This example showcases the ability of the PROFET 2 3A Click board.
It configures Host MCU for communication and then enables and disables output channel. Besides that, it reads the voltage of IS pin and calculates current on output for the channel 0.
The demo application is composed of two sections :
Initialization of the communication modules(ADC and UART)
and additional pins for controlling the device.
On every iteration of the task device switches between
DIAGNOSTIC and OFF mode while it reads the voltage of IS pin and with that calculates current on output for channel 0.
Formula for calculating current on load:
I_load = voltage(IS) x kILIS(1800) / rsens(1.2 kΩ)
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.