GD32W51x User Manual
1007
The regular group selects only one of the two channels, which is determined by the RCS bit
in the HPDF_FLTyCTL0 register. At the same time, only one regular conversion can be
executed or pending. If an existing regular conversion request has not been completed, the
new regular conversion start request is ignored. The priority of regular conversion is lower
than that of inserted group conversion and can be interrupted by inserted group conversion
request.
The conversion time of regular group: t = CTCNT[27:0] *
f
HPDFCLK
.
Conversion start mode
Regular group conversion can only be achieved by software startup. There are two modes of
software startup, the specific methods are as follows:
1.
General software startup: write 1 to SRCs bit in HPDF_FLTyCTL0 register.
2.
Software synchronous start: Set the RCSYN bit in HPDF_FLTyCTL0 register and start
the regular conversion of HPDF_FLT0 by general software startup. Then HPDF_FLTy
also starts the regular conversion synchronously.
Conversion mode
Regular group transformation supports continuous mode and fast mode.
Continuous mode
Set the RCCM bit to 1 in HPDF_FLTyCTL0 register to enable continuous mode. In continuous
mode, after the software starts the regular group conversion, the conversion regular group
channel conversion is repeated. When the RCCM bit is cleared, the regular conversion in
continuous mode stops immediately.
Fast mode
Enable fast mode by setting FAST bit to 1 in HPDF_FLTyCTL0. In fast mode, it can improve
the data rate in continuous mode. Because in continuous mode, if the data is continuously
converted from one channel, there is no need to fill the filter with new data, because the data
in the filter is valid data sampled from the previous continuous mode. The increase in data
rate is determined by the order of the selected filter.
After the continuous conversion is started, the time for the first conversion of the fast mode to
the non open fast mode is the same, and then the subsequent conversion will be completed
at a shorter time interval.
30.3.7.
Inserted group conversion
The conversion channel of the inserted group must select at least one of the two channels.
You can select which channel to convert into the inserted group by the ICGSEL[1:0] bit field
in the HPDF_FLTyICGS register. ICGSEL[y]=1 means channel x is the inserted group channel.