Implementation
Calculation example
›
Part 1: 64535 increments before first overflow: 65535 -1000 = 64535
(Max value of T3 – counter value at rising edge = total increments)
›
Part 2: 393210 increments between the second and last overflow:
6 * 65535 = 393210 (6 overflows * max value of T3 = total increments)
›
Part 3: 42255 increments after last overflow: 42255 (counter value at rising edge)
›
Total increments between two rising edges: 64535 + 393210 + 42255 = 500000
T3 counter value: 1000
T3 Count
(between 0 and 65535)
PWM Signal (50 Hz)
Period of PWM signal 0.02 s
Interrupt on previous rising edge
2019-10-17
Part 1
7 overflows of timer T3 during one PWM period
Copyright © Infineon Technologies AG 2019. All rights reserved.
T3 counter value: 42255
Part 2
Interrupt on actual rising edge
Part 3
t
t
10
Need help?
Do you have a question about the GPT12 PWM Capture 1 and is the answer not in the manual?
Questions and answers