Implementation
Calculation example
The FXU clock 0 frequency (f
fxclk0
) is 100 MHz. The period value to have the desired
PWM frequency (f
PWM
) is calculated with the following formula:
𝑃𝑒𝑟𝑖𝑜𝑑 =
𝑓
𝑓𝑥𝑐𝑙𝑘0
𝑓
𝑃𝑊𝑀
In this example:
𝑃𝑒𝑟𝑖𝑜𝑑 =
100 𝑀𝐻𝑧
2 𝑘𝐻𝑧
= 50000 𝑡𝑖𝑐𝑘𝑠
t
t
PWM signal
Period of PWM
CMU clock 0
Frequency of the
clock
Duty cycle of the PWM
7
2020-02-11
Copyright © Infineon Technologies AG 2020. All rights reserved.