GD32VF103 User Manual
186
11.8.15. Oversample control register (ADC_OVSAMPCTL)
Address offset: 0x80
Reset value: 0x0000_0000
This register has to be accessed by word(32-bit)
Must be kept at reset value.
00: 12bit;
01: 10bit;
10: 8bit;
11: 6bit
Must be kept at reset value
This bit is set and cleared by software.
0: All oversampled conversions for a channel are done consecutively after a trigger
1: Each conversion needs a trigger for a oversampled channel and the number of
triggers is determined by the oversampling ratio(OVSR[2:0]).
Note: Software is allowed to write this bit only when ADCON=0 (which ensures that
no conversion is ongoing).
This bit is set and cleared by software.
0000: No shift
0001: Shift 1-bit
0010: Shift 2-bits
0011: Shift 3-bits
0100: Shift 4-bits
0101: Shift 5-bits
0110: Shift 6-bits
0111: Shift 7-bits
1000: Shift 8-bits
Other codes reserved
Note: Software is allowed to write this bit only when ADCON =0 (which ensures that