| 数据搜索系统,热门电子元器件搜索 |
|
UM1561 数据表(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1561 数据表(HTML) 8 Page - STMicroelectronics |
|
8 / 39 page ![]() STM32F1xx - internal peripherals for DC-DC section UM1561 8/39 Doc ID 023556 Rev 1 4 STM32F1xx - internal peripherals for DC-DC section The DC-DC converter is managed by two PWM timers, configured in master-slave in such a way as to have two phase-shifted signals. In particular, the general timer TIM2 is configured as master with “Center Aligned” mode counting. The overflow of the digital counter at the up-counting synchronizes another general timer, TIM3, to work in slave mode. Hardware synchronization allows no delay time between the timers and two signals are generated with 180 deg. phase shift. DCDC_Converter.c: #define TIM_PERIOD LocalDevice.Init.Counter #define TIM2_PERIOD (TIM_PERIOD >> 1) // DIVIDED BY 2 CENTER ALIGNED MODE #define TIM2_INIT_PULSE (TIM2_PERIOD >> 1)// DIVIDED BY 2 50% TIM2 PERIOD #define TIM3_PERIOD (TIM_PERIOD >> 1) // DIVIDED BY 2 CENTER ALIGNED MODE #define TIM3_INIT_PULSE (TIM3_PERIOD >> 1) // DIVIDED BY 2 50% TIM2 PERIOD Set the counting period of the PWM timers (TIM2_PERIOD and TIM3_PERIOD), and set the duty cycle value at 50% (TIM2_INIT_PULSE, TIM3_INIT_PULSE). In DCDC_Converter.h the DCDC_COUNTER is the TIM_PERIOD reference value. The .c file defines all functions useful in managing the DC-DC section, in particular: ● DCDC_Init(PDCDC_TypeDef_t pDCDCInit); ● DCDC_SendCommand(DCDC_Commands_t cmd); ● DCDC_GetStatus(); ● DCDC_GetConfiguration(PDCDC_TypeDef_t pDCDCInit); ● DCDC_GetDutyCycle(); ● DCDC_GetFrequency(); ● DCDC_RefreshDisplay(DCDC_Error_t err, u32 steps, u32 changes). DCDC_Init(….) DCAC_Error_t DCAC_Init(PDCAC_TypeDef_t pDCACInit) { DCAC_Error_t nRet; nRet = DCAC_ERROR_INVALID_PARAMETER; if (pDCACInit) { nRet = DCAC_ERROR_ON_INIT; if (LocalDevice.State != DCAC_Running) { LocalDevice.Init.Counter = pDCACInit->Counter; LocalDevice.Init.DeadTime = pDCACInit->DeadTime; LocalDevice.State = DCAC_Stopped; |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |