User manual
...the world's most energy friendly microcontrollers
2012-04-24 - Giant Gecko Family - d0053_Rev0.96 692
www.energymicro.com
Bit Name Reset Access Description
Value Mode Description
9 X1024 1024 samples for each conversion result
10 X2048 2048 samples for each conversion result
11 X4096 4096 samples for each conversion result
23:21 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
20:16 TIMEBASE 0x1F RW Time Base
Set time base used for ADC warm up sequence according to the HFPERCLK frequency. The time base is defined as a number of
HFPERCLK cycles which should be set equal to or higher than 1us.
Value Description
TIMEBASE ADC warm-up is set to TIMEBASE+1 HFPERCLK clock cycles and bandgap
warm-up is set to 5x(TIMEBASE+1) HFPERCLK cycles.
15 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
14:8 PRESC 0x00 RW Prescaler Setting
Select clock division factor.
Value Description
PRESC Clock division factor of PRESC+1.
7:6 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
5:4 LPFMODE 0x0 RW Low Pass Filter Mode
These bits control the filtering of the ADC input. Details on the filter characteristics can be found in the device datasheets.
Value Mode Description
0 BYPASS No filter or decoupling capacitor
1 DECAP On chip decoupling capacitor selected
2 RCFILT On chip RC filter selected
3 TAILGATE 0 RW Conversion Tailgating
Enable/disable conversion tailgating.
Value Description
0 Scan sequence has priority, but can be delayed by ongoing single samples.
1 Scan sequence has priority and single samples will only start immediately after scan sequence.
2 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
1:0 WARMUPMODE 0x0 RW Warm-up Mode
Select Warm-up Mode for ADC
Value Mode Description
0 NORMAL ADC is shut down after each conversion
1 FASTBG Bandgap references do not need warm up, but have reduced accuracy.
2 KEEPSCANREFWARM Reference selected for scan mode is kept warm.
3 KEEPADCWARM ADC is kept warmed up and scan reference is kept warm
28.5.2 ADCn_CMD - Command Register
Offset Bit Position
0x004
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reset
0
0
0
0
Access
W1
W1
W1
W1
Name
SCANSTOP
SCANSTART
SINGLESTOP
SINGLESTART