![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 180](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794180.webp)
GD32E23x User Manual
180
10.5.11.
Oversampling control register (ADC_OVSAMPCTL)
Address offset: 0x80
Reset value: 0x0000_0000
This register has to be accessed by word(32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
TOVS
OVSS[3:0]
OVSR[2:0]
Reserved OVSEN
rw
rw
rw
rw
Bits
Fields
Descriptions
31:10
Reserved
Must be kept at reset value
9
TOVS
Triggered Oversampling
This bit is set and cleared by software.
0: All oversampling 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:
The software allows this bit to be written only when ADCON = 0 (this ensures
that no conversion is in progress).
8:5
OVSS [3:0]
Oversampling shift
These bits are 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: reserved
Note:
The software allows this bit to be written only when ADCON = 0 (this ensures
that no conversion is in progress).
4:2
OVSR [2:0]
Oversampling ratio
This bit filed defines the number of oversampling ratio.
000: 2x
001: 4x
010: 8x
011: 16x
100: 32x