cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746G-DISCO screen goes blank when generating PWM signals

Simecrafter
Associate III

Hello everyone! I have been trying to do a project where I try to control a PWM signal with the touchscreen I made with TouchGFX on my STM32F746G-DISCO, unfortunately, after generating a PWM signal, the screen just goes blank, it doesn't turn off, it just goes completely white. I tried different TIM pins, different configurations and different duty cycles.

Is there something I'm missing? I need to generate at least 2-3 PWM signals and if I am unable to do it with this then I have to use something completely different, I am new to all this so I don't know as much, I can give more information as neccesary!

2 REPLIES 2
TDK
Guru

PWM should be asynchronous to whatever else the CPU is doing. It's possible it could be causing cross-talk or other interference which is disturbing the video signals. Change PWM frequency to something very slow and see. Ensure you are not calling interrupts at a high rate which will starve the system of cpu resources.

If you feel a post has answered your question, please click "Accept as Solution".
AMars.4
Associate III

From what I can see, on this board the pin LCD_BL_CTRL (PK3) does not map to any of the timer outputs for PWM generation.

I suppose you could maybe generate the PWM via Hardware Timer on another pin and modify the board to link that to LCD_BL_CTRL (PK3)?