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 (137108 times)
  2. FAT32 Library (70237 times)
  3. Network Ethernet Library (56128 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42079 times)
  6. FT800 Library (41390 times)
  7. GSM click (29118 times)
  8. mikroSDK (26564 times)
  9. PID Library (26503 times)
  10. microSD click (25487 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: 1585 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

DC Motor 15 click

0

DC Motor 15 Click is a compact add-on board that contains a motor driver with current sense and regulation. This board features the DRV8874, an integrated motor driver with N-channel H-bridge, charge pump, current sensing, and adjustment from Texas Instruments.

[Learn More]

MINI-M4 STM32 Board Examples

0

Examples for MINI-M4 STM32 Board. Provided examples demonstrate working with on-board LEDs and internal USB HID module.

[Learn More]

Thermo 6 click

0

Thermo 6 click is a precise and versatile ambient temperature measurement click board, based on the Maxim Integrated MAX31875 temperature sensor.

[Learn More]