AT32F425
Series Reference Manual
2022.03.30
Page 318
Ver 2.01
18.5.15 ADC oversampling register (ADC_ OVSP)
Accessed by words.
Bit
Register
Reset value
Type
Description
Bit 31: 11 Reserved
0x0000
resd
Kept at its default value.
Bit 10
OOSRSEL
0x0
rw
Ordinary oversampling restart mode select
When the ordinary oversampling is interrupted by
preempte conversions, this bit can be used to select where
to resume ordinary conversions.
0: Continuous mode (ordinary oversampling buffer will be
reserved)
1: Restart mode (ordinary oversampling buffer will be
cleared, that is, the previously oversampled times are
reset)
Bit 9
OOSTREN
0x0
rw
Ordinary oversampling trigger mode enable
0: Disabled (only one trigger is needed for all oversampling
conversions)
1: Enabled (Each oversampling conversion needs a
trigger)
Bit 8: 5
OSSSEL
0x0
rw
Oversampling shift select
This field is used to define the number of right-shift used in
the oversampling results.
0000: No shfit
0001: 1 bit
0010: 2 bits
0011: 3 bits
0100: 4 bits
0101: 5 bits
0110: 6 bits
0111: 7 bits
1000: 8 bits
1001~1111: Unused. Do not configure.
Bit 4: 2
OSRSEL
0x0
rw
Oversampling ratio select
000: 2x
001: 4x
010: 8x
011: 16x
100: 32x
101: 64x
110: 128x
111: 256x
Bit 1
POSEN
0x0
rw
Preempted oversampling enable
0: Preempted oversampling disabled
1: Preempted oversampling enabled
Bit 0
OOSEN
0x0
rw
Ordinary oversampling enable
0
:
Ordinary oversampling disabled
1: Ordinary oversampling enabled