2016-07-12 06:54 AM
Can i make a 2 PWM signals phased like this?
Phased like yellow and blue waves #keil #stm32f3-discovery2016-07-12 07:59 AM
Hi ferreira.filipe,
Yes, you can do it easily on STM32. You should apply the center-aligned PWM mode (up/down counting) with a different signal polarity. You may want to enable the preload registers to get a synchronized change in duty cycle. To more understand this Timer mode refer to this documents' sources: -: page 538: section ''PWM center-aligned mode (up/down counting)'' and p 519
-''STM32 cross-series timer overview'': from p 15 -> p18
Inlibrary, you can refer to both ''TIM_Asymetric'' and ''TIM_combined'' examples which integrate the center_aligned mode ( see the AN4013 to identify the bit-fields which are activated to see the difference and make the asymetric or combined mode starting form center -aligned mode) . Examples are at this path : STM32Cube_FW_F3_V1.5.0\Projects\STM32F3-Discovery\Examples\TIM
-Hannibal-