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

AURIX™ Forum Discussions

Atharva
Level 1
Level 1
First question asked Welcome!

Hi,

I am working on the TC297 Aurix controller and have a query regarding the GTM based TOM module where I would like to generate an interrupt at the TOM PWM raising edge, Is it possible ? If yes could you please give the solution for that.

0 Likes
1 Solution
Prudhvi
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 250 sign-ins

Hello Atharva,

TOM pwm is generated from the comparison between a counter register "CN0" and 2 compare "CM0" and "CM1". Every compare match lead to an output edge.

Please read 28.14.3 TOM Channel of AURIXTC3XX_um_part2_v2.0.pdf.

You can the generate an ISR request for both CCU1 and CCU0 compare match. See 28.14.8.16Register TOM[i]_CH[x]_IRQ_NOTIFY.

Regards,

Prudhvi.

View solution in original post

0 Likes
1 Reply
Prudhvi
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 250 sign-ins

Hello Atharva,

TOM pwm is generated from the comparison between a counter register "CN0" and 2 compare "CM0" and "CM1". Every compare match lead to an output edge.

Please read 28.14.3 TOM Channel of AURIXTC3XX_um_part2_v2.0.pdf.

You can the generate an ISR request for both CCU1 and CCU0 compare match. See 28.14.8.16Register TOM[i]_CH[x]_IRQ_NOTIFY.

Regards,

Prudhvi.

0 Likes