GTM TIM questions

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

cross mob
User20622
Level 2
Level 2
5 replies posted First solution authored First reply posted
All:
If I want to measure two different ranges of PWM inputs, is this how?

I would set up CMU_CLK0 for 100 MHz (default highest frequency of GTM).
I would then set up CMU_CLK1 for 12.5 MHz (100 / 8).

I could route higher frequencies to use CMU_CLK0 and lower frequencies to use CMU_CLK1.

1. Could I have a shared input pin used by both high and low frequency measurements? (I do not think so, but need to ask.)
2. Could I change the value of the TIM clock selector after initialization so that I could measure low frequency or high frequency?

Regards,
Todd Anderson
0 Likes
1 Solution
User20622
Level 2
Level 2
5 replies posted First solution authored First reply posted
After careful reading of GTM section, I can have a shared input pin for two different TIM - for instance, Port2, Bit0 (TIN0) can be used by TIM0_0 and by TIM1_0.
And TIM0 can be set up as clock selector 0 - with divisor of 1, and TIM1 can be set up with different clock divisor.

Regards,
Todd Anderson

View solution in original post

0 Likes
2 Replies
User20622
Level 2
Level 2
5 replies posted First solution authored First reply posted
Is there someone from Infineon that can respond to my questions?

Regards,
Todd Anderson
0 Likes
User20622
Level 2
Level 2
5 replies posted First solution authored First reply posted
After careful reading of GTM section, I can have a shared input pin for two different TIM - for instance, Port2, Bit0 (TIN0) can be used by TIM0_0 and by TIM1_0.
And TIM0 can be set up as clock selector 0 - with divisor of 1, and TIM1 can be set up with different clock divisor.

Regards,
Todd Anderson
0 Likes