GD32W51x User Manual
1010
30.3.9.
Integrator
The integrator performs further oversampling rate (decimation rate) and resolution
improvement on the data from the digital filter. The integrator performs a simple summation
operation on a given number of data samples from the filter. The output data of the integrator
comes from the sum of the output samples of the filter, and the number of output samples is
determined by the oversampling rate of the integration. The oversampling rate (decimation
filtering) of the integrator can be configured by IOR[7:0] in HPDF_FLTySFCFG register. The
relationship between the maximum output resolution, oversampling rate, and Sinc filter order
of the integrator is as follows:
Table 30-6. Relationship between the maximum output resolution and IOR, SFOR, SFO
of the integrator
Filter type
Integrator m axim um output resolution
Sinc
±
(SFOR×IOR)
Sinc
2
±
(SFOR
2
×IOR)
FastSinc
±
(2SFOR
2
×IOR)
Sinc
3
±
(SFOR
3
×IOR)
Sinc
4
±
(SFOR
4
×IOR)
Sinc
5
±
(SFOR
5
×IOR)
30.3.10.
Threshold monitor
The threshold monitor
of the HPDF module is used to monitor the serial input data of the
channel or the final output data after the channel conversion. When the data reaches the
threshold set by the threshold monitor (maximum or minimum threshold), an interrupt or break
event will be generated. The maximum threshold is determined by the HTVAL[23:0] bits in
HPDF_FLTyTMHT register, and the minimum threshold is determined by the LTVAL[23:0] bits
in HPDF_FLTyTMLT register.
The HPDF module has two threshold monitor. By configuring the TMCHEN[1:0] bit field in
HPDF_FLTyCTL1 register, it determines whether the analog threshold monitor x monitors the
input channel. For example, TMCHEN[1]=1 in HPDF_FLT0CTL1 register means threshold
monitor 0 monitors channel 1.
Threshold monitor working mode
The working mode of the threshold monitor is divided into standard mode and fast mode. Fast
mode is to configure the serial input data of the threshold monitor monitoring channel and
compare it with the threshold. Standard mode is to configure the final data output after the
threshold monitor monitor channel conversion (stored in the inserted group data register
HPDF_FLTyIDATA or the regular group data register HPDF_FLTyRDATA). The fast mode of
the threshold monitor can be enabled by the TMFM bit in HPDF_FLTyCTL0. The