AnsweredAssumed Answered

STM32L4 PWM Phase Delay

Question asked by roofie01 on Feb 19, 2018
Latest reply on Mar 1, 2018 by Ivan Elkin

Hello:

Using the Nucleo STM32L476RG demo board.

On an STM32F4xx, using CMSIS, I am able to create 2 PWM pulses that have the same period. However, the 2nd pulse is delayed by: TIM4->CNT = TIM3->CNT + (timerPeriod /2 ); // =180 degrees

I want to do the same thing using HAL, but it looks like a few things have changed from CMSIS!

I have my code where I have 2 pulses being generated at the correct duty cycle and frequency, but spinning the wheels on how to get the second pulse delayed as shown above.

 

Can someone please provide some insight on how I could accomplish this? Has HAL made it easier than CMSIS? Or just different?

 

Thanks!

 

UPDATE.

Found: DM00405316

Outcomes