cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate center aligned pwm in stm32f030k6tx

Abhishek Gupta
Associate III
Posted on June 06, 2018 at 07:57

I want to generate center aligned pwm in stm32f030k6tx but when i am chosing the option of  center aligned in counter mode than it is converting it in edge aligned mode.So can any help me in how to generate central aligned pwm.

0690X00000604fgQAA.jpg

#stmcubef0 #stmcubemx #tim-pwm #stm32f030k6tx
1 REPLY 1
Khouloud GARSI
Lead II
Posted on July 06, 2018 at 18:08

Hi

abhishekg141997

?,

I have generated a project using STM32CubeMX tool (Used HW: STM32F030R8T6 on a Nucleo boad): PWM in center aligned mode on pin PA8 + I have toggled the PB1 pin at each update event (CNT = ARR & XNT = 0) in order to be sure that the center aligned mode is correctly generated.

Below is a screenshot of the result:

0690X0000060LgFQAU.png

If you still encounter the problem, you may share your ioc file and I will check it.

Khouloud.