SWCU192 November   2021 CC1312R7 , CC1352P7 , CC2652P7 , CC2652R7

 

  1.   1
    1.     2
    2.     3
    3.     4
    4.     5
    5.     6
  2.   7
    1.     8
    2.     9
    3.     10
      1.      11
        1.       12
        2.       13
        3.       14
        4.       15
      2.      16
        1.       17
        2.       18
        3.       19
      3.      20
      4.      21
      5.      22
        1.       23
        2.       24
      6.      25
      7.      26
      8.      27
        1.       28
        2.       29
        3.       30
        4.       31
      9.      32
      10.      33
      11.      34
      12.      35
      13.      36
        1.       37
          1.        38
          2.        39
          3.        40
          4.        41
        2.       42
  3.   43
    1.     44
    2.     45
    3.     46
      1.      47
      2.      48
      3.      49
      4.      50
      5.      51
      6.      52
    4.     53
      1.      54
      2.      55
      3.      56
      4.      57
    5.     58
      1.      59
      2.      60
        1.       61
        2.       62
        3.       63
        4.       64
        5.       65
        6.       66
        7.       67
        8.       68
        9.       69
        10.       70
        11.       71
        12.       72
        13.       73
        14.       74
        15.       75
        16.       76
        17.       77
        18.       78
        19.       79
        20.       80
        21.       81
    6.     82
      1.      83
      2.      84
      3.      85
    7.     86
      1.      87
      2.      88
        1.       89
        2.       90
          1.        91
          2.        92
          3.        93
        3.       94
        4.       95
        5.       96
        6.       97
          1.        98
          2.        99
          3.        100
        7.       101
      3.      102
        1.       103
          1.        104
    8.     105
      1.      106
      2.      107
      3.      108
    9.     109
      1.      110
      2.      111
      3.      112
      4.      113
      5.      114
  4.   115
    1.     116
  5.   117
    1.     118
    2.     119
      1.      120
      2.      121
        1.       122
        2.       123
      3.      124
      4.      125
      5.      126
      6.      127
      7.      128
  6.   129
    1.     130
      1.      131
      2.      132
      3.      133
      4.      134
      5.      135
      6.      136
      7.      137
        1.       138
        2.       139
    2.     140
      1.      141
      2.      142
      3.      143
      4.      144
    3.     145
      1.      146
      2.      147
        1.       148
    4.     149
      1.      150
      2.      151
        1.       152
        2.       153
        3.       154
    5.     155
      1.      156
      2.      157
        1.       158
        2.       159
        3.       160
    6.     161
    7.     162
      1.      163
      2.      164
  7.   165
    1.     166
    2.     167
      1.      168
        1.       169
      2.      170
        1.       171
        2.       172
        3.       173
    3.     174
      1.      175
        1.       176
        2.       177
      2.      178
        1.       179
        2.       180
        3.       181
        4.       182
        5.       183
        6.       184
        7.       185
        8.       186
      3.      187
      4.      188
        1.       189
          1.        190
          2.        191
          3.        192
        2.       193
          1.        194
        3.       195
          1.        196
    4.     197
    5.     198
    6.     199
    7.     200
    8.     201
    9.     202
    10.     203
  8.   204
    1.     205
    2.     206
    3.     207
      1.      208
    4.     209
      1.      210
        1.       211
      2.      212
        1.       213
    5.     214
      1.      215
        1.       216
      2.      217
        1.       218
        2.       219
        3.       220
      3.      221
    6.     222
      1.      223
      2.      224
      3.      225
      4.      226
      5.      227
    7.     228
      1.      229
        1.       230
        2.       231
        3.       232
      2.      233
      3.      234
    8.     235
      1.      236
      2.      237
      3.      238
  9.   239
    1.     240
    2.     241
      1.      242
        1.       243
        2.       244
        3.       245
      2.      246
      3.      247
      4.      248
    3.     249
      1.      250
      2.      251
        1.       252
        2.       253
        3.       254
    4.     255
    5.     256
      1.      257
      2.      258
      3.      259
      4.      260
    6.     261
    7.     262
      1.      263
      2.      264
  10.   265
    1.     266
    2.     267
    3.     268
    4.     269
    5.     270
    6.     271
    7.     272
      1.      273
      2.      274
  11.   275
    1.     276
      1.      277
      2.      278
    2.     279
      1.      280
        1.       281
      2.      282
        1.       283
          1.        284
        2.       285
      3.      286
        1.       287
        2.       288
        3.       289
        4.       290
        5.       291
        6.       292
        7.       293
        8.       294
        9.       295
        10.       296
        11.       297
        12.       298
        13.       299
  12.   300
    1.     301
    2.     302
      1.      303
    3.     304
    4.     305
      1.      306
  13.   307
    1.     308
    2.     309
      1.      310
      2.      311
    3.     312
    4.     313
      1.      314
      2.      315
      3.      316
    5.     317
      1.      318
      2.      319
      3.      320
        1.       321
        2.       322
      4.      323
        1.       324
          1.        325
        2.       326
          1.        327
        3.       328
      5.      329
        1.       330
        2.       331
        3.       332
        4.       333
        5.       334
      6.      335
        1.       336
        2.       337
        3.       338
        4.       339
        5.       340
    6.     341
      1.      342
      2.      343
    7.     344
      1.      345
      2.      346
        1.       347
        2.       348
        3.       349
      3.      350
        1.       351
        2.       352
          1.        353
          2.        354
          3.        355
        3.       356
          1.        357
        4.       358
          1.        359
          2.        360
      4.      361
        1.       362
        2.       363
          1.        364
        3.       365
          1.        366
          2.        367
          3.        368
          4.        369
        4.       370
          1.        371
        5.       372
          1.        373
        6.       374
          1.        375
      5.      376
        1.       377
        2.       378
        3.       379
          1.        380
          2.        381
            1.         382
          3.        383
            1.         384
            2.         385
              1.          386
              2.          387
              3.          388
              4.          389
              5.          390
              6.          391
              7.          392
              8.          393
            3.         394
            4.         395
            5.         396
    8.     397
      1.      398
        1.       399
        2.       400
      2.      401
    9.     402
      1.      403
  14.   404
    1.     405
    2.     406
    3.     407
      1.      408
      2.      409
      3.      410
      4.      411
    4.     412
      1.      413
    5.     414
    6.     415
    7.     416
    8.     417
    9.     418
      1.      419
        1.       420
        2.       421
    10.     422
      1.      423
      2.      424
      3.      425
  15.   426
    1.     427
    2.     428
    3.     429
      1.      430
      2.      431
      3.      432
      4.      433
        1.       434
        2.       435
      5.      436
      6.      437
        1.       438
        2.       439
        3.       440
        4.       441
        5.       442
        6.       443
      7.      444
      8.      445
      9.      446
      10.      447
    4.     448
      1.      449
      2.      450
        1.       451
        2.       452
        3.       453
    5.     454
      1.      455
  16.   456
    1.     457
    2.     458
    3.     459
      1.      460
      2.      461
        1.       462
        2.       463
        3.       464
        4.       465
        5.       466
      3.      467
      4.      468
    4.     469
      1.      470
      2.      471
      3.      472
      4.      473
      5.      474
    5.     475
      1.      476
  17.   477
    1.     478
    2.     479
      1.      480
      2.      481
      3.      482
        1.       483
      4.      484
    3.     485
      1.      486
      2.      487
      3.      488
    4.     489
      1.      490
  18.   491
    1.     492
    2.     493
    3.     494
    4.     495
      1.      496
  19.   497
    1.     498
    2.     499
    3.     500
    4.     501
    5.     502
      1.      503
      2.      504
      3.      505
    6.     506
      1.      507
        1.       508
        2.       509
        3.       510
          1.        511
          2.        512
    7.     513
      1.      514
  20.   515
    1.     516
      1.      517
    2.     518
      1.      519
        1.       520
      2.      521
        1.       522
        2.       523
      3.      524
      4.      525
    3.     526
      1.      527
        1.       528
        2.       529
        3.       530
        4.       531
      2.      532
        1.       533
          1.        534
        2.       535
          1.        536
          2.        537
        3.       538
          1.        539
        4.       540
          1.        541
          2.        542
          3.        543
        5.       544
        6.       545
        7.       546
        8.       547
        9.       548
        10.       549
    4.     550
      1.      551
        1.       552
      2.      553
        1.       554
        2.       555
          1.        556
          2.        557
          3.        558
          4.        559
          5.        560
      3.      561
        1.       562
        2.       563
        3.       564
      4.      565
        1.       566
        2.       567
          1.        568
          2.        569
          3.        570
      5.      571
        1.       572
        2.       573
          1.        574
          2.        575
          3.        576
          4.        577
            1.         578
            2.         579
          5.        580
          6.        581
        3.       582
          1.        583
          2.        584
          3.        585
            1.         586
            2.         587
            3.         588
            4.         589
          4.        590
      6.      591
        1.       592
        2.       593
      7.      594
        1.       595
        2.       596
          1.        597
          2.        598
          3.        599
          4.        600
          5.        601
            1.         602
              1.          603
            2.         604
              1.          605
            3.         606
              1.          607
          6.        608
    5.     609
      1.      610
        1.       611
        2.       612
      2.      613
        1.       614
        2.       615
          1.        616
          2.        617
          3.        618
          4.        619
          5.        620
          6.        621
          7.        622
          8.        623
      3.      624
        1.       625
        2.       626
          1.        627
          2.        628
          3.        629
          4.        630
      4.      631
        1.       632
        2.       633
          1.        634
          2.        635
          3.        636
            1.         637
            2.         638
      5.      639
        1.       640
        2.       641
          1.        642
          2.        643
          3.        644
            1.         645
            2.         646
            3.         647
          4.        648
            1.         649
            2.         650
            3.         651
            4.         652
          5.        653
          6.        654
      6.      655
        1.       656
        2.       657
          1.        658
          2.        659
          3.        660
          4.        661
          5.        662
    6.     663
      1.      664
        1.       665
        2.       666
          1.        667
            1.         668
            2.         669
      2.      670
      3.      671
      4.      672
      5.      673
      6.      674
      7.      675
    7.     676
    8.     677
      1.      678
      2.      679
      3.      680
      4.      681
      5.      682
      6.      683
      7.      684
      8.      685
      9.      686
      10.      687
      11.      688
      12.      689
  21.   690
    1.     691
    2.     692
    3.     693
      1.      694
  22.   695
    1.     696
    2.     697
    3.     698
    4.     699
      1.      700
      2.      701
      3.      702
      4.      703
        1.       704
        2.       705
          1.        706
          2.        707
      5.      708
      6.      709
      7.      710
    5.     711
    6.     712
    7.     713
      1.      714
  23.   715
    1.     716
    2.     717
    3.     718
    4.     719
      1.      720
      2.      721
        1.       722
        2.       723
      3.      724
      4.      725
        1.       726
        2.       727
          1.        728
          2.        729
        3.       730
        4.       731
        5.       732
        6.       733
        7.       734
    5.     735
    6.     736
    7.     737
      1.      738
  24.   739
    1.     740
    2.     741
    3.     742
      1.      743
        1.       744
        2.       745
        3.       746
        4.       747
        5.       748
      2.      749
        1.       750
      3.      751
        1.       752
        2.       753
      4.      754
      5.      755
        1.       756
        2.       757
    4.     758
    5.     759
      1.      760
  25.   761
    1.     762
    2.     763
    3.     764
    4.     765
      1.      766
        1.       767
      2.      768
      3.      769
      4.      770
        1.       771
      5.      772
        1.       773
      6.      774
        1.       775
      7.      776
        1.       777
      8.      778
        1.       779
        2.       780
    5.     781
      1.      782
      2.      783
      3.      784
      4.      785
        1.       786
        2.       787
        3.       788
    6.     789
      1.      790
      2.      791
      3.      792
      4.      793
    7.     794
    8.     795
      1.      796
      2.      797
    9.     798
      1.      799
  26.   800
    1.     801
      1.      802
    2.     803
      1.      804
      2.      805
      3.      806
        1.       807
        2.       808
        3.       809
      4.      810
        1.       811
        2.       812
        3.       813
    3.     814
      1.      815
      2.      816
        1.       817
        2.       818
        3.       819
        4.       820
        5.       821
          1.        822
          2.        823
          3.        824
        6.       825
          1.        826
        7.       827
          1.        828
          2.        829
          3.        830
          4.        831
        8.       832
      3.      833
        1.       834
          1.        835
          2.        836
          3.        837
          4.        838
          5.        839
          6.        840
          7.        841
          8.        842
          9.        843
          10.        844
          11.        845
          12.        846
          13.        847
          14.        848
        2.       849
          1.        850
          2.        851
          3.        852
          4.        853
          5.        854
          6.        855
          7.        856
          8.        857
          9.        858
          10.        859
          11.        860
          12.        861
          13.        862
          14.        863
          15.        864
          16.        865
          17.        866
          18.        867
          19.        868
          20.        869
      4.      870
        1.       871
        2.       872
        3.       873
        4.       874
        5.       875
    4.     876
      1.      877
        1.       878
        2.       879
        3.       880
        4.       881
        5.       882
      2.      883
        1.       884
        2.       885
    5.     886
      1.      887
        1.       888
        2.       889
        3.       890
        4.       891
      2.      892
      3.      893
        1.       894
        2.       895
      4.      896
        1.       897
          1.        898
            1.         899
            2.         900
          2.        901
          3.        902
          4.        903
          5.        904
        2.       905
        3.       906
        4.       907
        5.       908
        6.       909
      5.      910
        1.       911
        2.       912
        3.       913
        4.       914
        5.       915
        6.       916
    6.     917
      1.      918
        1.       919
          1.        920
        2.       921
        3.       922
        4.       923
      2.      924
    7.     925
      1.      926
      2.      927
    8.     928
      1.      929
      2.      930
      3.      931
      4.      932
      5.      933
      6.      934
      7.      935
      8.      936
        1.       937
        2.       938
        3.       939
        4.       940
      9.      941
        1.       942
        2.       943
        3.       944
      10.      945
        1.       946
        2.       947
        3.       948
        4.       949
        5.       950
      11.      951
        1.       952
        2.       953
        3.       954
        4.       955
        5.       956
      12.      957
      13.      958
      14.      959
      15.      960
      16.      961
      17.      962
    9.     963
      1.      964
    10.     965
      1.      966
      2.      967
        1.       968
          1.        969
        2.       970
        3.       971
      3.      972
      4.      973
        1.       974
        2.       975
      5.      976
        1.       977
        2.       978
          1.        979
        3.       980
          1.        981
          2.        982
        4.       983
          1.        984
          2.        985
        5.       986
          1.        987
          2.        988
          3.        989
      6.      990
        1.       991
        2.       992
    11.     993
      1.      994
      2.      995
      3.      996
  27.   997

GPT Registers

#GPT_GPT_MAP1_TABLE_1 lists the memory-mapped registers for the GPT registers. All register offset addresses not listed in #GPT_GPT_MAP1_TABLE_1 should be considered as reserved locations and the register contents should not be modified.

Table 16-7 GPT Registers
Offset Acronym Register Name Section
0h CFG Configuration #GPT_GPT_MAP1_GPT_ALL_CFG
4h TAMR Timer A Mode #GPT_GPT_MAP1_GPT_ALL_TAMR
8h TBMR Timer B Mode #GPT_GPT_MAP1_GPT_ALL_TBMR
Ch CTL Control #GPT_GPT_MAP1_GPT_ALL_CTL
10h SYNC Synch Register #GPT_GPT_MAP1_GPT_ALL_SYNC
18h IMR Interrupt Mask #GPT_GPT_MAP1_GPT_ALL_IMR
1Ch RIS Raw Interrupt Status #GPT_GPT_MAP1_GPT_ALL_RIS
20h MIS Masked Interrupt Status #GPT_GPT_MAP1_GPT_ALL_MIS
24h ICLR Interrupt Clear #GPT_GPT_MAP1_GPT_ALL_ICLR
28h TAILR Timer A Interval Load Register #GPT_GPT_MAP1_GPT_ALL_TAILR
2Ch TBILR Timer B Interval Load Register #GPT_GPT_MAP1_GPT_ALL_TBILR
30h TAMATCHR Timer A Match Register #GPT_GPT_MAP1_GPT_ALL_TAMATCHR
34h TBMATCHR Timer B Match Register #GPT_GPT_MAP1_GPT_ALL_TBMATCHR
38h TAPR Timer A Pre-scale #GPT_GPT_MAP1_GPT_ALL_TAPR
3Ch TBPR Timer B Pre-scale #GPT_GPT_MAP1_GPT_ALL_TBPR
40h TAPMR Timer A Pre-scale Match #GPT_GPT_MAP1_GPT_ALL_TAPMR
44h TBPMR Timer B Pre-scale Match #GPT_GPT_MAP1_GPT_ALL_TBPMR
48h TAR Timer A Register #GPT_GPT_MAP1_GPT_ALL_TAR
4Ch TBR Timer B Register #GPT_GPT_MAP1_GPT_ALL_TBR
50h TAV Timer A Value #GPT_GPT_MAP1_GPT_ALL_TAV
54h TBV Timer B Value #GPT_GPT_MAP1_GPT_ALL_TBV
5Ch TAPS Timer A Pre-scale Snap-shot #GPT_GPT_MAP1_GPT_ALL_TAPS
60h TBPS Timer B Pre-scale Snap-shot #GPT_GPT_MAP1_GPT_ALL_TBPS
64h TAPV Timer A Pre-scale Value #GPT_GPT_MAP1_GPT_ALL_TAPV
68h TBPV Timer B Pre-scale Value #GPT_GPT_MAP1_GPT_ALL_TBPV
6Ch DMAEV DMA Event #GPT_GPT_MAP1_GPT_ALL_DMAEV
FB0h VERSION Peripheral Version #GPT_GPT_MAP1_GPT_ALL_VERSION
FB4h ANDCCP Combined CCP Output #GPT_GPT_MAP1_GPT_ALL_ANDCCP

Complex bit access types are encoded to fit into small table cells. #GPT_GPT_MAP1_LEGEND shows the codes that are used for access types in this section.

Table 16-8 GPT Access Type Codes
Access Type Code Description
Read Type
R R Read
Write Type
W W Write
W1C W
1C
Write
1 to clear
Reset or Default Value
-n Value after reset or the default value

16.5.1.1 CFG Register (Offset = 0h) [Reset = 00000000h]

CFG is shown in #GPT_GPT_MAP1_GPT_ALL_CFG_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_CFG_TABLE.

Return to the Summary Table.

Configuration

Figure 16-9 CFG Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED CFG
R-0h R/W-0h
Table 16-9 CFG Register Field Descriptions
Bit Field Type Reset Description
31-3 RESERVED R 0h Reserved
2-0 CFG R/W 0h GPT Configuration
0x2- 0x3 - Reserved
0x5- 0x7 - Reserved

0h = 32BIT_TIMER : 32-bit timer configuration

4h = 16BIT_TIMER : 16-bit timer configuration.
Configure for two 16-bit timers.
Also see TAMR.TAMR and TBMR.TBMR.

16.5.1.2 TAMR Register (Offset = 4h) [Reset = 00000000h]

TAMR is shown in #GPT_GPT_MAP1_GPT_ALL_TAMR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TAMR_TABLE.

Return to the Summary Table.

Timer A Mode

Figure 16-10 TAMR Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
TCACT TACINTD TAPLO TAMRSU TAPWMIE TAILD
R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h
7 6 5 4 3 2 1 0
TASNAPS TAWOT TAMIE TACDIR TAAMS TACM TAMR
R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h
Table 16-10 TAMR Register Field Descriptions
Bit Field Type Reset Description
31-16 RESERVED R 0h Reserved
15-13 TCACT R/W 0h Timer Compare Action Select

0h = DIS_CMP : Disable compare operations

1h = Toggle State on Time-Out

2h = Clear CCP output pin on Time-Out

3h = Set CCP output pin on Time-Out

4h = Set CCP output pin immediately and toggle on Time-Out

5h = Clear CCP output pin immediately and toggle on Time-Out

6h = Set CCP output pin immediately and clear on Time-Out

7h = Clear CCP output pin immediately and set on Time-Out

12 TACINTD R/W 0h One-Shot/Periodic Interrupt Disable

0h = Time-out interrupt function as normal

1h = Time-out interrupt are disabled

11 TAPLO R/W 0h GPTM Timer A PWM Legacy Operation
0 Legacy operation with CCP pin driven Low when the TAILR
register is reloaded after the timer reaches 0.
1 CCP is driven High when the TAILR register is reloaded after the timer reaches 0.
This bit is only valid in PWM mode.

0h = Legacy operation

1h = CCP output pin is set to 1 on time-out

10 TAMRSU R/W 0h Timer A Match Register Update mode

This bit defines when the TAMATCHR and TAPR registers are updated.
If the timer is disabled (CTL.TAEN = 0) when this bit is set, TAMATCHR and TAPR are updated when the timer is enabled.
If the timer is stalled (CTL.TASTALL = 1) when this bit is set, TAMATCHR and TAPR are updated according to the configuration of this bit.

0h = Update TAMATCHR and TAPR, if used, on the next cycle.

1h = Update TAMATCHR and TAPR, if used, on the next time-out.

9 TAPWMIE R/W 0h GPTM Timer A PWM Interrupt Enable
This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output, as defined by the CTL.TAEVENT
In addition, when this bit is set and a capture event occurs, Timer A
automatically generates triggers to the DMA if the trigger capability is enabled by setting the CTL.TAOTE bit and the DMAEV.CAEDMAEN bit respectively.
0 Capture event interrupt is disabled.
1 Capture event interrupt is enabled.
This bit is only valid in PWM mode.

0h = Interrupt is disabled.

1h = Interrupt is enabled. This bit is only valid in PWM mode.

8 TAILD R/W 0h GPT Timer A PWM Interval Load Write

0h = Update the TAR register with the value in the TAILR register on the next clock cycle. If the pre-scaler is used, update the TAPS register with the value in the TAPR register on the next clock cycle.

1h = Update the TAR register with the value in the TAILR register on the next timeout. If the prescaler is used, update the TAPS register with the value in the TAPR register on the next timeout.

7 TASNAPS R/W 0h GPT Timer A Snap-Shot Mode

0h = Snap-shot mode is disabled.

1h = If Timer A is configured in the periodic mode, the actual free-running value of Timer A is loaded at the time-out event into the GPT Timer A (TAR) register.

6 TAWOT R/W 0h GPT Timer A Wait-On-Trigger

0h = Timer A begins counting as soon as it is enabled.

1h = If Timer A is enabled (CTL.TAEN = 1), Timer A does not begin counting until it receives a trigger from the timer in the previous position in the daisy chain. This bit must be clear for GPT Module 0, Timer A. This function is valid for one-shot, periodic, and PWM modes

5 TAMIE R/W 0h GPT Timer A Match Interrupt Enable

0h = The match interrupt is disabled for match events. Additionally, output triggers on match events are prevented.

1h = An interrupt is generated when the match value in TAMATCHR is reached in the one-shot and periodic modes.

4 TACDIR R/W 0h GPT Timer A Count Direction

0h = DOWN : The timer counts down.

1h = UP : The timer counts up. When counting up, the timer starts from a value of 0x0.

3 TAAMS R/W 0h GPT Timer A Alternate Mode
Note: To enable PWM mode, you must also clear TACM and then configure TAMR field to 0x2.

0h = Capture/Compare mode is enabled.

1h = PWM mode is enabled

2 TACM R/W 0h GPT Timer A Capture Mode

0h = EDGCNT : Edge-Count mode

1h = EDGTIME : Edge-Time mode

1-0 TAMR R/W 0h GPT Timer A Mode
0x0 Reserved
0x1 One-Shot Timer mode
0x2 Periodic Timer mode
0x3 Capture mode
The Timer mode is based on the timer configuration defined by bits 2:0 in the CFG register

1h = One-Shot Timer mode

2h = Periodic Timer mode

3h = Capture mode

16.5.1.3 TBMR Register (Offset = 8h) [Reset = 00000000h]

TBMR is shown in #GPT_GPT_MAP1_GPT_ALL_TBMR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TBMR_TABLE.

Return to the Summary Table.

Timer B Mode

Figure 16-11 TBMR Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
TCACT TBCINTD TBPLO TBMRSU TBPWMIE TBILD
R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h
7 6 5 4 3 2 1 0
TBSNAPS TBWOT TBMIE TBCDIR TBAMS TBCM TBMR
R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h R/W-0h
Table 16-11 TBMR Register Field Descriptions
Bit Field Type Reset Description
31-16 RESERVED R 0h Reserved
15-13 TCACT R/W 0h Timer Compare Action Select

0h = DIS_CMP : Disable compare operations

1h = Toggle State on Time-Out

2h = Clear CCP output pin on Time-Out

3h = Set CCP output pin on Time-Out

4h = Set CCP output pin immediately and toggle on Time-Out

5h = Clear CCP output pin immediately and toggle on Time-Out

6h = Set CCP output pin immediately and clear on Time-Out

7h = Clear CCP output pin immediately and set on Time-Out

12 TBCINTD R/W 0h One-Shot/Periodic Interrupt Mode

0h = Normal Time-Out Interrupt

1h = Mask Time-Out Interrupt

11 TBPLO R/W 0h GPTM Timer B PWM Legacy Operation
0 Legacy operation with CCP pin driven Low when the TBILR
register is reloaded after the timer reaches 0.
1 CCP is driven High when the TBILR register is reloaded after the timer reaches 0.
This bit is only valid in PWM mode.

0h = Legacy operation

1h = CCP output pin is set to 1 on time-out

10 TBMRSU R/W 0h Timer B Match Register Update mode

This bit defines when the TBMATCHR and TBPR registers are updated
If the timer is disabled (CTL.TBEN is clear) when this bit is set, TBMATCHR and TBPR are updated when the timer is enabled.
If the timer is stalled (CTL.TBSTALL is set) when this bit is set, TBMATCHR and TBPR are updated according to the configuration of this bit.

0h = Update TBMATCHR and TBPR, if used, on the next cycle.

1h = Update TBMATCHR and TBPR, if used, on the next time-out.

9 TBPWMIE R/W 0h GPTM Timer B PWM Interrupt Enable
This bit enables interrupts in PWM mode on rising, falling, or both edges of the CCP output, as defined by the CTL.TBEVENT
In addition, when this bit is set and a capture event occurs, Timer A
automatically generates triggers to the DMA if the trigger capability is enabled by setting the CTL.TBOTE bit and the DMAEV.CBEDMAEN bit respectively.
0 Capture event interrupt is disabled.
1 Capture event interrupt is enabled.
This bit is only valid in PWM mode.

0h = Interrupt is disabled.

1h = Interrupt is enabled. This bit is only valid in PWM mode.

8 TBILD R/W 0h GPT Timer B PWM Interval Load Write

0h = Update the TBR register with the value in the TBILR register on the next clock cycle. If the pre-scaler is used, update the TBPS register with the value in the TBPR register on the next clock cycle.

1h = Update the TBR register with the value in the TBILR register on the next timeout. If the prescaler is used, update the TBPS register with the value in the TBPR register on the next timeout.

7 TBSNAPS R/W 0h GPT Timer B Snap-Shot Mode

0h = Snap-shot mode is disabled.

1h = If Timer B is configured in the periodic mode

6 TBWOT R/W 0h GPT Timer B Wait-On-Trigger

0h = Timer B begins counting as soon as it is enabled.

1h = If Timer B is enabled (CTL.TBEN is set), Timer B does not begin counting until it receives a trigger from the timer in the previous position in the daisy chain. This function is valid for one-shot, periodic, and PWM modes

5 TBMIE R/W 0h GPT Timer B Match Interrupt Enable.

0h = The match interrupt is disabled for match events. Additionally, output triggers on match events are prevented.

1h = An interrupt is generated when the match value in the TBMATCHR register is reached in the one-shot and periodic modes.

4 TBCDIR R/W 0h GPT Timer B Count Direction

0h = DOWN : The timer counts down.

1h = UP : The timer counts up. When counting up, the timer starts from a value of 0x0.

3 TBAMS R/W 0h GPT Timer B Alternate Mode
Note: To enable PWM mode, you must also clear TBCM bit and configure TBMR field to 0x2.

0h = Capture/Compare mode is enabled.

1h = PWM mode is enabled

2 TBCM R/W 0h GPT Timer B Capture Mode

0h = EDGCNT : Edge-Count mode

1h = EDGTIME : Edge-Time mode

1-0 TBMR R/W 0h GPT Timer B Mode
0x0 Reserved
0x1 One-Shot Timer mode
0x2 Periodic Timer mode
0x3 Capture mode
The Timer mode is based on the timer configuration defined by bits 2:0 in the CFG register

1h = One-Shot Timer mode

2h = Periodic Timer mode

3h = Capture mode

16.5.1.4 CTL Register (Offset = Ch) [Reset = 00000000h]

CTL is shown in #GPT_GPT_MAP1_GPT_ALL_CTL_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_CTL_TABLE.

Return to the Summary Table.

Control

Figure 16-12 CTL Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
RESERVED TBPWML RESERVED TBEVENT TBSTALL TBEN
R-0h R/W-0h R-0h R/W-0h R/W-0h R/W-0h
7 6 5 4 3 2 1 0
RESERVED TAPWML RESERVED TAEVENT TASTALL TAEN
R-0h R/W-0h R-0h R/W-0h R/W-0h R/W-0h
Table 16-12 CTL Register Field Descriptions
Bit Field Type Reset Description
31-15 RESERVED R 0h Reserved
14 TBPWML R/W 0h GPT Timer B PWM Output Level
0: Output is unaffected.
1: Output is inverted.

0h = Not inverted

1h = Inverted

13-12 RESERVED R 0h Reserved
11-10 TBEVENT R/W 0h GPT Timer B Event Mode
The values in this register are defined as follows:
Value Description
0x0 Positive edge
0x1 Negative edge
0x2 Reserved
0x3 Both edges
Note: If PWM output inversion is enabled, edge detection interrupt
behavior is reversed. Thus, if a positive-edge interrupt trigger
has been set and the PWM inversion generates a postive
edge, no event-trigger interrupt asserts. Instead, the interrupt
is generated on the negative edge of the PWM signal.

0h = Positive edge

1h = Negative edge

3h = Both edges

9 TBSTALL R/W 0h GPT Timer B Stall Enable

0h = Timer B continues counting while the processor is halted by the debugger.

1h = Timer B freezes counting while the processor is halted by the debugger.

8 TBEN R/W 0h GPT Timer B Enable

0h = Timer B is disabled.

1h = Timer B is enabled and begins counting or the capture logic is enabled based on CFG register.

7 RESERVED R 0h Reserved
6 TAPWML R/W 0h GPT Timer A PWM Output Level

0h = Not inverted

1h = Inverted

5-4 RESERVED R 0h Reserved
3-2 TAEVENT R/W 0h GPT Timer A Event Mode
The values in this register are defined as follows:
Value Description
0x0 Positive edge
0x1 Negative edge
0x2 Reserved
0x3 Both edges
Note: If PWM output inversion is enabled, edge detection interrupt
behavior is reversed. Thus, if a positive-edge interrupt trigger
has been set and the PWM inversion generates a postive
edge, no event-trigger interrupt asserts. Instead, the interrupt
is generated on the negative edge of the PWM signal.

0h = Positive edge

1h = Negative edge

3h = Both edges

1 TASTALL R/W 0h GPT Timer A Stall Enable

0h = Timer A continues counting while the processor is halted by the debugger.

1h = Timer A freezes counting while the processor is halted by the debugger.

0 TAEN R/W 0h GPT Timer A Enable

0h = Timer A is disabled.

1h = Timer A is enabled and begins counting or the capture logic is enabled based on the CFG register.

16.5.1.5 SYNC Register (Offset = 10h) [Reset = 00000000h]

SYNC is shown in #GPT_GPT_MAP1_GPT_ALL_SYNC_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_SYNC_TABLE.

Return to the Summary Table.

Synch Register

Figure 16-13 SYNC Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED SYNC3 SYNC2 SYNC1 SYNC0
R-0h W-0h W-0h W-0h W-0h
Table 16-13 SYNC Register Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h Reserved
7-6 SYNC3 W 0h Synchronize GPT Timer 3.

0h = No Sync. GPT3 is not affected.

1h = A timeout event for Timer A of GPT3 is triggered

2h = A timeout event for Timer B of GPT3 is triggered

3h = A timeout event for both Timer A and Timer B of GPT3 is triggered

5-4 SYNC2 W 0h Synchronize GPT Timer 2.

0h = No Sync. GPT2 is not affected.

1h = A timeout event for Timer A of GPT2 is triggered

2h = A timeout event for Timer B of GPT2 is triggered

3h = A timeout event for both Timer A and Timer B of GPT2 is triggered

3-2 SYNC1 W 0h Synchronize GPT Timer 1

0h = No Sync. GPT1 is not affected.

1h = A timeout event for Timer A of GPT1 is triggered

2h = A timeout event for Timer B of GPT1 is triggered

3h = A timeout event for both Timer A and Timer B of GPT1 is triggered

1-0 SYNC0 W 0h Synchronize GPT Timer 0

0h = No Sync. GPT0 is not affected.

1h = A timeout event for Timer A of GPT0 is triggered

2h = A timeout event for Timer B of GPT0 is triggered

3h = A timeout event for both Timer A and Timer B of GPT0 is triggered

16.5.1.6 IMR Register (Offset = 18h) [Reset = 00000000h]

IMR is shown in #GPT_GPT_MAP1_GPT_ALL_IMR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_IMR_TABLE.

Return to the Summary Table.

Interrupt Mask
This register is used to enable the interrupts.
Associated registers:
RIS, MIS, ICLR

Figure 16-14 IMR Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
RESERVED DMABIM RESERVED TBMIM CBEIM CBMIM TBTOIM
R-0h R/W-0h R-0h R/W-0h R/W-0h R/W-0h R/W-0h
7 6 5 4 3 2 1 0
RESERVED DMAAIM TAMIM RESERVED CAEIM CAMIM TATOIM
R-0h R/W-0h R/W-0h R-0h R/W-0h R/W-0h R/W-0h
Table 16-14 IMR Register Field Descriptions
Bit Field Type Reset Description
31-14 RESERVED R 0h Reserved
13 DMABIM R/W 0h Enabling this bit will make the RIS.DMABRIS interrupt propagate to MIS.DMABMIS

0h = Disable Interrupt

1h = Enable Interrupt

12 RESERVED R 0h Reserved
11 TBMIM R/W 0h Enabling this bit will make the RIS.TBMRIS interrupt propagate to MIS.TBMMIS

0h = Disable Interrupt

1h = Enable Interrupt

10 CBEIM R/W 0h Enabling this bit will make the RIS.CBERIS interrupt propagate to MIS.CBEMIS

0h = Disable Interrupt

1h = Enable Interrupt

9 CBMIM R/W 0h Enabling this bit will make the RIS.CBMRIS interrupt propagate to MIS.CBMMIS

0h = Disable Interrupt

1h = Enable Interrupt

8 TBTOIM R/W 0h Enabling this bit will make the RIS.TBTORIS interrupt propagate to MIS.TBTOMIS

0h = Disable Interrupt

1h = Enable Interrupt

7-6 RESERVED R 0h Reserved
5 DMAAIM R/W 0h Enabling this bit will make the RIS.DMAARIS interrupt propagate to MIS.DMAAMIS

0h = Disable Interrupt

1h = Enable Interrupt

4 TAMIM R/W 0h Enabling this bit will make the RIS.TAMRIS interrupt propagate to MIS.TAMMIS

0h = Disable Interrupt

1h = Enable Interrupt

3 RESERVED R 0h Reserved
2 CAEIM R/W 0h Enabling this bit will make the RIS.CAERIS interrupt propagate to MIS.CAEMIS

0h = Disable Interrupt

1h = Enable Interrupt

1 CAMIM R/W 0h Enabling this bit will make the RIS.CAMRIS interrupt propagate to MIS.CAMMIS

0h = Disable Interrupt

1h = Enable Interrupt

0 TATOIM R/W 0h Enabling this bit will make the RIS.TATORIS interrupt propagate to MIS.TATOMIS

0h = Disable Interrupt

1h = Enable Interrupt

16.5.1.7 RIS Register (Offset = 1Ch) [Reset = 00000000h]

RIS is shown in #GPT_GPT_MAP1_GPT_ALL_RIS_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_RIS_TABLE.

Return to the Summary Table.

Raw Interrupt Status
Associated registers:
IMR, MIS, ICLR

Figure 16-15 RIS Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
RESERVED DMABRIS RESERVED TBMRIS CBERIS CBMRIS TBTORIS
R-0h R-0h R-0h R-0h R-0h R-0h R-0h
7 6 5 4 3 2 1 0
RESERVED DMAARIS TAMRIS RESERVED CAERIS CAMRIS TATORIS
R-0h R-0h R-0h R-0h R-0h R-0h R-0h
Table 16-15 RIS Register Field Descriptions
Bit Field Type Reset Description
31-14 RESERVED R 0h Reserved
13 DMABRIS R 0h GPT Timer B DMA Done Raw Interrupt Status
0: Transfer has not completed
1: Transfer has completed
12 RESERVED R 0h Reserved
11 TBMRIS R 0h GPT Timer B Match Raw Interrupt
0: The match value has not been reached
1: The match value is reached.
TBMR.TBMIE is set, and the match values in TBMATCHR and optionally TBPMR have been reached when configured in one-shot or periodic mode.
10 CBERIS R 0h GPT Timer B Capture Mode Event Raw Interrupt
0: The event has not occured.
1: The event has occured.
This interrupt asserts when the subtimer is configured in Input Edge-Time mode
9 CBMRIS R 0h GPT Timer B Capture Mode Match Raw Interrupt
0: The capture mode match for Timer B has not occurred.
1: A capture mode match has occurred for Timer B. This interrupt
asserts when the values in the TBR and TBPR
match the values in the TBMATCHR and TBPMR
when configured in Input Edge-Time mode.
This bit is cleared by writing a 1 to the ICLR.CBMCINT bit.
8 TBTORIS R 0h GPT Timer B Time-out Raw Interrupt
0: Timer B has not timed out
1: Timer B has timed out.
This interrupt is asserted when a one-shot or periodic mode timer reaches its count limit. The count limit is 0 or the value loaded into TBILR, depending on the count direction.
7-6 RESERVED R 0h Reserved
5 DMAARIS R 0h GPT Timer A DMA Done Raw Interrupt Status
0: Transfer has not completed
1: Transfer has completed
4 TAMRIS R 0h GPT Timer A Match Raw Interrupt
0: The match value has not been reached
1: The match value is reached.
TAMR.TAMIE is set, and the match values in TAMATCHR and optionally TAPMR have been reached when configured in one-shot or periodic mode.
3 RESERVED R 0h Reserved
2 CAERIS R 0h GPT Timer A Capture Mode Event Raw Interrupt
0: The event has not occured.
1: The event has occured.
This interrupt asserts when the subtimer is configured in Input Edge-Time mode
1 CAMRIS R 0h GPT Timer A Capture Mode Match Raw Interrupt
0: The capture mode match for Timer A has not occurred.
1: A capture mode match has occurred for Timer A. This interrupt
asserts when the values in the TAR and TAPR
match the values in the TAMATCHR and TAPMR
when configured in Input Edge-Time mode.
This bit is cleared by writing a 1 to the ICLR.CAMCINT bit.
0 TATORIS R 0h GPT Timer A Time-out Raw Interrupt
0: Timer A has not timed out
1: Timer A has timed out.
This interrupt is asserted when a one-shot or periodic mode timer reaches its count limit. The count limit is 0 or the value loaded into TAILR, depending on the count direction.

16.5.1.8 MIS Register (Offset = 20h) [Reset = 00000000h]

MIS is shown in #GPT_GPT_MAP1_GPT_ALL_MIS_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_MIS_TABLE.

Return to the Summary Table.

Masked Interrupt Status
Values are result of bitwise AND operation between RIS and IMR
Assosciated clear register: ICLR

Figure 16-16 MIS Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
RESERVED DMABMIS RESERVED TBMMIS CBEMIS CBMMIS TBTOMIS
R-0h R-0h R-0h R-0h R-0h R-0h R-0h
7 6 5 4 3 2 1 0
RESERVED DMAAMIS TAMMIS RESERVED CAEMIS CAMMIS TATOMIS
R-0h R-0h R-0h R-0h R-0h R-0h R-0h
Table 16-16 MIS Register Field Descriptions
Bit Field Type Reset Description
31-14 RESERVED R 0h Reserved
13 DMABMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.DMABRIS = 1 && IMR.DMABIM = 1
12 RESERVED R 0h Reserved
11 TBMMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.TBMRIS = 1 && IMR.TBMIM = 1
10 CBEMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.CBERIS = 1 && IMR.CBEIM = 1
9 CBMMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.CBMRIS = 1 && IMR.CBMIM = 1
8 TBTOMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.TBTORIS = 1 && IMR.TBTOIM = 1
7-6 RESERVED R 0h Reserved
5 DMAAMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.DMAARIS = 1 && IMR.DMAAIM = 1
4 TAMMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.TAMRIS = 1 && IMR.TAMIM = 1
3 RESERVED R 0h Reserved
2 CAEMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.CAERIS = 1 && IMR.CAEIM = 1
1 CAMMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.CAMRIS = 1 && IMR.CAMIM = 1
0 TATOMIS R 0h 0: No interrupt or interrupt not enabled
1: RIS.TATORIS = 1 && IMR.TATOIM = 1

16.5.1.9 ICLR Register (Offset = 24h) [Reset = 00000000h]

ICLR is shown in #GPT_GPT_MAP1_GPT_ALL_ICLR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_ICLR_TABLE.

Return to the Summary Table.

Interrupt Clear
This register is used to clear status bits in the RIS and MIS registers

Figure 16-17 ICLR Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
RESERVED DMABINT RESERVED TBMCINT CBECINT CBMCINT TBTOCINT
R-0h R/W1C-0h R-0h R/W1C-0h R/W1C-0h R/W1C-0h R/W1C-0h
7 6 5 4 3 2 1 0
RESERVED DMAAINT TAMCINT RESERVED CAECINT CAMCINT TATOCINT
R-0h R/W1C-0h R/W1C-0h R-0h R/W1C-0h R/W1C-0h R/W1C-0h
Table 16-17 ICLR Register Field Descriptions
Bit Field Type Reset Description
31-14 RESERVED R 0h Reserved
13 DMABINT R/W1C 0h 0: Do nothing.
1: Clear RIS.DMABRIS and MIS.DMABMIS
12 RESERVED R 0h Reserved
11 TBMCINT R/W1C 0h 0: Do nothing.
1: Clear RIS.TBMRIS and MIS.TBMMIS
10 CBECINT R/W1C 0h 0: Do nothing.
1: Clear RIS.CBERIS and MIS.CBEMIS
9 CBMCINT R/W1C 0h 0: Do nothing.
1: Clear RIS.CBMRIS and MIS.CBMMIS
8 TBTOCINT R/W1C 0h 0: Do nothing.
1: Clear RIS.TBTORIS and MIS.TBTOMIS
7-6 RESERVED R 0h Reserved
5 DMAAINT R/W1C 0h 0: Do nothing.
1: Clear RIS.DMAARIS and MIS.DMAAMIS
4 TAMCINT R/W1C 0h 0: Do nothing.
1: Clear RIS.TAMRIS and MIS.TAMMIS
3 RESERVED R 0h Reserved
2 CAECINT R/W1C 0h 0: Do nothing.
1: Clear RIS.CAERIS and MIS.CAEMIS
1 CAMCINT R/W1C 0h 0: Do nothing.
1: Clear RIS.CAMRIS and MIS.CAMMIS
0 TATOCINT R/W1C 0h 0: Do nothing.
1: Clear RIS.TATORIS and MIS.TATOMIS

16.5.1.10 TAILR Register (Offset = 28h) [Reset = FFFFFFFFh]

TAILR is shown in #GPT_GPT_MAP1_GPT_ALL_TAILR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TAILR_TABLE.

Return to the Summary Table.

Timer A Interval Load Register

Figure 16-18 TAILR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
TAILR
R/W-FFFFFFFFh
Table 16-18 TAILR Register Field Descriptions
Bit Field Type Reset Description
31-0 TAILR R/W FFFFFFFFh GPT Timer A Interval Load Register
Writing this field loads the counter for Timer A. A read returns the current value of TAILR.

16.5.1.11 TBILR Register (Offset = 2Ch) [Reset = 0000FFFFh]

TBILR is shown in #GPT_GPT_MAP1_GPT_ALL_TBILR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TBILR_TABLE.

Return to the Summary Table.

Timer B Interval Load Register

Figure 16-19 TBILR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
TBILR
R/W-FFFFh
Table 16-19 TBILR Register Field Descriptions
Bit Field Type Reset Description
31-0 TBILR R/W FFFFh GPT Timer B Interval Load Register
Writing this field loads the counter for Timer B. A read returns the current value of TBILR.

16.5.1.12 TAMATCHR Register (Offset = 30h) [Reset = FFFFFFFFh]

TAMATCHR is shown in #GPT_GPT_MAP1_GPT_ALL_TAMATCHR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TAMATCHR_TABLE.

Return to the Summary Table.

Timer A Match Register
Interrupts can be generated when the timer value is equal to the value in this register in one-shot or periodic mode.
In Edge-Count mode, this register along with TAILR, determines how many edge events are counted.
The total number of edge events counted is equal to the value in TAILR minus this value.
Note that in edge-count mode, when executing an up-count, the value of TAPR and TAILR must be greater than the value of TAPMR and this register.
In PWM mode, this value along with TAILR, determines the duty cycle of the output PWM signal.
When a 16/32-bit GPT is configured to one of the 32-bit modes, TAMATCHR appears as a 32-bit register. (The upper 16-bits correspond to the contents TBMATCHR).
In a 16-bit mode, the upper 16 bits of this register read as 0s and have no effect on the state of TBMATCHR.
Note : This register is updated internally (takes effect) based on TAMR.TAMRSU

Figure 16-20 TAMATCHR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
TAMATCHR
R/W-FFFFFFFFh
Table 16-20 TAMATCHR Register Field Descriptions
Bit Field Type Reset Description
31-0 TAMATCHR R/W FFFFFFFFh GPT Timer A Match Register

16.5.1.13 TBMATCHR Register (Offset = 34h) [Reset = 0000FFFFh]

TBMATCHR is shown in #GPT_GPT_MAP1_GPT_ALL_TBMATCHR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TBMATCHR_TABLE.

Return to the Summary Table.

Timer B Match Register
When a GPT is configured to one of the 32-bit modes, the contents of bits 15:0 in this register are loaded into the upper 16 bits of TAMATCHR.
Reads from this register return the current match value of Timer B and writes are ignored.
In a 16-bit mode, bits 15:0 are used for the match value. Bits 31:16 are reserved in both cases.
Note : This register is updated internally (takes effect) based on TBMR.TBMRSU

Figure 16-21 TBMATCHR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED TBMATCHR
R-0h R/W-FFFFh
Table 16-21 TBMATCHR Register Field Descriptions
Bit Field Type Reset Description
31-16 RESERVED R 0h Reserved
15-0 TBMATCHR R/W FFFFh GPT Timer B Match Register

16.5.1.14 TAPR Register (Offset = 38h) [Reset = 00000000h]

TAPR is shown in #GPT_GPT_MAP1_GPT_ALL_TAPR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TAPR_TABLE.

Return to the Summary Table.

Timer A Pre-scale
This register allows software to extend the range of the timers when they are used individually.
When in one-shot or periodic down count modes, this register acts as a true prescaler for the timer counter.
When acting as a true prescaler, the prescaler counts down to 0 before the value in TAR and TAV registers are incremented.
In all other individual/split modes, this register is a linear extension of the upper range of the timer counter, holding bits 23:16 in the 16-bit modes of the 16/32-bit GPT.

Figure 16-22 TAPR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED TAPSR
R-0h R/W-0h
Table 16-22 TAPR Register Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h Reserved
7-0 TAPSR R/W 0h Timer A Pre-scale.
Prescaler ratio in one-shot and periodic count mode is TAPSR + 1, that is:
0: Prescaler ratio = 1
1: Prescaler ratio = 2
2: Prescaler ratio = 3
...
255: Prescaler ratio = 256

16.5.1.15 TBPR Register (Offset = 3Ch) [Reset = 00000000h]

TBPR is shown in #GPT_GPT_MAP1_GPT_ALL_TBPR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TBPR_TABLE.

Return to the Summary Table.

Timer B Pre-scale
This register allows software to extend the range of the timers when they are used individually.
When in one-shot or periodic down count modes, this register acts as a true prescaler for the timer counter.
When acting as a true prescaler, the prescaler counts down to 0 before the value in TBR and TBV registers are incremented.
In all other individual/split modes, this register is a linear extension of the upper range of the timer counter, holding bits 23:16 in the 16-bit modes of the 16/32-bit GPT.

Figure 16-23 TBPR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED TBPSR
R-0h R/W-0h
Table 16-23 TBPR Register Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h Reserved
7-0 TBPSR R/W 0h Timer B Pre-scale.
Prescale ratio in one-shot and periodic count mode is TBPSR + 1, that is:
0: Prescaler ratio = 1
1: Prescaler ratio = 2
2: Prescaler ratio = 3
...
255: Prescaler ratio = 256

16.5.1.16 TAPMR Register (Offset = 40h) [Reset = 00000000h]

TAPMR is shown in #GPT_GPT_MAP1_GPT_ALL_TAPMR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TAPMR_TABLE.

Return to the Summary Table.

Timer A Pre-scale Match
This register allows software to extend the range of the TAMATCHR when used individually.

Figure 16-24 TAPMR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED TAPSMR
R-0h R/W-0h
Table 16-24 TAPMR Register Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h Reserved
7-0 TAPSMR R/W 0h GPT Timer A Pre-scale Match. In 16 bit mode this field holds bits 23 to 16.

16.5.1.17 TBPMR Register (Offset = 44h) [Reset = 00000000h]

TBPMR is shown in #GPT_GPT_MAP1_GPT_ALL_TBPMR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TBPMR_TABLE.

Return to the Summary Table.

Timer B Pre-scale Match
This register allows software to extend the range of the TBMATCHR when used individually.

Figure 16-25 TBPMR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED TBPSMR
R-0h R/W-0h
Table 16-25 TBPMR Register Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h Reserved
7-0 TBPSMR R/W 0h GPT Timer B Pre-scale Match Register. In 16 bit mode this field holds bits 23 to 16.

16.5.1.18 TAR Register (Offset = 48h) [Reset = FFFFFFFFh]

TAR is shown in #GPT_GPT_MAP1_GPT_ALL_TAR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TAR_TABLE.

Return to the Summary Table.

Timer A Register
This register shows the current value of the Timer A counter in all cases except for Input Edge Count and Time modes. In the Input Edge Count mode, this register contains the number of edges that
have occurred. In the Input Edge Time mode, this register contains the time at which the last edge event took place.
When a GPT is configured to one of the 32-bit modes, this register appears as a 32-bit register (the upper 16-bits correspond to the contents of the Timer B (TBR) register). In
the16-bit Input Edge Count, Input Edge Time, and PWM modes, bits 15:0 contain the value of the counter and bits 23:16 contain the value of the prescaler, which is the upper 8 bits of the count. Bits
31:24 always read as 0. To read the value of the prescaler in 16-bit One-Shot and Periodic modes, read bits [23:16] in the TAV register. To read the value of the prescalar in periodic snapshot
mode, read the Timer A Prescale Snapshot (TAPS) register.

Figure 16-26 TAR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
TAR
R-FFFFFFFFh
Table 16-26 TAR Register Field Descriptions
Bit Field Type Reset Description
31-0 TAR R FFFFFFFFh GPT Timer A Register
Based on the value in the register field TAMR.TAILD, this register is updated with the value from TAILR register either on the next cycle or on the next timeout.
A read returns the current value of the Timer A Count Register, in all cases except for Input Edge count and Timer modes.
In the Input Edge Count Mode, this register contains the number of edges that have occurred. In the Input Edge Time mode, this register contains the time at which the last edge event took place.

16.5.1.19 TBR Register (Offset = 4Ch) [Reset = 0000FFFFh]

TBR is shown in #GPT_GPT_MAP1_GPT_ALL_TBR_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TBR_TABLE.

Return to the Summary Table.

Timer B Register
This register shows the current value of the Timer B counter in all cases except for Input Edge Count and Time modes. In the Input Edge Count mode, this register contains the number of edges that
have occurred. In the Input Edge Time mode, this register contains the time at which the last edge event took place.
When a GPTM is configured to one of the 32-bit modes, the contents of bits 15:0 in this register are loaded into the upper 16 bits of the TAR register. Reads from this register return the current
value of Timer B. In a 16-bit mode, bits 15:0 contain the value of the counter and bits 23:16 contain the value of the prescaler in Input Edge Count, Input Edge Time, and PWM modes, which is the
upper 8 bits of the count. Bits 31:24 always read as 0. To read the value of the prescaler in 16-bit One-Shot and Periodic modes, read bits [23:16] in the TBV register. To read the value of the
prescalar in periodic snapshot mode, read the Timer B Prescale Snapshot (TBPS) register.

Figure 16-27 TBR Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
TBR
R-FFFFh
Table 16-27 TBR Register Field Descriptions
Bit Field Type Reset Description
31-0 TBR R FFFFh GPT Timer B Register
Based on the value in the register field TBMR.TBILD, this register is updated with the value from TBILR register either on the next cycle or on the next timeout.
A read returns the current value of the Timer B Count Register, in all cases except for Input Edge count and Timer modes.
In the Input Edge Count Mode, this register contains the number of edges that have occurred. In the Input Edge Time mode, this register contains the time at which the last edge event took place.

16.5.1.20 TAV Register (Offset = 50h) [Reset = FFFFFFFFh]

TAV is shown in #GPT_GPT_MAP1_GPT_ALL_TAV_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TAV_TABLE.

Return to the Summary Table.

Timer A Value
When read, this register shows the current, free-running value of Timer A in all modes. Softwarecan use this value to determine the time elapsed between an interrupt and the ISR entry when using
the snapshot feature with the periodic operating mode. When written, the value written into this register is loaded into the TAR register on the next clock cycle.
When a 16/32-bit GPTM is configured to one of the 32-bit modes, this register appears as a 32-bit register (the upper 16-bits correspond to the contents of the GPTM Timer B Value (TBV) register). In a 16-bit mode, bits 15:0 contain the value of the counter and bits 23:16 contain the current, free-running value of the prescaler, which is the upper 8 bits of the count in Input Edge Count, Input Edge Time, PWM and one-shot or periodic up count modes. In one-shot or periodic
down count modes, the prescaler stored in 23:16 is a true prescaler, meaning bits 23:16 count down before decrementing the value in bits 15:0. The prescaler in bits 31:24 always reads as 0.

Figure 16-28 TAV Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
TAV
R/W-FFFFFFFFh
Table 16-28 TAV Register Field Descriptions
Bit Field Type Reset Description
31-0 TAV R/W FFFFFFFFh GPT Timer A Register
A read returns the current, free-running value of Timer A in all modes.
When written, the value written into this register is loaded into the
TAR register on the next clock cycle.
Note: In 16-bit mode, only the lower 16-bits of this
register can be written with a new value. Writes to the prescaler bits have no effect

16.5.1.21 TBV Register (Offset = 54h) [Reset = 0000FFFFh]

TBV is shown in #GPT_GPT_MAP1_GPT_ALL_TBV_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TBV_TABLE.

Return to the Summary Table.

Timer B Value
When read, this register shows the current, free-running value of Timer B in all modes. Software can use this value to determine the time elapsed between an interrupt and the ISR entry. When
written, the value written into this register is loaded into the TBR register on the next clock cycle.
When a 16/32-bit GPTM is configured to one of the 32-bit modes, the contents of bits 15:0 in this register are loaded into the upper 16 bits of the TAV register. Reads from this register return
the current free-running value of Timer B. In a 16-bit mode, bits 15:0 contain the value of the counter and bits 23:16 contain the current, free-running value of the prescaler, which is the upper 8 bits of
the count in Input Edge Count, Input Edge Time, PWM and one-shot or periodic up count modes.
In one-shot or periodic down count modes, the prescaler stored in 23:16 is a true prescaler, meaning bits 23:16 count down before decrementing the value in bits 15:0. The prescaler in bits 31:24 always reads as 0.

Figure 16-29 TBV Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
TBV
R/W-FFFFh
Table 16-29 TBV Register Field Descriptions
Bit Field Type Reset Description
31-0 TBV R/W FFFFh GPT Timer B Register
A read returns the current, free-running value of Timer B in all modes.
When written, the value written into this register is loaded into the
TBR register on the next clock cycle.
Note: In 16-bit mode, only the lower 16-bits of this
register can be written with a new value. Writes to the prescaler bits have no effect

16.5.1.22 TAPS Register (Offset = 5Ch) [Reset = 00000000h]

TAPS is shown in #GPT_GPT_MAP1_GPT_ALL_TAPS_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TAPS_TABLE.

Return to the Summary Table.

Timer A Pre-scale Snap-shot
Based on the value in the register field TAMR.TAILD, this register is updated with the value from TAPR register either on the next cycle or on the next timeout.
This register shows the current value of the Timer A pre-scaler in the 16-bit mode.

Figure 16-30 TAPS Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED PSS
R-0h R-0h
Table 16-30 TAPS Register Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h Reserved
7-0 PSS R 0h GPT Timer A Pre-scaler

16.5.1.23 TBPS Register (Offset = 60h) [Reset = 00000000h]

TBPS is shown in #GPT_GPT_MAP1_GPT_ALL_TBPS_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TBPS_TABLE.

Return to the Summary Table.

Timer B Pre-scale Snap-shot
Based on the value in the register field TBMR.TBILD, this register is updated with the value from TBPR register either on the next cycle or on the next timeout.
This register shows the current value of the Timer B pre-scaler in the 16-bit mode.

Figure 16-31 TBPS Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED PSS
R-0h R-0h
Table 16-31 TBPS Register Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h Reserved
7-0 PSS R 0h GPT Timer B Pre-scaler

16.5.1.24 TAPV Register (Offset = 64h) [Reset = 00000000h]

TAPV is shown in #GPT_GPT_MAP1_GPT_ALL_TAPV_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TAPV_TABLE.

Return to the Summary Table.

Timer A Pre-scale Value
This register shows the current value of the Timer A free running pre-scaler in the 16-bit mode.

Figure 16-32 TAPV Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED PSV
R-0h R-0h
Table 16-32 TAPV Register Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h Reserved
7-0 PSV R 0h GPT Timer A Pre-scaler Value

16.5.1.25 TBPV Register (Offset = 68h) [Reset = 00000000h]

TBPV is shown in #GPT_GPT_MAP1_GPT_ALL_TBPV_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_TBPV_TABLE.

Return to the Summary Table.

Timer B Pre-scale Value
This register shows the current value of the Timer B free running pre-scaler in the 16-bit mode.

Figure 16-33 TBPV Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RESERVED PSV
R-0h R-0h
Table 16-33 TBPV Register Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h Reserved
7-0 PSV R 0h GPT Timer B Pre-scaler Value

16.5.1.26 DMAEV Register (Offset = 6Ch) [Reset = 00000000h]

DMAEV is shown in #GPT_GPT_MAP1_GPT_ALL_DMAEV_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_DMAEV_TABLE.

Return to the Summary Table.

DMA Event
This register allows software to enable/disable GPT DMA trigger events.

Figure 16-34 DMAEV Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
RESERVED TBMDMAEN CBEDMAEN CBMDMAEN TBTODMAEN
R-0h R/W-0h R/W-0h R/W-0h R/W-0h
7 6 5 4 3 2 1 0
RESERVED TAMDMAEN RESERVED CAEDMAEN CAMDMAEN TATODMAEN
R/W-0h R/W-0h R-0h R/W-0h R/W-0h R/W-0h
Table 16-34 DMAEV Register Field Descriptions
Bit Field Type Reset Description
31-12 RESERVED R 0h Software should not rely on the value of a reserved field. Writing any other value may result in undefined behavior.
11 TBMDMAEN R/W 0h GPT Timer B Match DMA Trigger Enable
10 CBEDMAEN R/W 0h GPT Timer B Capture Event DMA Trigger Enable
9 CBMDMAEN R/W 0h GPT Timer B Capture Match DMA Trigger Enable
8 TBTODMAEN R/W 0h GPT Timer B Time-Out DMA Trigger Enable
7-5 RESERVED R/W 0h Software should not rely on the value of a reserved field. Writing any other value may result in undefined behavior.
4 TAMDMAEN R/W 0h GPT Timer A Match DMA Trigger Enable
3 RESERVED R 0h Reserved
2 CAEDMAEN R/W 0h GPT Timer A Capture Event DMA Trigger Enable
1 CAMDMAEN R/W 0h GPT Timer A Capture Match DMA Trigger Enable
0 TATODMAEN R/W 0h GPT Timer A Time-Out DMA Trigger Enable

16.5.1.27 VERSION Register (Offset = FB0h) [Reset = 00000400h]

VERSION is shown in #GPT_GPT_MAP1_GPT_ALL_VERSION_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_VERSION_TABLE.

Return to the Summary Table.

Peripheral Version
This register provides information regarding the GPT version

Figure 16-35 VERSION Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
VERSION
R-400h
Table 16-35 VERSION Register Field Descriptions
Bit Field Type Reset Description
31-0 VERSION R 400h Timer Revision.

16.5.1.28 ANDCCP Register (Offset = FB4h) [Reset = 00000000h]

ANDCCP is shown in #GPT_GPT_MAP1_GPT_ALL_ANDCCP_FIGURE and described in #GPT_GPT_MAP1_GPT_ALL_ANDCCP_TABLE.

Return to the Summary Table.

Combined CCP Output
This register is used to logically AND CCP output pairs for each timer

Figure 16-36 ANDCCP Register
31 30 29 28 27 26 25 24
RESERVED
R-0h
23 22 21 20 19 18 17 16
RESERVED
R-0h
15 14 13 12 11 10 9 8
RESERVED
R-0h
7 6 5 4 3 2 1 0
RESERVED LD_TO_EN CCP_AND_EN
R-0h R/W-0h R/W-0h
Table 16-36 ANDCCP Register Field Descriptions
Bit Field Type Reset Description
31-2 RESERVED R 0h Reserved
1 LD_TO_EN R/W 0h PWM assertion would happen at timeout
0: PWM assertion happens when counter matches load value
1: PWM assertion happens at timeout of the counter
0 CCP_AND_EN R/W 0h Enables AND operation of the CCP outputs for timers A and B.
0 : PWM outputs of Timer A and Timer B are the internal generated PWM signals of the respective timers.
1 : PWM output of Timer A is ANDed version of Timer A and Timer B PWM signals and Timer B PWM ouput is Timer B PWM signal only.