{"product_id":"mikroe-2762","title":"MCP16331 click","description":"\u003cp\u003e\u003cstrong\u003eMCP16331 click\u003c\/strong\u003e 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.\u003cbr\u003e \u003cbr\u003e The Buck converter produces a DC output in a range from 0V to just less than the input voltage. The Boost converter produces an output voltage ranging from the same voltage as the input to a level much higher than the input.\u003cbr\u003e \u003cbr\u003e The MCP16331 click itself produces constant DC voltage on the output rails, which can be set in the code.\u003c\/p\u003e\n\u003cp\u003eA typical application for a buck-boost regulator is a battery-powered system, where the input voltage can vary widely, starting at full charge and gradually decreasing as the battery charge is used up. At full charge, where the battery voltage may be higher than needed by the circuit, a buck regulator would be ideal to keep the supply voltage steady.\u003cbr\u003e \u003cimg src=\"https:\/\/shop.mikroe.com\/img\/cms\/mcp16331-click-inside-image-e.jpg\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003eFigure 1\u003c\/p\u003e\n\u003cp\u003eHowever as the charge diminishes the input voltage falls below the level required by the circuit, and either the battery must be discarded or re-charged; at this point, the ideal alternative would be the boost regulator.\u003c\/p\u003e\n\u003cp\u003eBy combining these two designs, it is possible to have a regulator circuit that can cope with a wide range of input voltages both higher or lower than that needed by the circuit.\u003c\/p\u003e\n\u003ch4\u003e\u003cstrong\u003eHow the MCP16331 click works\u003c\/strong\u003e\u003c\/h4\u003e\n\u003cp\u003eThe click board(TM) central module is the Microchip's MCP16331, a non-synchronous, step-down or buck converter capable of stepping input voltages ranging from 4.4V to 50V, and output voltage ranging from to 2.0V to 24V. More details about the MCP16331 are available in the official \u003ca href=\"https:\/\/download.mikroe.com\/documents\/datasheets\/MCP16331.pdf\" target=\"_blank\"\u003edatasheet\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003eThe MCP16331 click is designed to handle an \u003cstrong\u003einput voltage ranging from 4.5V to 18V and output a voltage ranging from 2,25V to 12V\u003c\/strong\u003e at 500 mA maximum current. The power source is connected to the TB1 (VIN) terminal, and the load is connected to the TB2 (VOUT) terminal, at the top of the click board™ (as you can see in figure 1).\u003c\/p\u003e\n\u003cp\u003eThe power circuit is isolated from the logic circuit that, as per the mikroBUS™ standard, can operate at 3.3V or 5V. The voltage is selectable via JP1 switch, by default set at 3.3V, and the green LED (LD1) indicated that this voltage is present.\u003c\/p\u003e\n\u003cp\u003eThe MCP16331 click uses the SPI bus present on the mikroBUS™, to communicate with the host processor, however, also uses two extra pins AN and RST that are used respectively for measuring the output voltage and enabling or disabling the MCP16331 output, this is important for the correct power sequence (see note below).\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eNOTE\u003c\/strong\u003e: To avoid any possible damage to any load connected to the VOUT terminals, you must follow the correct power-up sequence:\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003eDisable the MCP16331 by setting the mikroBUS™ pin RST (EN) low (GND)\u003c\/li\u003e\n\u003cli\u003eSet the desired output voltage via SPI (see the software section below)\u003c\/li\u003e\n\u003cli\u003eEnable the MCP16331 by setting the mikroBUS™ pin RST (EN) high (5V)\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003cp\u003eThe reason for this sequence is that the enable pin (EN) of the MCP16331 has an internal pull-up resistor that keeps the MCP16331 output stage enabled even if the pin is left unconnected.\u003cbr\u003e \u003cbr\u003e At power-up, before you set the voltage via SPI, DAC output is unspecified and the output voltage may set higher than what your load supports.\u003c\/p\u003e\n\u003cp\u003eSetting up the desired output voltage is easy if you use the libraries we developed for this click board™. We made available a specific function that sets the VOUT voltage (see below in the Software Support section).\u003cbr\u003e \u003cbr\u003e The MCP16331 click gives you the possibility to read the output voltage via analog pin (AN). Using the microcontroller ADC you can read the value, divided by the two 120K and 33K resistors (R1 and R4 on the schematic) that you can calculate with the formula:\u003cbr\u003e \u003cbr\u003e \u003cimg src=\"https:\/\/shop.mikroe.com\/img\/cms\/formula-1.jpg\" alt=\"\"\u003e\u003cbr\u003e \u003cbr\u003e So let's suppose that you have set the voltage at 5V:\u003cbr\u003e \u003cbr\u003e \u003cimg src=\"https:\/\/shop.mikroe.com\/img\/cms\/formula-2-new.jpg\" alt=\"\"\u003e\u003cbr\u003e \u003cbr\u003e In this case 1,07V.\u003cbr\u003e \u003cbr\u003e This feedback mechanism is useful when you want to set an exact voltage. You can measure the output and adjust the voltage.\u003c\/p\u003e\n\u003ch4\u003e\u003cstrong\u003eSpecifications\u003c\/strong\u003e\u003c\/h4\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eType\u003c\/td\u003e\n\u003ctd\u003eBuck\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOn-board modules\u003c\/td\u003e\n\u003ctd\u003eMCP16331 high-voltage input integrated switch step-down regulator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eSPI\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInput Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V or 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eClick board size\u003c\/td\u003e\n\u003ctd\u003eL (57.15 x 25.4 mm)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003ch4\u003e\u003cstrong\u003ePinout diagram\u003c\/strong\u003e\u003c\/h4\u003e\n\u003cp\u003eThis table shows how the pinout on\u003cstrong\u003e MCP16331 click\u003c\/strong\u003e corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth colspan=\"4\"\u003e\u003ca href=\"http:\/\/www.mikroe.com\/mikrobus\/\"\u003e\u003cimg src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\" alt=\"Mikrobus logo.png\"\u003e\u003c\/a\u003e\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eReads the output voltage\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eADC_OUT\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003ctd\u003eAN\u003c\/td\u003e\n\u003ctd\u003ePWM\u003c\/td\u003e\n\u003ctd\u003e16\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eEnable\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eEN\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003ctd\u003eRST\u003c\/td\u003e\n\u003ctd\u003eINT\u003c\/td\u003e\n\u003ctd\u003e15\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI chip select\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eCS\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e3\u003c\/td\u003e\n\u003ctd\u003eCS\u003c\/td\u003e\n\u003ctd\u003eTX\u003c\/td\u003e\n\u003ctd\u003e14\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI clock\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSCK\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e4\u003c\/td\u003e\n\u003ctd\u003eSCK\u003c\/td\u003e\n\u003ctd\u003eRX\u003c\/td\u003e\n\u003ctd\u003e13\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI slave data out\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSDO\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e5\u003c\/td\u003e\n\u003ctd\u003eMISO\u003c\/td\u003e\n\u003ctd\u003eSCL\u003c\/td\u003e\n\u003ctd\u003e12\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSPI slave data in\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSDI\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e6\u003c\/td\u003e\n\u003ctd\u003eMOSI\u003c\/td\u003e\n\u003ctd\u003eSDA\u003c\/td\u003e\n\u003ctd\u003e11\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003ePower supply\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e+3.3V\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e7\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003ctd\u003e5V\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e+5V\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003ePower supply\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e8\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003e9\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003ch4\u003e\u003cstrong\u003eMCP16331 click maximum ratings\u003c\/strong\u003e\u003c\/h4\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eDescription\u003c\/th\u003e\n\u003cth\u003eMin\u003c\/th\u003e\n\u003cth\u003eTyp\u003c\/th\u003e\n\u003cth\u003eMax\u003c\/th\u003e\n\u003cth\u003eUnit\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInput Voltage Range (VIN)\u003c\/td\u003e\n\u003ctd\u003e4.5\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e18\u003c\/td\u003e\n\u003ctd\u003eV\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOutput Voltage Range (VOUT)\u003c\/td\u003e\n\u003ctd\u003e2.25\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e12\u003c\/td\u003e\n\u003ctd\u003eV\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOutput current\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e500\u003c\/td\u003e\n\u003ctd\u003emA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSwitching Frequency\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e500\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003ekHz\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eEfficiency\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e96%\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003ch4\u003e\u003cstrong\u003eOnboard settings and indicators\u003c\/strong\u003e\u003c\/h4\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eLabel\u003c\/th\u003e\n\u003cth\u003eName\u003c\/th\u003e\n\u003cth\u003eDefault\u003c\/th\u003e\n\u003cth\u003eDescription\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eTB1\u003c\/td\u003e\n\u003ctd\u003eVIN\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eVoltage input screw terminal\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eTB2\u003c\/td\u003e\n\u003ctd\u003eVOUT\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eVoltage output screw terminal\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eJP1\u003c\/td\u003e\n\u003ctd\u003ePWR.SEL.\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003ctd\u003ePower supply voltage selection 3V3\/5V, left position 3V3, right position 5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eLD1\u003c\/td\u003e\n\u003ctd\u003ePWR\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003ePower LED, lights green when the power supply is established properly\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003ch4\u003e\u003cstrong\u003eSoftware Support\u003c\/strong\u003e\u003c\/h4\u003e\n\u003cp\u003eWe provide a library for the MCP16331 click on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2202\/mcp16631\" target=\"_blank\"\u003eLibStock page\u003c\/a\u003e, as well as a demo application (example), developed using MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/compilers\" target=\"_blank\"\u003ecompilers\u003c\/a\u003e. The demo application can run on all the main MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/development-boards\" target=\"_blank\"\u003edevelopment boards\u003c\/a\u003e.\u003cbr\u003e \u003cbr\u003e Note: depending on the development board you are using, you may need the \u003ca href=\"https:\/\/shop.mikroe.com\/rs232-click\" target=\"_blank\"\u003eRS232 click\u003c\/a\u003e or \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-click\" target=\"_blank\"\u003eUSB-UART click\u003c\/a\u003e or \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-2-click\" target=\"_blank\"\u003eUSB UART 2 click\u003c\/a\u003e, to connect to your PC. The terminal available in all MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/compilers\" target=\"_blank\"\u003ecompilers\u003c\/a\u003e, or any other terminal application of your choice, can be used to read the message.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eLibrary Description\u003c\/strong\u003e\u003cbr\u003e \u003cbr\u003e The library carries a function for controlling the MCP16331 click output alongside with SPI driver initialization function.\u003cbr\u003e \u003cbr\u003e \u003cstrong\u003eKey functions\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ccode\u003evoid mcp16331_setVout(uint16_t millivolt )\u003c\/code\u003e - Sets voltage on outputs\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eExamples Description\u003c\/strong\u003e\u003cbr\u003e \u003cbr\u003e The application is composed of three sections:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eSystem Initialization - Initializes GPIO and SPI peripheral, but also and UART used for information logging.\u003c\/li\u003e\n\u003cli\u003eApplication Initialization - Driver initialization.\u003c\/li\u003e\n\u003cli\u003eApplication 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.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre\u003evoid applicationTask()\n{\nmcp16331_setVout( 5000 );\nUART1( \"rnOutput Voltage changed to 5V\" );\nDelay_ms( 3000 );\nmcp16331_setVout( 12000 );\nUART1( \"rnOutput Voltage changed to 12V\" );\nDelay_ms( 3000 );\n}\n\u003c\/pre\u003e\n\u003cp\u003eThe 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.\u003cbr\u003e \u003cbr\u003e Other MikroE Libraries used in the example:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eUART\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe full application code and libraries are available for download on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2202\/mcp16631\" target=\"_blank\"\u003eLibStock page\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003e\u003ciframe frameborder=\"0\" src=\"https:\/\/www.youtube.com\/embed\/e0hzaDoMUEU\" width=\"560\" height=\"315\"\u003e\u003c\/iframe\u003e\u003c\/p\u003e","brand":"MikroElektronika","offers":[{"title":"Default Title","offer_id":47400877392155,"sku":"MIKROE-2762","price":2309.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0676\/3325\/0587\/products\/mcp16331-click-thickbox_default-1HcldZj5tbsltD.jpg?v=1701960785","url":"https:\/\/mgsl.in\/products\/mikroe-2762","provider":"MG Super Labs","version":"1.0","type":"link"}