
Mini57
Apr. 06, 2017
Page 276 of 475
Rev.1.00
MINI5
7
S
E
RI
E
S
TECH
NIC
A
L R
E
F
E
RE
N
CE
MA
N
UA
L
HCLK
BPWM_EN(APBCLK[23])
BPWM_CLK
Figure 6.9-1 PWM Clock Source Control
100
000
1
1/2
1/4
1/8
1/16
001
010
011
100
000
1
1/2
1/4
1/8
1/16
001
010
011
8-bit
Prescaler
PWM-
Timer0
Logic
PWM-
Timer1
Logic
1
0
Dead Zone
Generator 0
DTI01(BPWM_CLKPSC[23:16])
DTCNT01
(BPWM_CTL[4])
CMPINV0
(BPWM_CTL[2])
CMPINV1
(BPWM_CTL[10])
PIF0
(BPWM_INTSTS[0])
DIF0
(BPWM_INTSTS[8])
1
1/2
1/4
1/8
1/16
Clock
Divider
PWM20
PWM21
(from clock
controller)
1
0
1
0
1
0
CLKPSC01
(BPWM_CLKPSC[7:0])
1
0
PINV0
(BPWM_CTL[1])
1
0
PINV1
(BPWM_CTL[9])
(BPWM_PERIOD0)
(BPWM_CMPDAT0)
(BPWM_CTL)
(BPWM_PERIOD1)
(BPWM_CMPDAT1)
(BPWM_CTL)
(BPWM_CNT1)
(BPWM_CNT0)
PIEN0
(BPWM_INTEN[0])
DIEN0
(BPWM_INTEN[8])
PIEN1
(BPWM_INTEN[1])
DIEN1
(BPWM_INTEN[9])
PIF1
(BPWM_INTSTS[1])
DIF1
(BPWM_INTSTS[9]
POEN0(BPWM_POEN[0])
POEN1(BPWM_POEN[1])
CLKDIV0
(BPWM_CLKDIV[2:0])
CLKDIV1
(BPWM_CLKDIV[6:4])
Figure 6.9-2 PWM Architecture Diagram
6.9.4
PWM-Timer Operation
The PWM controller supports two operation types: Edge-aligned and Center-aligned type.
6.9.4.1
Edge-aligned PWM (down-counter)
In Edge-aligned PWM Output mode, the 16 bits PWM counter will starts down-counting from
PERIOD (BPWM_PERIOD0-1[15:0] ) to match with the value of the duty cycle CMP
(BPWM_CMPDAT0-1[15:0]), when this happen it will toggle the PWMn generator output to low.
The counter will continue down-counting to 0, at this moment, it toggles the PWMn generator