User Manual

Apollo3 Blue Datasheet
DS-A3-0p9p1 Page 617 of 909 2019 Ambiq Micro, Inc.
All rights reserved.
28 TMRB4POL 0x0 RW
Counter/Timer B4 output polarity.
NORMAL = 0x0 - The polarity of the TMRPINB4 pin is the same as the timer
output.
INVERTED = 0x1 - The polarity of the TMRPINB4 pin is the inverse of the
timer output.
27 TMRB4CLR 0x0 RW
Counter/Timer B4 Clear bit.
RUN = 0x0 - Allow counter/timer B4 to run
CLEAR = 0x1 - Holds counter/timer B4 at 0x0000.
26 TMRB4IE1 0x0 RW
Counter/Timer B4 Interrupt Enable bit for COMPR1.
DIS = 0x0 - Disable counter/timer B4 from generating an interrupt based on
COMPR1.
EN = 0x1 - Enable counter/timer B4 to generate an interrupt based on COM-
PR1.
25 TMRB4IE0 0x0 RW
Counter/Timer B4 Interrupt Enable bit for COMPR0.
DIS = 0x0 - Disable counter/timer B4 from generating an interrupt based on
COMPR0.
EN = 0x1 - Enable counter/timer B4 to generate an interrupt based on COM-
PR0
24:22 TMRB4FN 0x0 RW
Counter/Timer B4 Function Select.
SINGLECOUNT = 0x0 - Single count (output toggles and sticks). Count to
CMPR0B4, stop.
REPEATEDCOUNT = 0x1 - Repeated count (periodic 1-clock-cycle-wide
pulses). Count to CMPR0B4, restart.
PULSE_ONCE = 0x2 - Pulse once (aka one-shot). Count to CMPR0B4,
assert, count to CMPR1B4, deassert, stop.
PULSE_CONT = 0x3 - Pulse continously. Count to CMPR0B4, assert,
count to CMPR1B4, deassert, restart.
SINGLEPATTERN = 0x4 - Single pattern.
REPEATPATTERN = 0x5 - Repeated pattern.
CONTINUOUS = 0x6 - Continuous run (aka Free Run). Count continuously.
ALTPWN = 0x7 - Alternate PWM
Table 884: CTRL4 Register Bits
Bit Name Reset RW Description