
Mini57
Apr. 06, 2017
Page 283 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
6.9.4.8
PWM-Timer Re-Start Procedure in Single-shot mode
After PWM waveform is generated once in PWM One-shot mode, PWM-Timer will be stopped
automatically. The following procedure is recommended for re-starting PWM single-shot
waveform.
Set comparator register (BPWM_CMPDAT) for setting PWM duty.
Set PWM down-counter register (BPWM_PERIOD) for setting PWM period. After setting
PERIOD, PWM wave will be generated.
6.9.4.9
PWM-Timer Stop Procedure
Method 1:
Set 16-bit counter (PERIOD) as 0, and monitor CNT (current value of 16-bit down-counter). When
CNT reaches to 0, disable PWM-Timer (CNTENx in BPWM_CTL, x= 0 or 1).
(Recommended)
Method 2:
Set 16-bit counter (PERIOD) as 0. When interrupt request happened, disable PWM-Timer
(CNTENx in BPWM_CTL, x= 0 or 1).
(Recommended)
Method 3:
Disable PWM-Timer directly ((CNTENx in BPWM_CTL, x= 0 or 1).
(Not recommended)
The reason why method 3 is not recommended is that disable CNTENx will immediately stop
PWM output signal and lead to change the duty of the PWM output, this may cause damage to
the control circuit of motor
Содержание Mini57 Series
Страница 376: ...Mini57 Apr 06 2017 Page 376 of 475 Rev 1 00 MINI57 SERIES TECHNICAL REFERENCE MANUAL 1 Receive buffer is full ...
Страница 472: ...Mini57 Apr 06 2017 Page 472 of 475 Rev 1 00 MINI57 SERIES TECHNICAL REFERENCE MANUAL 1 3 20 Pin TSSOP 4 4x6 5x0 9 mm ...
Страница 473: ...Mini57 Apr 06 2017 Page 473 of 475 Rev 1 00 MINI57 SERIES TECHNICAL REFERENCE MANUAL 9 1 33 pin QFN33 4x4x0 8 mm ...