TIM and TOM PWM compare

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

cross mob
Not applicable
Hello!

Background:
Cpu: TC234
One PWM signal in to TIM
One PWM signal out from TOM.

Problem:
I would like to compare the output with the input, as the input is a feedback signal.
Is it possible to use the GTM in some way to do this?
And maybe get an interrupt if they start to differ to much?

The only solution I can think of is using SW to compare the counters, but it will increase my CPU load quite much...
So it would be better if the HW could do it for me 🙂
0 Likes
4 Replies