GD32W51x User Manual
997
Figure 30-1. HPDF block diagram
APB BUS
IDATA0
IDATA1
IDATA0
IDATA1
Channel0 parallel
input data
Channel1 parallel
input data
Channel multiplexer
Clock
control
Mode
control
Channel1 serial
transcevier input data
Pluse skipper
Clock
control
Mode
control
Channel0 serial
transcevier input data
Pluse skipper
CKIN1 DATAIN1
DATAIN0
CKIN0
CKOUT
EXTRG
[1:0]
Filter order
Oversampling
ratio
Sinc filter1
Oversampling ratio
Intergrator uint1
Oversampling
ratio
Filter order
Sinc filter0
Oversampling ratio
Intergrator uint0
Data1
Clock1
16
Data0
Clock0
16
16
16
Right bit_shift count
Calibration data correction uint
HPDF data0
Right bit_shift count
Calibration data correction uint
HPDF data1
APB BUS
2
threshold monitor
filters
2
threshold monitor
comparators
Filter
config
High threshold
Low threshold
Threshold
monitor 0
Filter
config
High threshold
Low threshold
Threshold
monitor 1
config
status
Maximum value
Minimum value
Extremes
monitor 0
Maximum value
Minimum value
Extremes
monitor 1
1's,0's counter
threshold
Malfunction
monitor 0
1's,0's counter
threshold
Malfunction
monitor 1
Interrupt
break
Interrupt
break
Configuration registers
DMA, Interrupt, Break
control, Clock control
Control unit
Interrupts and events:
1.end of conversion
2.
threshold monitor
3.malfunction monitor
4.overflow
Interrupt
break
Data output
Data output
The HPDF interface communicates with the external Σ-Δ modulator by the pins in
.
Table 30-1. HPDF pins definition
PINs
Type
Description
EXTRG[1:0]
External trigger input
Input pin of external trigger signal source,
the trigger signal sources are EXTI11 and
EXTI15, w hich are used as the trigger
signal of inserted group HPDF_ ITRG[24]
and HPDF_ITRG[25]
。
CKOUT
Clock out
The clock output signal of HPDF module,
provides clock signal to external Σ-Δ
modulator.
CKINx
Clock input
External Σ-Δ modulator provides clock signal
to serial interface.
DATAINx
Data input
The external Σ-Δ modulator transmits 1 bit
data stream to the serial channel by this pin.
30.3.2.
HPDF on-off control
When the HPDF module is started normally, the HPDF module can be enabled globally by
setting HPDFEN to 1 in the HPDF_CH0CTL register. Then set the CHEN bit in
HPDF_CHxCTL and the FLTEN bit in HPDF_FLTyCTL0 to 1 to enable the input channel and