2025-02-25 10:56 PM - edited 2025-02-25 11:19 PM
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!
2025-02-26 4:25 PM - edited 2025-02-26 4:26 PM
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.
2025-02-27 3:09 AM
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)?