GD32W51x User Manual
1008
The priority of the inserted group is higher than that of the regular group. The ongoing regular
group conversion will be interrupted by the inserted group conversion request. Wait for the
inserted group to complete the conversion and restart the interrupted regular conversion. At
the same time, only one inserted conversion is in execution or pending state. If an existing
inserted conversion request has not been completed, the new inserted conversion start
request will be ignored.
The conversion time of the inserted group t=CTCNT[27:0] * f
HPDFCLK
.
Conversion start mode
The conversion of the inserted group can be achieved through channel software startup and
trigger startup.
1.
General software startup: write 1 to the SICC bit in HPDF_FLTyCTL0 register.
2.
Software synchronous startup: Set the ICSYN bit in HPDF_FLTyCTL0 register to start
synchronously. When using general software to start the inserted group conversion of
HPDF_FLT0, the channel 1 that enables the synchronous start function also starts the
inserted conversion.
3.
Trigger startup: When the ICTSSEL[4:0] bit field in the HPDF_FLTyCTL0 register is
written with a value other than 0, it indicates that trigger start is enabled and trigger signal
source is selected at the same time. The effective edge of the trigger is determined by
the ICTEEN[1:0] bit field.
The trigger signals of the inserted group are shown in the following table:
Table 30-4. Trigger signal of inserted group
Trigger signal
Type
Signal source
HPDF_ITRG0
internal signal
TIMER1_TRGO
HPDF_ITRG1
internal signal
TIMER2_TRGO
HPDF_ITRG2
internal signal
TIMER3_TRGO
HPDF_ITRG3
internal signal
TIMER4_TRGO
HPDF_ITRG[4~23]
reserve
reserve
HPDF_ITRG24
external signal
EXTI11
HPDF_ITRG25
external signal
EXTI15
HPDF_ITRG26
external signal
TIMER5_TRGO
HPDF_ITRG[27~31]
reserve
reserve
Scan conversion mode
By setting the SCMOD bit in HPDF_FLTyCTL0 register, the scan conversion mode for
inserted group conversion can be enabled. In the scan mode, when the inserted group
conversion is triggered, all channels in the inserted group will be converted sequentially
starting from the lowest channel.
If the scan mode is disabled, each time the inserted group conversion is triggered, only one