PWM Generation using STM for TC39x series

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User16229
Level 1
Level 1
Hello,

I need to generate PWM at user defined frequency using STM without using interrupt for TC39x series.
As I am new to TC39x series I am unable to find proper way to implement.

Kindly help

Thanks in advance
0 Likes
2 Replies
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored
Your request seems impractical as the STM is not directly connected to a port pin.
0 Likes
User16229
Level 1
Level 1
Hello Cwunder,

That's true, but in my case I just want to compare the STM value and accordingly toggle the Port pin. But I am unable to understand the STM tick calculation, I mean to say how to load different tick value so that I can use for generation of different duty cycle.

Thanks in advance
0 Likes