User manual

...the world's most energy friendly microcontrollers
2012-04-24 - Giant Gecko Family - d0053_Rev0.96 665
www.energymicro.com
Figure 26.3. Capacitive Sensing Set-up
V
DD
/4
V
DD_SCALED
Buttons
POSSEL
26.3.6 Interrupts and PRS Output
The analog comparator includes an edge triggered interrupt flag (EDGE in ACMPn_IF). If either IRISE
and/or IFALL in ACMPn_CTRL is set, the EDGE interrupt flag will be set on rising and/or falling edge
of the comparator output respectively. An interrupt request will be sent if the EDGE interrupt flag in
ACMPn_IF is set and enabled through the EDGE bit in ACMPn_IEN. The edge interrupt can also be
used to wake up the device from EM3-EM1.
The analog comparator also includes an interrupt flag, WARMUP in ACMPn_IF, which is set when
a warm-up sequence has finished. An interrupt request will be sent if the WARMUP interrupt flag in
ACMPn_IF is set and enabled through the WARMUP bit in ACMPn_IEN.
The synchronized comparator outputs are also available as a PRS output signals.
26.3.7 Output to GPIO
The output from the comparator and the capacitive sense output are available as alternate functions to
the GPIO pins. Set the ACMPPEN bit in ACMPn_ROUTE to enable output to pin, and the LOCATION
bits to select output location. The GPIO-pin must also be set as output. The output to the GPIO can be
inverted by setting the GPIOINV bit in ACMPn_CTRL.