GD32W51x User Manual
1006
channel filter must perform an input sampling to clear the HPDF_CHxPDI register.
2.
Interleaving mode (DPM[1:0] = 2
’
b01):
In this mode, the CPU/DMA is configured as a 32-bit access mode, and the data is stored
in the DATAIN0[15:0] bit domain of the lower 16 bits and the DATAIN1[15:0] bit domain
of the higher 16 bits. When writing 32-bit data once, the channel filter must perform two
input samples to clear the HPDF_CHxPDI register. The channel filter samples the
DATAIN0[15:0] bit domain for the first time and the DATAIN1[15:0] bit domain for the
second time.
3.
Dual channel mode (DPM[1:0] = 2
’
b10):
In this mode, the CPU/DMA is configured as a 32-bit access mode, and the data is stored
in the DATAIN0[15:0] bit domain of the lower 16 bits and the DATAIN1[15:0] bit domain
of the higher 16 bits. The data in the DATAIN0[15:0] bit field is used for the current
channel x, and the data in the DATAIN1[15:0] bit field is automatically copied to the lower
16 bits of the parallel data input register of the channel x+1, and the data is used for the
channel x+1. CPU/DMA writes data once, digital filter performs two sampling, the first is
channel x sampling, the second is channel x+1 sampling.
In HPDF module, only even channel (channel0) supports dual channel mode. If odd channel
(channel1) is configured as dual channel mode, the parallel data input register
HPDF_CHxPDI of this channel is write protected. If channel x is even and configured as dual
channel mode, odd channel x+1 must be configured as standard mode.
The operation mode of HPDF_CHxPDI register is as follows:
Table 30-3. Parallel data packed mode
Channel
Packed m ode
Standard m ode
Interleaving m ode
Dual channel m ode
DATAIN1
DATAIN0
DATAIN1
DATAIN0
DATAIN1
DATAIN0
Channel0 Write protect CH0 sampling
CH0 second
sampling
CH0 first
sampling
CH1 sampling CH0 sampling
Channel1 Write protect CH1 sampling
CH1 second
sampling
CH1 first
sampling
Write protect
Write protect
CPU/DMA should write to HPDF_CHxPDI register after the channel is enabled, because after
the channel is enabled, the channel conversion will be started, and the data in HPDF_CHxPDI
register will be discarded before the channel conversion is started.
30.3.6.
Regular group conversion
HPDF module has two multiplexing channels, which can be used for regular group conversion
or inserted group conversion respectively. If the channel is disabled (CHEN = 0), enabling the
channel conversion will cause the channel to remain in the conversion state. The channel can
be restored only by enabling the channel (CHEN=1) or disabling the HPDF module
(HPDFEN=0).