无论是在工业自动化还是消费电子中,降压稳压器都是在各种应用中保持稳定电压供应的首选解决方案。
A
A
硬件概览
它是如何工作的?
Buck 16 Click基于TPS62912,这是一款来自德州仪器的低噪声、低纹波同步降压转换器,具有固定频率电流模式。该转换器具有过滤的内部参考,能够实现类似低噪声LDO的低噪声输出。此外,它的输出电压误差小于1%,这有助于确保严格的输出电压精度,并通过使用2.2MHz或1MHz的开关频率降低输出电压纹波。该Click板™适用于使用LDO进行后级调节的噪声敏感应用。该Click板™通过一个GPIO引脚和3线SPI串行接口与MCU通信。设备启用功能路由到mikroBUS™插座的RST引脚,用于优化功耗,并用于电源开/关操作(驱动器操作许
可)。一旦启用Click板™,通过将SMD跳线定位到标记为VIN或GND的适当位置来配置CONF SEL(智能配置)跳线以设置操作模式。此外,此引脚还用于设备同步。一旦通过板载标记为SYNC的接头将外部时钟信号(必须在智能配置跳线设置的时钟同步频率范围内)应用到此引脚,设备将启用并读取智能配置引脚的配置。当此信号从时钟变为静态高电平时,设备将从外部时钟切换到内部时钟。此外,该设备还具有在板载标记为PGOOD的接头上的电源良好输出。一旦通过MCP4161数字电位器获得的反馈引脚电压(由DIGI POT控制)高于标称电
压的95%,PGOOD引脚进入高阻态,一旦电压下降到低于标称电压的90%时,驱动低电平。通过连接到其他转换器的启用引脚,电源良好信号可以顺序启动多个轨道。此Click板™可以通过VCC SEL跳线选择3.3V和5V逻辑电压电平,从而使具有3.3V和5V能力的MCU能够正确使用通信线路。此外,还可以通过标记为VIN SEL的跳线选择TPS62912电源,从外部电源端子(范围3到17V)或mikroBUS™电源轨的VCC电压为TPS62912供电。此外,该Click板™配备了一个包含易于使用的函数和示例代码的库,可作为进一步开发的参考。
功能概述
开发板
32L496GDISCOVERY Discovery 套件是一款功能全面的演示和开发平台,专为搭载 Arm® Cortex®-M4 内核的 STM32L496AG 微控制器设计。该套件适用于需要在高性能、先进图形处理和超低功耗之间取得平衡的应用,支持无缝原型开发,适用于各种嵌入式解决方案。STM32L496AG 采用创新的节能架构,集成
了扩展 RAM 和 Chrom-ART 图形加速器,在提升图形性能的同时保持低功耗,使其特别适用于音频处理、图形用户界面和实时数据采集等对能效要求较高的应用。为了简化开发流程,该开发板配备了板载 ST-LINK/V2-1 调试器/编程器,提供即插即用的调试和编程体验,使用户无需额外硬件即可轻松加载、调
试和测试应用程序。凭借低功耗特性、增强的内存能力以及内置调试工具,32L496GDISCOVERY 套件是开发先进嵌入式系统、实现高效能解决方案的理想选择。
微控制器概述
MCU卡片 / MCU

建筑
ARM Cortex-M4
MCU 内存 (KB)
1024
硅供应商
STMicroelectronics
引脚数
169
RAM (字节)
327680
使用的MCU引脚
mikroBUS™映射器
“仔细看看!”
Click board™ 原理图

一步一步来
项目组装
软件支持
库描述
该库包含 Buck 16 Click 驱动程序的 API。
关键功能:
buck16_enable_output- 启用/禁用电压输出buck16_set_potentiometer- 设置电位器电阻值buck16_set_output- 设置输出电压
开源
代码示例
完整的应用程序代码和一个现成的项目可以通过NECTO Studio包管理器直接安装到NECTO Studio。 应用程序代码也可以在MIKROE的GitHub账户中找到。
/*!
* @file main.c
* @brief Buck16 Click example
*
* # Description
* This example showcases ability of the device to
* control voltage output of device. Output voltage
* can range from 800 to 5500 depending of VIN. By default
* it will go from 800 to 3300 VIN==VCC.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initialization of communication modules (SPI, UART)
* and additional pin for enabling output and sets it to
* high.
*
*
* ## Application Task
* Sets voltage output first to 900mV then to 2500 mV.
* Then disables and enables output by toggling pin.
* In the end sets output value to 1500mV.
*
* @author Luka Filipovic
*
*/
#include "board.h"
#include "log.h"
#include "buck16.h"
static buck16_t buck16;
static log_t logger;
void application_init ( void )
{
log_cfg_t log_cfg; /**< Logger config object. */
buck16_cfg_t buck16_cfg; /**< Click config object. */
/**
* 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_printf( &logger, "\r> Application Init <\r\n" );
// Click initialization.
buck16_cfg_setup( &buck16_cfg );
BUCK16_MAP_MIKROBUS( buck16_cfg, MIKROBUS_1 );
err_t init_flag = buck16_init( &buck16, &buck16_cfg );
if ( SPI_MASTER_ERROR == init_flag )
{
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
buck16_enable_output( &buck16, 1 );
log_printf( &logger, "> Application Task <\r\n" );
}
void application_task ( void )
{
log_printf( &logger, " > Setting output to 0.9V\r\n" );
buck16_set_output( &buck16, 900 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
log_printf( &logger, " > Setting output to 2.5V\r\n" );
buck16_set_output( &buck16, 2500 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
log_printf( &logger, " > Disable output\r\n" );
buck16_enable_output( &buck16, 0 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
log_printf( &logger, " > Enable output\r\n" );
buck16_enable_output( &buck16, 1 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
log_printf( &logger, " > Setting output to 1.5V\r\n" );
buck16_set_output( &buck16, 1500 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}
int main ( void )
{
/* Do not remove this line or clock might not be set correctly. */
#ifdef PREINIT_SUPPORTED
preinit();
#endif
application_init( );
for ( ; ; )
{
application_task( );
}
return 0;
}
// ------------------------------------------------------------------------ END
额外支持
资源
类别:降压































