TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (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 (137081 times)
  2. FAT32 Library (70222 times)
  3. Network Ethernet Library (56094 times)
  4. USB Device Library (46411 times)
  5. Network WiFi Library (42029 times)
  6. FT800 Library (41375 times)
  7. GSM click (29109 times)
  8. mikroSDK (26555 times)
  9. PID Library (26487 times)
  10. microSD click (25483 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

DIGI POT 6 click

Rating:

5

Author: MIKROE

Last Updated: 2020-05-28

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Digital potentiometer

Downloaded: 1865 times

Not followed.

License: MIT license  

DIGI POT 6 Click features the MCP41HVX1 family of devices which have dual power rails (analog and digital). The analog power rail allows high voltage on the resistor network terminal pins. The analog voltage range is determined by the V+ and V- voltages.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "DIGI POT 6 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "DIGI POT 6 click" changes.

Do you want to report abuse regarding "DIGI POT 6 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
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

DIGI POT 6 Click

DIGI POT 6 Click

Native view of the DIGI POT 6 Click board.

View full image
DIGI POT 6 Click

DIGI POT 6 Click

Front and back view of the DIGI POT 6 Click board.

View full image

Library Description

The library covers necessary functions that enable the usage of the DIGI POT 6 click board. User can read and write data to and from Volatile Wiper 0 and Volatile TCON Register or issue increment and decrement commands to Volatile Wiper 0. User can also Connect/Disconnect Resistor 0 Terminal A, Resistor 0 Terminal B, Resistor 0 Wiper and Resistor 0 Hardware Configuration Control.

Key functions:

  • void digipot6_write_data ( uint8_t reg_adr, uint8_t wr_byte ) - Function is used to write single byte of data into user defined register.
  • uint8_t digipot6_read_data ( uint8_t reg_adr ); - Function is used to read single byte of data from user defined register.
  • void digipot6_set_r0hw ( uint8_t state ); - Function is used to force Resistor 0 into the “shutdown” configuration.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes SPI module and LOG structures.
  • Application Initialization - Initalizes SPI and device drivers, wakes up the device and connects terminal A, terminal B and wiper to the resistor 0 network.
  • Application Task - Demonstrates use of DIGI POT 6 click board by setting wiper to step 0, then going through the steps, fifteen at a time and displaying data via USART terminal.
void application_task ( )
{
    digipot6_write_data( DIGIPOT6_VOLATILE_WIPER_0, 0x00 );
    for ( cnt = 0; cnt <= 255; cnt += 15 )
    {
        digipot6_write_data( DIGIPOT6_VOLATILE_WIPER_0, cnt );
        Delay_ms( 10 );
        wiper_val = digipot6_read_data( DIGIPOT6_VOLATILE_WIPER_0 );
        ByteToStr( wiper_val, log_txt );
        mikrobus_logWrite( " Wiper step : ", _LOG_TEXT );
        Ltrim( log_txt );
        mikrobus_logWrite( log_txt, _LOG_LINE );
        Delay_ms( 1000 );
    }

    mikrobus_logWrite( "------------------------", _LOG_LINE );
    Delay_ms( 1000 );
}

Other mikroE Libraries used in the example:

  • SPI
  • UART
  • Conversions

Additional notes and informations

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

Water Detect 2 click

0

Water Detect 2 Click is a compact add-on board that can detect the presence/flow of a liquid in a clear tube. This board features the OPB350L250, a tube liquid sensor from TT Electronics. Water Detect 2 Click has multiple output states and can recognize fluid present, no fluid present, and no tube present. This sensor excepts 1/4” tubing (6.3mm) as an outside diameter of the clear tubes, regardless of the direction of the liquid’s flow.

[Learn More]

Load Cell 5 click

0

Load Cell 5 Click is a compact add-on board that represents a weigh scale solution. This board features the AD7780, a pin-programmable, low power, 24-bit sigma-delta ΣΔ ADC from Analog Devices. It interfaces directly to the load cell, where the low-level signal from the load cell is amplified by the AD7780’s internal low noise programmable gain amplifier programmed to operate with a gain of 128 or 1. It also has a power-down mode allowing the user to switch off the power to the bridge sensor and power-down the AD7780 when not converting, increasing the product battery life. This Click board™ has many features that make it a perfect solution for safety-critical and weight measurement applications.

[Learn More]

Boost 6 click

5

The Boost 6 Click is a Click board which features the TPS55332-Q1, a monolithic high-voltage switching regulator with integrated 3-A, 60-V power MOSFET.

[Learn More]