Implementation
Period calculation example
›
Part 1: 64534 increments before the first overflow: 65534 - 1000 = 64534
(Maximum value of T12 - counter value at rising edge = total increments)
›
Part 2: 262136 increments between the first and last overflow:
4 * 65534 = 262136 (4 overflows * maximum value of T12 = total increments)
›
Part 3: 63955 increments after the last overflow: 63955 (counter value at rising edge)
›
Total increments between two rising edges: 64534 + 262136 + 63955 = 390625
(between 0 and 65534)
Period of PWM signal 0.5 s
Interrupt on previous rising edge
2020-01-17
T12 counter value: 1000
T12 count
PWM signal (2 Hz)
Copyright © Infineon Technologies AG 2020. All rights reserved.
Part 1
Part 2
5 overflows of timer T12 during one
PWM period
Interrupt on current rising edge
T12 counter value: 63955
Part 3
t
t
12
Need help?
Do you have a question about the CCU6 PWM Capture 1 and is the answer not in the manual?
Questions and answers