
BL602/604 Reference Manual
PWMn_THRE2[15:0]=0+40000*20%=8000
12.3.3 PWM interrupt
For each PWM channel, you can set the cycle count value. When the number of cycles of the PWM output reaches
this count value, a PWM interrupt will be generated.
Table 12.1: Duty Cycle Parameters
F/MHz
Supported duty cycle (n is an integer, and 2 <= n <= 65535^2)
40
0%
50%
100%
26.67
0%
33.33% 66.67% 100%
20
0%
25%
50%
75%
100%
16
0%
20%
40%
60%
80%
100%
13.33
0%
16.67% 33.33%
50%
66.67% 83.33% 100%
11.43
0%
14.29% 28.57% 42.86% 57.14% 71.43% 85.71% 100%
10
0%
12.50%
25%
37.50%
50%
62.50%
75%
87.50% 100%
8.89
0%
11.11% 22.22% 33.33% 44.44% 55.56% 66.67% 77.78% 88.89% 100%
8
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
·
·
·
80/n
0/n
1/n
2/n
3/n
4/n
5/n
6/n
7/n
8/n
9/n
··
·
n/n
12.4 Register description
Name
Description
PWM interrupt configuration register
PWM0 clock division configuration register
PWM0 first counter threshold configuration register
PWM0 sencond counter threshold configuration register
PWM0 period setting register
PWM0 configuration register
PWM0 interrupt register
BL602/604 Reference Manual
159/ 195
@2020 Bouffalo Lab