![Silicon Laboratories EFR32xG14 Wireless Gecko Скачать руководство пользователя страница 865](http://html1.mh-extra.com/html/silicon-laboratories/efr32xg14-wireless-gecko/efr32xg14-wireless-gecko_reference-manual_1271728865.webp)
26.3.10.6 Oversampling
To achieve higher accuracy, hardware oversampling can be enabled individually for each mode (Set RES in ADCn_SINGLECTRL/
ADCn_SCANCTRL to 0x3). The oversampling rate (OVSRSEL in ADCn_CTRL) can be set to any integer power of 2 from 2 to 4096
and the configuration is shared between the scan and single channel mode (OVSRSEL field in ADCn_CTRL).
With oversampling, each input is sampled at 12-bits of resolution a number of times (given by OVSRSEL), and the results are filtered by
a first order accumulate and dump filter to form the end result. The data presented in the ADCn_SINGLEDATA and ADCn_SCANDATA
registers are the direct contents of the accumulation register (sum of samples). However, if the oversampling ratio is set higher than
16x, the accumulated results are shifted to fit the MSB in bit 15 as shown in
Table 26.4 Oversampling Result Shifting and Resolution on
.
Table 26.4. Oversampling Result Shifting and Resolution
Oversampling setting
# right shifts
Result Resolution # bits
2x
0
13
4x
0
14
8x
0
15
16x
0
16
32x
1
16
64x
2
16
128x
3
16
256x
4
16
512x
5
16
1024x
6
16
2048x
7
16
4096x
8
16
26.3.10.7 Adjustment
By default, all results are right adjusted, with the LSB of the result in bit position 0 (zero). In differential mode the signed bit is extended
up to bit 31, but in single ended mode the bits above the result are read as 0. By setting ADJ in ADCn_SINGLECTRL/
ADCn_SCANCTRL, the results are left adjusted as shown in
Table 26.5 ADC Results Representation on page 865
. When left adjus-
ted, the MSB is always placed on bit 15 and sign extended to bit 31. All bits below the conversion result are read as 0 (zero).
Table 26.5. ADC Results Representation
Adjustment
Resolution
Bits
31 ... 16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Right
12
11 ... 11
11
11
11
11
11
10
9
8
7
6
5
4
3
2
1
0
8
7 ... 7
7
7
7
7
7
7
7
7
7
6
5
4
3
2
1
0
6
5 ... 5
5
5
5
5
5
5
5
5
5
5
5
4
3
2
1
0
OVS
15 ... 15
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Left
12
11 ... 11
11
10
9
8
7
6
5
4
3
2
1
0
-
-
-
-
8
7 ... 7
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
-
6
5 ... 5
5
4
3
2
1
0
-
-
-
-
-
-
-
-
-
-
OVS
15 ... 15
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reference Manual
ADC - Analog to Digital Converter
silabs.com
| Building a more connected world.
Rev. 1.1 | 865