User Manual

Apollo3 Blue Datasheet
DS-A3-0p9p1 Page 601 of 909 2019 Ambiq Micro, Inc.
All rights reserved.
12 TMRA2POL 0x0 RW
Counter/Timer A2 output polarity.
NORMAL = 0x0 - The polarity of the TMRPINA2 pin is the same as the timer
output.
INVERTED = 0x1 - The polarity of the TMRPINA2 pin is the inverse of the
timer output.
11 TMRA2CLR 0x0 RW
Counter/Timer A2 Clear bit.
RUN = 0x0 - Allow counter/timer A2 to run
CLEAR = 0x1 - Holds counter/timer A2 at 0x0000.
10 TMRA2IE1 0x0 RW
Counter/Timer A2 Interrupt Enable bit based on COMPR1.
DIS = 0x0 - Disable counter/timer A2 from generating an interrupt based on
COMPR1.
EN = 0x1 - Enable counter/timer A2 to generate an interrupt based on COM-
PR1.
9TMRA2IE0 0x0RW
Counter/Timer A2 Interrupt Enable bit based on COMPR0.
DIS = 0x0 - Disable counter/timer A2 from generating an interrupt based on
COMPR0.
EN = 0x1 - Enable counter/timer A2 to generate an interrupt based on COM-
PR0.
8:6 TMRA2FN 0x0 RW
Counter/Timer A2 Function Select.
SINGLECOUNT = 0x0 - Single count (output toggles and sticks). Count to
CMPR0A2, stop.
REPEATEDCOUNT = 0x1 - Repeated count (periodic 1-clock-cycle-wide
pulses). Count to CMPR0A2, restart.
PULSE_ONCE = 0x2 - Pulse once (aka one-shot). Count to CMPR0A2,
assert, count to CMPR1A2, deassert, stop.
PULSE_CONT = 0x3 - Pulse continously. Count to CMPR0A2, assert,
count to CMPR1A2, deassert, restart.
SINGLEPATTERN = 0x4 - Single pattern.
REPEATPATTERN = 0x5 - Repeated pattern.
CONTINUOUS = 0x6 - Continuous run (aka Free Run). Count continuously.
ALTPWN = 0x7 - Alternate PWM
Table 856: CTRL2 Register Bits
Bit Name Reset RW Description