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 (69731 times)
  3. Network Ethernet Library (55841 times)
  4. USB Device Library (46173 times)
  5. Network WiFi Library (41801 times)
  6. FT800 Library (40985 times)
  7. GSM click (28921 times)
  8. PID Library (26384 times)
  9. mikroSDK (26277 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: 1559 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

Temp-Log 5 click

5

Temp-Log 5 click is a temperature measuring Click board featuring the CAT34TS02, an accurate temperature sensor IC with integrated Serial Presence Detect EEPROM.

[Learn More]

DMA Memory to Memory Demo

0

The application demonstrates DMA SDK functionality.

[Learn More]

DIGI POT 9 click

0

DIGI POT 9 Click is a compact add-on board used as a digitally controlled potentiometer. This board features the AD5235, a dual-channel, nonvolatile memory, digitally controlled potentiometer from Analog Devices. The AD5235's versatile programming via an SPI-compatible serial interface allows multiple modes of operation and adjustment. The resistor wiper position is determined by the RDAC register contents, which act as a scratchpad register, allowing unlimited changes of resistance settings. The nominal resistance of the RDAC between terminal A and terminal B (RAB) is 250 kΩ with 1024 positions (10-bit resolution).

[Learn More]