TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 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 (139248 times)
  2. FAT32 Library (71743 times)
  3. Network Ethernet Library (57115 times)
  4. USB Device Library (47428 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28073 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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: 1700 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

Inclinometer Click

0

Inclinometer Click is a compact add-on board that offers best-in-class characteristics for inclination measurements. This board features the SCL3300, a high-performance inclinometer sensor component from Murata.

[Learn More]

Cap Touch Click

0

Cap Touch Click is a capacitive touch sensing button, integrated on a Click board. It can be activated by touch.

[Learn More]

Color 10 click

5

Color 10 Click is carrying VEML3328 sensor for RGB and IR light sensing as well as the RGB diode incorporated on the board which makes it good color detection device when its combined with a white LED.

[Learn More]