Instruction Set
1060
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
High-End Timer (N2HET) Module
23.6 Instruction Set
23.6.1 Instruction Summary
presents a list of the instructions in the N2HET instruction set. The pages following describe
each instruction in detail.
(1)
Cycles refers to the clock cycle of the N2HET module; which on most devices is VCLK2. (Check the device datasheet
description of clock domains to confirm). If the high-resolution prescale value is set to /1, then this is also the same as the
number of HR clock cycles.
Table 23-73. Instruction Summary
Abbreviation
Instruction Name
Opcode
Sub-Opcode
Cycles
(1)
Angle Compare
Ch
-
1
Angle Count
9h
-
2
Add Constant
5h
-
2
Add with Carry and Shift
4h
C[25:23] = 011, C5 = 1
1-3
Add and Shift
4h
C[25:23] = 001, C5 = 1
1-3
Add Move 32
4h
C[25:23] = 000, C5 = 1
1-2
Bitwise AND and Shift
4h
C[25:23] = 010, C5 = 1
1-3
Angle Period Count
Eh
-
1-2
Branch
Dh
-
1
Count
6h
-
1-2
Data Add Move 64
2h
-
2
Decrement and Jump if -zero
Ah
P[7:6] = 10
1
Equality Compare
0h
C[6:5] = 00
1
Event Count
Ah
P[7:6] = 01
1
Magnitude Compare
0h
C[6] = 1
1
Move 32
4h
C[5] = 0
1-2
Move 64
1h
-
1
Bitwise OR
4h
C[25:23] = 100, C5 = 1
1-3
Period/Pulse Count
7h
-
1
Pulse Width Count
Ah
P[7:6] = 11
1
Register Add Move 64
3h
-
1
Ratio Count
Ah
P[7:6] = 00, P[0] = 1
3
Subtract with Borrow and Shift
4h
C[25:23] =110, C[5] = 1
1-3
Sequence Compare
0h
C[6:5] = 01
1
Step Count
Ah
P[7:6] = 00, P[0] = 0
3
Shift
Fh
C[3] = 0
1
Subtract and Shift
4h
C[25:23] = 101, C[5] = 1
1-3
Software Capture Word
Bh
-
1
Software Capture Word and Event Count
8h
-
1
Bitwise Exclusive-Or and Shift
4h
C[25:23] = 111, C[5] = 1
1-3