User manual
...the world's most energy friendly microcontrollers
2012-04-24 - Giant Gecko Family - d0053_Rev0.96 666
www.energymicro.com
26.4 Register Map
The offset register address is relative to the registers base address.
Offset Name Type Description
0x000 ACMPn_CTRL RW Control Register
0x004 ACMPn_INPUTSEL RW Input Selection Register
0x008 ACMPn_STATUS R Status Register
0x00C ACMPn_IEN RW Interrupt Enable Register
0x010 ACMPn_IF R Interrupt Flag Register
0x014 ACMPn_IFS W1 Interrupt Flag Set Register
0x018 ACMPn_IFC W1 Interrupt Flag Clear Register
0x01C ACMPn_ROUTE RW I/O Routing Register
26.5 Register Description
26.5.1 ACMPn_CTRL - Control Register
Offset Bit Position
0x000
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
1
0x7
0
0
0x0
0x0
0
0
0
0
Access
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
Name
FULLBIAS
HALFBIAS
BIASPROG
IFALL
IRISE
WARMTIME
HYSTSEL
GPIOINV
INACTVAL
MUXEN
EN
Bit Name Reset Access Description
31 FULLBIAS 0 RW Full Bias Current
Set this bit to 1 for full bias current in accordance with. Table 26.1 (p. 663) .
30 HALFBIAS 1 RW Half Bias Current
Set this bit to 1 to halve the bias current in accordance with. Table 26.1 (p. 663) .
29:28 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
27:24 BIASPROG 0x7 RW Bias Configuration
These bits control the bias current level in accordance with. Table 26.1 (p. 663) .
23:18 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
17 IFALL 0 RW Falling Edge Interrupt Sense
Set this bit to 1 to set the EDGE interrupt flag on falling edges of comparator output.
Value Mode Description
0 DISABLED Interrupt flag is not set on falling edges
1 ENABLED Interrupt flag is set on falling edges
16 IRISE 0 RW Rising Edge Interrupt Sense
Set this bit to 1 to set the EDGE interrupt flag on rising edges of comparator output.
Value Mode Description
0 DISABLED Interrupt flag is not set on rising edges
1 ENABLED Interrupt flag is set on rising edges
15:11 Reserved
To ensure compatibility with future devices, always write bits to 0. More information in Section 2.1 (p. 3)
10:8 WARMTIME 0x0 RW Warm-up Time
Set analog comparator warm-up time.