
ML51/ML54/ML56
Sep. 01, 2020
Page
452
of 719
Rev 2.00
ML
51
/ML
54
/ML
5
6 S
E
RI
E
S
TECHNI
CA
L
RE
F
E
R
E
NC
E
M
A
NU
A
L
ML51/M
L54
/M
L56
Series
Tec
hnical Reference
Manual
PWMnMD
– PWM Mask Data
Register
SFR Address
Reset Value
PWM0MD
FCH, Page 1
0000_0000 b
PWM1MD
8CH, Page 2
0000_0000 b
PWM2MD
BCH, Page 2
0000_0000 b
PWM3MD
CCH, Page 2
0000_0000 b
7
6
5
4
3
2
1
0
-
-
PMD5
PMD4
PMD3
PMD2
PMD1
PMD0
-
-
R/W
R/W
R/W
R/W
R/W
R/W
Bit
Name
Description
[7:6]
0
Reserved
The bits are always read as 0.
[5:0]
PMDx
PWMnCx Mask Data
The PWMnCx signal outputs mask data once its corresponding PMENx is set.
0 = PWMnCx signal is masked by 0.
1 = PWMnCx signal is masked by 1.
Note:
PMD2~5 are only for PWM0.
Fault Brake
6.8.4.7
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.13.3.3
“ADC Conversion Result Comparator”
.