We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2020-11-16
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Brushed
Downloaded: 2161 times
Not followed.
License: MIT license
Driver 2 Click is a compact add-on board that contains a gate driver with a level-shift technology with an additional Shutdown function.
Do you want to subscribe in order to receive notifications regarding "Driver 2 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Driver 2 click" changes.
Do you want to report abuse regarding "Driver 2 click".
Library Description
The library contains a basic functions for using Driver 2 click.
Key functions:
void driver2_set_sd_pin ( uint8_t state )
- Set SD pinvoid driver2_set_pwm_pin ( uint8_t state )
- Set PWM pinuint8_t driver2_get_fb_pin ( void )
- Get FB pinExamples description
The application is composed of three sections :
void application_task ( )
{
for ( duty_cycle = 0; duty_cycle < pwm_period; duty_cycle += 25 )
{
driver2_pwm_set_duty( duty_cycle );
Delay_ms( 100 );
}
for ( duty_cycle = pwm_period; duty_cycle <= 0; duty_cycle -= 25 )
{
driver2_pwm_set_duty( duty_cycle );
Delay_ms( 100 );
}
}
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.