GD32W51x User Manual
1011
characteristics in both cases are as follows:
Table 30-7. Features of threshold monitor working mode
Mode
Enable Bit
Channel Data
Source
Analog Input
Data Source
Input Data
Resolution
Detailed Description
Standard
mode
TMFM=0
Serial data
stream,
Parallel data
HPDF final
data output
24bit
The threshold monitor
monitors the final data
output after the channel
conversion.
Slow response time, not
suitable for
overcurrent/overvoltage
detection
Fast mode
TMFM=1
Serial data
stream
Serial data
stream
16bit
The input data is provided
in continuous mode, and
the threshold monitor
directly monitors the serial
input data, regardless of
rules or injection
conversion.
Fast response time,
suitable for
overcurrent/overvoltage
detection.
In fast mode, the threshold monitor uses only the upper 16 bits of the threshold (maximum
threshold HTVAL[23:0] or minimum threshold LTVAL[23:0]) to compare with the serial input
data of the channel, that is, only the upper 16 bits of HTVAL[23:0] and LTVAL[23:0] define the
threshold, because the resolution of the threshold monitor filter is 16 bits.
In non-fast mode of threshold monitor, the final data of right shift and offset calibration will be
compared with HTVAL[23:0] and LTVAL[23:0].
Threshold monitor fast mode
In fast mode, the filter of the threshold monitor will be used, and the oversampling rate
(decimation rate) and order of the threshold monitor filter can be set in HPDF_CHxCFG1
register.
The configuration of the threshold monitor is flexible. An threshold monitor can be configured
to monitor multiple channels by the TMCHEN[1:0] bit field in HPDF_FLTyCTL1 register. In this
case, when multiple channels send out requests, the threshold monitor will preferentially
process requests with small channel numbers, and then process requests with large channel
numbers. Each threshold monitor has a status register HPDF_FLTyTMSTAT. When the
monitored channel exceeds the threshold, the corresponding flag in the HTF[1:0] or LTF[1:0]
bit field will be set. If HTF[0]=2b
’
01, it means that channel 0 occured an event that exceeds