Compact and versatile, our buck step-down converter is essential in portable devices, extending battery life and enhancing usability
A
A
Hardware Overview
How does it work?
Buck 12 Click is based on the MPQ8632, a synchronous step-down converter from Monolithic Power Systems (MPS). This advanced integrated step-down converter requires a minimum number of external components readily available on the market. It utilizes a peak-current-mode control architecture, ensuring good efficiency and automatic switch-mode switching. The MPQ8632 buck converter features over-current, under-voltage, and thermal protection, making Buck 12 click a robust and reliable power supply solution. The feedback voltage on the FB pin determines the output voltage. The output voltage is set to 3.3V, making it usable with most embedded applications, allowing them to be powered from the same source, like the rest of the application, which may use a higher voltage for its operation. This is a common-case scenario in various field applications requiring a relatively high voltage, i.e., for servos, step motors, displays, and more. When there is an overload at the output, the low-side MOSFET will allow the inductor current to drop.
It will remain open until the current through the inductor falls below the limit. Suppose the FB voltage drops too much during the overload. In that case, the device enters the hiccup mode, which turns off the output power stage, discharges the soft-start capacitor, and automatically retries the soft-start. The MPQ8632 can automatically switch between different operating modes, depending on the current through the load. At very light loads, the device is operated in skip mode. In this mode, HS-FET turns on for a fixed interval determined by the one-shot on-timer. When the HS-FET turns off, the LS-FET turns on until the inductor current reaches zero. The LS-FET driver turns into a tri-state (high Z) whenever the inductor current reaches zero. This way, the device is idle while the light load consumes energy stored within the coil. This greatly improves the efficiency when a light load is used. This is also called discontinuous conduction mode (DCM). The MPQ8632 automatically switches to heavy load operation or continuous
conduction mode (CCM) when heavily loaded. In this mode, when VFB is below VREF, HS-FET turns on for a fixed interval determined by the one-shot on-timer. When the HS-FET turns off, the LS-FET turns on until the next period. In CCM operation, the switching frequency is fairly constant and called PWM mode. Packed in QFN casing (3X4mm), the MPQ8632 occupies a small area on the PCB. Combined with the low count of external components it requires, the MPQ8632 leaves enough space for an additional IC to be used. This click uses the MCP3202, a Dual Channel 12-Bit A/D Converter which uses the SPI interface from Microchip. It allows monitoring of the input and output voltages over the SPI interface. This ADC is powered by the +5V mikroBUS™ power rail. The same voltage is used as a reference. The Click board™ itself requires an external power supply to be connected at the input terminal, labeled as VIN. The VOUT terminal provides the connected load with the regulated 3.3V voltage.
Features overview
Development board
EasyMx PRO v7 for TIVA is the seventh generation of ARM development boards specially designed for the needs of rapid development of embedded applications. It supports a wide range of 32-bit ARM microcontrollers from Texas Instruments and a broad set of unique functions, such as a powerful onboard mikroProg programmer and In-Circuit debugger over USB-B. The development board is well organized and designed so that the end-user has all the necessary elements, such as switches, buttons, indicators, connectors, and others, in one place. With two different connectors for each port, EasyMx PRO v7 for TIVA allows you to connect accessory boards, sensors, and custom electronics more efficiently than ever. Each part of the EasyMx
PRO v7 for TIVA development board contains the components necessary for the most efficient operation of the same board. An integrated mikroProg, a fast USB 2.0 programmer with mikroICD hardware In-Circuit Debugger, offers many valuable programming/debugging options and seamless integration with the Mikroe software environment. Besides it also includes a clean and regulated power supply block for the development board. It can use a wide range of external power sources, including an external 12V power supply, 7-23V AC or 9-32V DC via DC connector/screw terminals, and a power source via the USB Type-B (USB-B) connector. Communication options such as USB-UART, USB-HOST/DEVICE, CAN, and
Ethernet are also included, including the well-established mikroBUS™ standard, one display option for the TFT board line of products, and a standard TQFP socket for the seventh-generation MCU cards. This socket covers a wide range of 32-bit TIVA-series ARM Cortex-M4 MCUs. EasyMx PRO v7 for TIVA is an integral part of the Mikroe ecosystem for rapid development. Natively supported by Mikroe software tools, it covers many aspects of prototyping and development thanks to a considerable number of different Click boards™ (over a thousand boards), the number of which is growing every day.
Microcontroller Overview
MCU Card / MCU
![default](https://cdn.mikroe.com/rent-a-product/request-setup/mcu-cards/easymx-pro-v7-tiva-tm4c123gh6pzl.png)
Type
7th Generation
Architecture
ARM Cortex-M4
MCU Memory (KB)
10
Silicon Vendor
Texas Instruments
Pin count
100
RAM (Bytes)
100
Used MCU Pins
mikroBUS™ mapper
Take a closer look
Schematic
![Buck 12 Click Schematic schematic](https://dbp-cdn.mikroe.com/catalog/click-boards/resources/1ee790b8-7d85-6e9a-97e3-0242ac120009/schematic.webp)
Step by step
Project assembly
Track your results in real time
Application Output
After pressing the "FLASH" button on the left-side panel, it is necessary to open the UART terminal to display the achieved results. By clicking on the Tools icon in the right-hand panel, multiple different functions are displayed, among which is the UART Terminal. Click on the offered "UART Terminal" icon.
![UART Application Output Step 1](https://dbp-cdn.mikroe.com/cms/shared-resources/1eed703a-40a0-6b58-88de-02420a00029a/UART-AO-Step-1.jpg)
Once the UART terminal is opened, the window takes on a new form. At the top of the tab are two buttons, one for adjusting the parameters of the UART terminal and the other for connecting the UART terminal. The tab's lower part is reserved for displaying the achieved results. Before connecting, the terminal has a Disconnected status, indicating that the terminal is not yet active. Before connecting, it is necessary to check the set parameters of the UART terminal. Click on the "OPTIONS" button.
![UART Application Output Step 2](https://dbp-cdn.mikroe.com/cms/shared-resources/1eed703a-eb29-62fa-ba91-02420a00029a/UART-AO-Step-2.jpg)
In the newly opened UART Terminal Options field, we check if the terminal settings are correct, such as the set port and the Baud rate of UART communication. If the data is not displayed properly, it is possible that the Baud rate value is not set correctly and needs to be adjusted to 115200. If all the parameters are set correctly, click on "CONFIGURE".
![UART Application Output Step 3](https://dbp-cdn.mikroe.com/cms/shared-resources/1eed703b-7543-6fbc-9c69-0242ac120003/UART-AO-Step-3.jpg)
The next step is to click on the "CONNECT" button, after which the terminal status changes from Disconnected to Connected in green, and the data is displayed in the Received data field.
![UART Application Output Step 4](https://dbp-cdn.mikroe.com/cms/shared-resources/1eed703c-068c-66a4-a4fc-0242ac120003/UART-AO-Step-4.jpg)
Software Support
Library Description
This library contains API for Buck 12 Click driver.
Key functions:
buck12_control
- This function for enable or disable devicebuck12_get_channel_adc
- This function reads ADC on the channelbuck12_get_voltage
- This function gets voltage
Open Source
Code example
This example can be found in NECTO Studio. Feel free to download the code, or you can copy the code below.
/*!
* \file
* \brief Buck12 Click example
*
* # Description
* This demo application reads the voltage in [mV] at the input and output terminals.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Configuring clicks and log objects.
*
* ## Application Task
* Reads the voltage in [mV] at the input and output terminals.
* This data logs to the USBUART every 2 sec.
*
* \author MikroE Team
*
*/
// ------------------------------------------------------------------- INCLUDES
#include "board.h"
#include "log.h"
#include "buck12.h"
// ------------------------------------------------------------------ VARIABLES
static buck12_t buck12;
static log_t logger;
// ------------------------------------------------------ APPLICATION FUNCTIONS
void application_init ( void )
{
log_cfg_t log_cfg;
buck12_cfg_t cfg;
/**
* Logger initialization.
* Default baud rate: 115200
* Default log level: LOG_LEVEL_DEBUG
* @note If USB_UART_RX and USB_UART_TX
* are defined as HAL_PIN_NC, you will
* need to define them manually for log to work.
* See @b LOG_MAP_USB_UART macro definition for detailed explanation.
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
buck12_cfg_setup( &cfg );
BUCK12_MAP_MIKROBUS( cfg, MIKROBUS_1 );
buck12_init( &buck12, &cfg );
buck12_control( &buck12, BUCK12_ENABLE );
Delay_ms( 2000 );
}
void application_task ( void )
{
float voltage;
voltage = buck12_get_voltage( &buck12, BUCK12_INPUT_VOLTAGE );
log_printf( &logger, "* Vin : %f mV \r\n ", voltage);
voltage = buck12_get_voltage( &buck12, BUCK12_OUTPUT_VOLTAGE );
log_printf( &logger, "* Vout : %f mV \r\n ", voltage);
log_printf( &logger, "--------------------------\r\n");
Delay_ms( 2000 );
}
void main ( void )
{
application_init( );
for ( ; ; )
{
application_task( );
}
}
// ------------------------------------------------------------------------ END