![Nuvoton NuMicro MS51 Series Скачать руководство пользователя страница 288](http://html1.mh-extra.com/html/nuvoton/numicro-ms51-series/numicro-ms51-series_technical-reference-manual_1720304288.webp)
MS51
Dec. 17, 2019
Page
288
of 316
Rev 1.01
M
S51
SE
RIES
TE
CHNICA
L REF
ERE
N
CE MA
NU
A
L
PG0
PG1
PG0_DT
PG1_DT
Figure 6.11-5 PWM Complementary Mode with Dead-time Insertion
Synchronous Mode
6.11.3.3
Synchronous mode is enabled when PWMMOD[1:0] = [1:0]. In this mode, PG0/2/4 output PWM
signals the same as the independent mode. PG1/3/5 output just the same in-phase PWM signals of
PG02/4 correspondingly.
6.11.4
Mask Output Control
Each PWM signal can be software masked by driving a specified level of PWM signal. The PWM
mask output function is quite useful when controlling Electrical Commutation Motor like a BLDC.
PWMnMEN contains six bits, those determine which channel of PWM signal will be masked.
PWMnMD set the individual mask level of each PWM channel. The default value of PWMnMEN is
00H, which makes all outputs of PWM channels follow signals from PWM generator. Note that the
masked level is reversed or not by PWM0NP setting on PWM output pins.
6.11.5
Fault Brake
The Fault Brake function is usually implemented in conjunction with an enhanced PWM circuit. It rules
as a fault detection input to protect the motor system from damage. Fault Brake pin input (FB) is valid
when FBINEN (PWMnCON1.3) is set. When Fault Brake is asserted PWM signals will be individually
overwritten by PWMnFBD corresponding bits. PWMRUN (PWMnCON0.7) will also be automatically
cleared by hardware to stop PWM generating. The PWM 16-bit counter will also be reset as 0000H. A
indicating flag FBF will be set by hardware to assert a Fault Brake interrupt if enabled. PWMnFBD
data output remains even after the FBF is cleared by software. User should resume the PWM output
only by setting PWMRUN again. Meanwhile the Fault Brake state will be released and PWM waveform
outputs on pins as usual. Fault Brake input has a polarity selection by FBINLS (PWMnFBD.6) bit. Note
that the Fault Brake signal feed in FB pin should be longer than eight-system-clock time for FB pin
input has a permanent 8/F
SYS
de-bouncing, which avoids fake Fault Brake event by input noise. The
other path to trigger a Fault Brake event is the ADC compare event. It asserts the Fault Brake
behavior just the same as FB pin input. See Sector 6.12.3
“ADC Conversion Result Comparator”.
FBINEN
FBn
ADC comparator
ADC compare event
Fault Brake event
De-bounce
0
1
FBINLS
FBF
Fault Brake interrupt
Figure 6.11-6 Fault Brake Function Block Diagram
6.11.6 Polarity Control
Each PWM output channel has its independent polarity control bit, PNP0~PNP5. The default is high