| 数据搜索系统,热门电子元器件搜索 |
|
UM1561 数据表(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1561 数据表(HTML) 13 Page - STMicroelectronics |
|
13 / 39 page ![]() UM1561 STM32F1xx - internal peripherals for DC-AC section Doc ID 023556 Rev 1 13/39 /*Init peripherals */ DCAC_GPIO_Configuration(); DCAC_TIMx_Configuration(); DCAC_SetDeadTime(LocalDevice.Init.DeadTime); nRet = DCAC_ERROR_NONE; } } return nRet; } where: ● DCAC_GPIO_Configuration(); is (Configuration of the GPIO pin for TIM8 timer and for GPIO function) ● DCAC_TIMx_Configuration(); is (Configuration of PWM timer). This function includes the init code for the advanced timer TIM8 and GPIO. DCAC_SendCommand(…): This function includes the start/stop command for the output of the advanced timer TIM8 (inverter modulation). DCAC_Error_t DCAC_SendCommand(DCAC_Commands_t cmd) { DCAC_Error_t nRet; nRet = DCAC_ERROR_INVALID_COMMAND; if (cmd == DCAC_Start) { nRet = DCAC_ERROR_ON_SEND_COMMAND; if (DCAC_GetStatus() != DCAC_Running) { LocalDevice.State = DCAC_Running; // TIMx enable counter TIM_CtrlPWMOutputs(TIM8, ENABLE); nRet = DCAC_ERROR_NONE; } } else if (cmd == DCAC_Stop) { nRet = DCAC_ERROR_ON_SEND_COMMAND; |
|
链接网址 |
| 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 |