TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139058 times)
  2. FAT32 Library (71588 times)
  3. Network Ethernet Library (56988 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29769 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 times)
Libstock prefers package manager

Package Manager

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]

< Back
mikroSDK Library

Driver click

Rating:

5

Author: MIKROE

Last Updated: 2018-08-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Stepper

Downloaded: 4211 times

Not followed.

License: MIT license  

Driver click features an IC with seven integrated high-current sink drivers drivers, which can be used to drive a wide range of loads via simple parallel interface.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Driver click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Driver click" changes.

Do you want to report abuse regarding "Driver click".

  • mikroSDK Library 2.0.0.0
  • Comments (1)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Driver click

Driver click

Native view of the Driver click board.

View full image
Driver click

Driver click

Front and back view of the Driver click board.

View full image

Library Description

Library performs the control of the output pins (OUT1 - OUT7) by setting input pins (IN1 - IN7).
For more details check the documentation.

Key functions :

  • void driver_setIN1( uint8_t state ) - Function determines state of output 1 (OUT1).

Example description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes GPIO driver and selects which inputs will be set in operation. Bits from 0 to 6 (selectIN) select inputs from IN1 to IN7, respectively.
  • Application Task - (code snippet) - Performs cycles in which selected inputs will be turned on for pulse width delay time one by one. When one input is turned on, he will be turned off after the desired delay time before the next input be turned on.
void applicationTask()
{
 temp = 1;

 for (count = 0; count < 7; count++)
 {
 switch (selectIN & temp)
 {
 case 0x01 :
 {
 driver_setIN1( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN1( disableIN );
 break;
 }
 case 0x02 :
 {
 driver_setIN2( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN2( disableIN );
 break;
 }
 case 0x04 :
 {
 driver_setIN3( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN3( disableIN );
 break;
 }
 case 0x08 :
 {
 driver_setIN4( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN4( disableIN );
 break;
 }
 case 0x10 :
 {
 driver_setIN5( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN5( disableIN );
 break;
 }
 case 0x20 :
 {
 driver_setIN6( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN6( disableIN );
 break;
 }
 case 0x40 :
 {
 driver_setIN7( enableIN );
 Delay_ms( pulseWidth );
 driver_setIN7( disableIN );
 break;
 }
 default :
 {
 break;
 }
 }

 temp <<= 1;
 }
}

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

Thermo 22 Click

0

Thermo 22 Click is a compact add-on board that provides an accurate temperature measurement. This board features the TMP75C, a high-precision digital temperature sensor from Texas Instruments. The TMP75C houses an integrated digital temperature sensor with a 12-bit analog-to-digital converter (ADC), a reference circuit, and serial interface logic functions in one package. Characterized by its high accuracy (up to ±0.25°C typical) and high resolution of 0.0625°C, this temperature sensor provides temperature data to the host controller with a configurable I2C interface. This Click board™ is appropriate for thermal management and protection of various consumer, industrial, and environmental applications.

[Learn More]

Buck 8 Click

5

Buck 8 click is a high efficiency, wide voltage range, and high current synchronous step down (buck) DC-DC converter, featuring two enhanced modes used to drive lighter loads with increased efficiency. The output voltage can be adjusted by the multi-turn trimmer potentiometer.

[Learn More]

EEG click

5

EEG Click is a Click board that allows monitoring of brain activity. Although not suitable for clinical examination, it is quite sufficient to allow some insight into brain activity.

[Learn More]