STM32: create synchronious PWMs #52490
Labels
area: PWM
Pulse Width Modulation
Enhancement
Changes/Updates/Additions to existing features
platform: STM32
ST Micro STM32
Describe the bug
Hi,
I am Working on a STM32-H7A3ZI-Q, trying to drive a TCD1304-Sensor.
Therefore it is needed to create at least two PWMs with 2MHz and 500KHz respectively.
The Datasheet of STM32-H7A3ZI-Q points out, that there is a possibility of Timer Link feature.
To get those PWMs synchronized to each other, I tried using the same Timer with different channels.
This is not working because the output signals will have the same frequency but different duty cycles.
Creating the two PWMs with different Timers they have a drift referring to each other.
As consequence the Timing requirements of TCD1304 cannot be held.
Without Zephyr you might have to drive the two Timers as Slaves of another Timer to get them synchronized.
Is there a Way to Synchronize the PWMs with the Device tree?
To Reproduce
create a new Project with the following contents for a STM-H7A3ZI-Q.
prj.conf
main.c
nucleo_h7a3zi_q.overlay
Expected behavior
Seeing two synchronized PWMs on the both Pins.
Impact
It is not possible to drive complex Sensors with PWMs.
Environment (please complete the following information):
Additional context
The PWM Signals can be measured with an oscilloscope at the pins PE9 and PD15
The text was updated successfully, but these errors were encountered: