2023-12-15 06:44 AM - edited 2023-12-15 07:07 AM
Hello people, i want to create 4 different PWM signals that has total period of 100 microseconds and working with %25 duty cycle. My timers are working with 50 MHz Speed but it is not necessary to do so. I need them to be shifted 25 microseconds apart from eachother. What i mean by this is actually; PWM1 starts-> 25 microseconds later PWM1 Pulse goes LOW and PWM2 goes HIGH -> 25 microseconds later PWM2 goes LOW and PWM3 goes HIGH and so on. Is there anyway to do this with STM32F411RE/407VG mcu's? I have both eva-boards for those mcu's. I know it will be slight differences between those signals because it is not a FPGA board but i am willing to see what i can achieve with those 2 controllers. Thank you all!
Solved! Go to Solution.
2023-12-19 12:16 AM
i guess i have to set my signals according to that slew rate in order to achieve exact (at least close enough) 100 microseconds period but i will try my best to drop the slew rate as much as possible
2023-12-19 12:59 AM
i tried this exact code and it perfectly worked. i still have a slew rate that it affecting me but i guess i dont have anything else to solve that. thank you dude
2023-12-19 01:11 AM - edited 2023-12-19 01:15 AM
:thumbs_up:
+ on F407: for max. slew rate : set pin speed very high, makes about 2 ns switching time:
BUT need high speed + low capacity 10 : 1 probe too see this on a (fast) scope !
2023-12-19 01:58 AM
im kinda new to stm. how can i set up pin speed on cubeIDE can you guide me on that one too i would be very appreciated. thanks for your replies
2023-12-19 02:02 AM
:)
-- just in cube ->
2023-12-19 02:05 AM
i cant configure that cubeIDE does not allow me to change those pins why is that? any idea ?
2023-12-19 02:08 AM
okay i found it it is on the System Core-> GPIO section thank you very much again
2023-12-19 03:08 AM
+ or scrolling down can show new things...
;)