...the world's most energy friendly microcontrollers
2014-07-02 - Tiny Gecko Family - d0034_Rev1.20
382
www.silabs.com
Figure 22.3. Capacitive Sensing Set-up
V
DD
/ 4
V
DD_SCALED
But t ons
POSSEL
22.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 comparator output is also available as a PRS signal.
22.3.7 Output to GPIO
The output from the comparator is available as alternate function 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.
Summary of Contents for EFM32TG
Page 543: ......