Product Specs

Table Of Contents
39 LPCOMP Low power comparator
Page
405
39.3 Registers
Table 93: Instances
Base address
Peripheral
Instance
Description
Configuration
0x40013000
LPCOMP
LPCOMP
Low power comparator
Table 94: Register Overview
Register
Offset
Description
TASKS_START
0x000
Start comparator
TASKS_STOP
0x004
Stop comparator
TASKS_SAMPLE
0x008
Sample comparator value
EVENTS_READY
0x100
LPCOMP is ready and output is valid
EVENTS_DOWN
0x104
Downward crossing
EVENTS_UP
0x108
Upward crossing
EVENTS_CROSS
0x10C
Downward or upward crossing
SHORTS
0x200
Shortcut register
INTENSET
0x304
Enable interrupt
INTENCLR
0x308
Disable interrupt
RESULT
0x400
Compare result
ENABLE
0x500
Enable LPCOMP
PSEL
0x504
Input pin select
REFSEL
0x508
Reference select
EXTREFSEL
0x50C
External reference select
ANADETECT
0x520
Analog detect configuration
HYST
0x538
Comparator hysteresis enable
39.3.1 SHORTS
Address offset: 0x200
Shortcut register
Bit number
Id
Reset 0x00000000
31 30
0 0
29
0
28
0
27
0
26
0
25
0
24
0
23 22 21 20
0 0 0 0
19
0
18
0
17
0
16
0
15
0
14
0
13
0
12
0
11
0
10
0
9
0
8
0
7
0
6
0
5
0
4
E
0
3
D
0
2
C
0
1
B
0
0
A
0
Id RW Field
Value Id
Value
Description
A
RW
READY_SAMPLE
Shortcut between READY event and SAMPLE task
See EVENTS_READY and TASKS_SAMPLE
Disabled
0
Disable shortcut
Enabled
1
Enable shortcut
B
RW
READY_STOP
Shortcut between READY event and STOP task
Disabled
0
See EVENTS_READY and TASKS_STOP
Disable shortcut
Enabled
1
Enable shortcut
C
RW
DOWN_STOP
Shortcut between DOWN event and STOP task
Disabled
0
See EVENTS_DOWN and TASKS_STOP
Disable shortcut
Enabled
1
Enable shortcut
D
RW
UP_STOP
Shortcut between UP event and STOP task
Disabled
0
See EVENTS_UP and TASKS_STOP
Disable shortcut
Enabled
1
Enable shortcut
E
RW
CROSS_STOP
Shortcut between CROSS event and STOP task
See EVENTS_CROSS and TASKS_STOP
Disabled
0
Disable shortcut