13.4.3 ADC0AC: ADC0 Accumulator Configuration
Bit
7
6
5
4
3
2
1
0
Name
Reserved
ADAE
ADSJST
ADRPT
Access
RW
RW
RW
RW
Reset
0
0
0x0
0x0
SFR Page = 0x0; SFR Address: 0xBA
Bit
Name
Reset
Access
Description
7
Reserved
Must write reset value.
6
ADAE
0
RW
Accumulate Enable.
Enables multiple conversions to be accumulated when burst mode is disabled.
Value
Name
Description
0
ACC_DISABLED
ADC0H:ADC0L contain the result of the latest conversion when Burst Mode is
disabled.
1
ACC_ENABLED
ADC0H:ADC0L contain the accumulated conversion results when Burst Mode is
disabled. Firmware must write 0x0000 to ADC0H:ADC0L to clear the accumula-
ted result.
5:3
ADSJST
0x0
RW
Accumulator Shift and Justify.
Specifies the format of data read from ADC0H:ADC0L. All remaining bit combinations are reserved.
Value
Name
Description
0x0
RIGHT_NO_SHIFT
Right justified. No shifting applied.
0x1
RIGHT_SHIFT_1
Right justified. Shifted right by 1 bit.
0x2
RIGHT_SHIFT_2
Right justified. Shifted right by 2 bits.
0x3
RIGHT_SHIFT_3
Right justified. Shifted right by 3 bits.
0x4
LEFT_NO_SHIFT
Left justified. No shifting applied.
2:0
ADRPT
0x0
RW
Repeat Count.
Selects the number of conversions to perform and accumulate in Burst Mode. This bit field must be set to 000 if Burst Mode
is disabled.
Value
Name
Description
0x0
ACC_1
Perform and Accumulate 1 conversion.
0x1
ACC_4
Perform and Accumulate 4 conversions.
0x2
ACC_8
Perform and Accumulate 8 conversions.
0x3
ACC_16
Perform and Accumulate 16 conversions.
0x4
ACC_32
Perform and Accumulate 32 conversions.
0x5
ACC_64
Perform and Accumulate 64 conversions.
EFM8SB2 Reference Manual
Analog-to-Digital Converter (ADC0)
silabs.com
| Smart. Connected. Energy-friendly.
Rev. 0.1 | 139