TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136537 times)
  2. FAT32 Library (69734 times)
  3. Network Ethernet Library (55842 times)
  4. USB Device Library (46177 times)
  5. Network WiFi Library (41801 times)
  6. FT800 Library (40987 times)
  7. GSM click (28922 times)
  8. PID Library (26384 times)
  9. mikroSDK (26280 times)
  10. microSD click (25298 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
Library

MCP16331 click

Rating:

0

Author: MIKROE

Last Updated: 2018-07-12

Package Version: 1.0.0.0

Category: Buck

Downloaded: 1560 times

Not followed.

License: MIT license  

MCP16331 click functions as a non-inverting buck-boost voltage regulator, a type of switching mode power supply topology that combines the principles of the Buck converter (step-down) and the Boost converter (step-up) in a single circuit.

No Abuse Reported

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

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

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

  • mikroSDK Library 2.0.0.0
  • Comments (0)

Library Blog

MCP16331 click

MCP16331 click

Native view of the MCP16331 click board.

View full image
MCP16331 click

MCP16331 click

Front and back view of the MCP16331 click board.

View full image

We provide a library for the MCP16331 click, as well as a demo application (example), developed using MikroElektronika compilers. The demo application can run on all the main MikroElektronika development boards.

Library Description

The library carries a function for controlling the MCP16331 click output alongside with SPI driver initialization function.

Key functions

  • void mcp16331_setVout(uint16_t millivolt ) - Sets voltage on outputs

Examples Description

The application is composed of three sections:

  • System Initialization - Initializes GPIO and SPI peripheral, but also and UART used for information logging.
  • Application Initialization - Driver initialization.
  • Application Task - (code snippet) Periodically changes the output voltage in the range from 5V to 12V. Information about the current output voltage is logged on UART.
void applicationTask()
{
    mcp16331_setVout( 5000 );
    UART1( "rnOutput Voltage changed to 5V" );
    Delay_ms( 3000 );
    mcp16331_setVout( 12000 );
    UART1( "rnOutput Voltage changed to 12V" );
    Delay_ms( 3000 );
}

 

The example also carries additional functions for GPIO control which are provided during driver initialization. These functions are necessary and implementation depends on development system used.

Other MikroE Libraries used in the example:

  • UART

Note

Depending on the development board you are using, you may need the RS232 click or USB-UART click or USB UART 2 click, to connect to your PC. 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

8800 Retro click

0

8800 Retro Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the AS1115, compact LED driver for 8x8 display screen programmed via a compatible 2-wire I2C interface from ASM-AG.

[Learn More]

iButton click

0

iButton click - is an iButton™ probe Click board™. The iButton is a Analog Devices technology based on Analog's 1-Wire® communication protocol, and a chip usually packed in a robust stainless steel casing. The button-shaped iButton device has two contacts - the lid and the base. These contacts carry the necessary connections down to a sensitive silicone chip, embedded inside the metal button. When the iButton touches the reader probe on the Click board™, it establishes the communication with the host MCU, via the 1-Wire® interface. The communication is almost instant, so it is enough to press the iButton lightly to the probe contacts.

[Learn More]

RTD 2 click

5

RTD 2 Click is a compact add-on board used for applications with resistive elements that change resistance over temperature. This board features the ADS1247, 24-bit analog-to-digital converter with a programmable gain amplifier (PGA) for sensor measurement applications from Texas Instruments.

[Learn More]