User Manual

Apollo3 Blue Datasheet
DS-A3-0p9p1 Page 8 of 909 2019 Ambiq Micro, Inc.
All rights reserved.
13.1 Functional Overview .............................................................................................. 557
13.2 Counter/Timer Functions ....................................................................................... 558
13.2.1 Single Count (FN = 0) .................................................................................. 558
13.2.2 Repeated Count (FN = 1) .............................................................................. 559
13.2.3 Single Pulse (FN = 2) .................................................................................... 559
13.2.4 Repeated Pulse (FN = 3) ............................................................................... 560
13.2.5 Single Pattern (FN = 4) ................................................................................. 561
13.2.6 Repeat Pattern (FN = 5) ................................................................................ 561
13.2.7 Continuous (FN = 6) ..................................................................................... 562
13.2.8 Alternate Pulse (FN = 7) ............................................................................... 563
13.3 Creating 32-bit Counters ........................................................................................ 563
13.4 Creating a Secondary Output with CMPR2/3 ........................................................ 564
13.5 Generating Dual Patterns ....................................................................................... 564
13.6 Synchronized A/B Patterns .................................................................................... 565
13.7 Triggering Functions .............................................................................................. 565
13.7.1 Initiating a One-shot Operation .................................................................... 565
13.7.2 Terminating a Repeat Operation ................................................................... 565
13.7.3 Complex Patterns with Triggers ................................................................... 566
13.7.4 Dual Edge Triggers ....................................................................................... 566
13.7.5 Trigger Controlled Inversion ........................................................................ 566
13.8 Clocking Timer/Counters with Other Counter/Timer Outputs .............................. 566
13.9 Global Timer/Counter Enable ................................................................................ 566
13.10 Power Optimization by Measuring HCLK .......................................................... 566
13.11 Generating the Sample Rate for the ADC ........................................................... 567
13.12 Software Generated Serial Data Stream .............................................................. 567
13.13 Software Generated PWM Audio Output ............................................................ 567
13.14 Stepper Motors Driven by Pattern Generation .................................................... 567
13.15 Pattern-based Sine Wave Examples .................................................................... 568
13.15.1 PWM-based Pulse Trains ............................................................................ 568
13.15.2 Pattern-based Pulse Trains .......................................................................... 569
13.15.3 Selecting the Optimal Method .................................................................... 569
13.16 CLR and EN Details ............................................................................................ 569
13.17 NOSYNC Function .............................................................................................. 570
13.18 Counter Functions ................................................................................................ 570
13.18.1 Counting External Edges ............................................................................ 570
13.18.2 Counting Buck Converter Edges ................................................................ 571
13.19 Interconnecting CTIMERs ................................................................................... 571
13.20 Pad Connections from the Timer/Counter ........................................................... 572
13.21 CTIMER Registers .............................................................................................. 577
13.21.1 Register Memory Map ................................................................................ 578
13.21.2 CTIMER Registers ..................................................................................... 580
14. System Timer Module ................................................................................................... 669
14.1 Functional Overview .............................................................................................. 669
14.2 STIMER Registers ................................................................................................. 670
14.2.1 Register Memory Map .................................................................................. 671
14.2.2 STIMER Registers ........................................................................................ 672