Instruction Set
www.ti.com
1060
SPNU563A–March 2018
Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
High-End Timer (N2HET) Module
23.6 Instruction Set
23.6.1 Instruction Summary
Table 23-73 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)
ACMP Angle Compare Ch - 1
ACNT Angle Count 9h - 2
ADCNST Add Constant 5h - 2
ADC Add with Carry and Shift 4h C[25:23] = 011, C5 = 1 1-3
ADD Add and Shift 4h C[25:23] = 001, C5 = 1 1-3
ADM32 Add Move 32 4h C[25:23] = 000, C5 = 1 1-2
AND Bitwise AND and Shift 4h C[25:23] = 010, C5 = 1 1-3
APCNT Angle Period Count Eh - 1-2
BR Branch Dh - 1
CNT Count 6h - 1-2
DADM64 Data Add Move 64 2h - 2
DJZ Decrement and Jump if -zero Ah P[7:6] = 10 1
ECMP Equality Compare 0h C[6:5] = 00 1
ECNT Event Count Ah P[7:6] = 01 1
MCMP Magnitude Compare 0h C[6] = 1 1
MOV32 Move 32 4h C[5] = 0 1-2
MOV64 Move 64 1h - 1
OR Bitwise OR 4h C[25:23] = 100, C5 = 1 1-3
PCNT Period/Pulse Count 7h - 1
PWCNT Pulse Width Count Ah P[7:6] = 11 1
RADM64 Register Add Move 64 3h - 1
RCNT Ratio Count Ah P[7:6] = 00, P[0] = 1 3
SBB Subtract with Borrow and Shift 4h C[25:23] =110, C[5] = 1 1-3
SCMP Sequence Compare 0h C[6:5] = 01 1
SCNT Step Count Ah P[7:6] = 00, P[0] = 0 3
SHFT Shift Fh C[3] = 0 1
SUB Subtract and Shift 4h C[25:23] = 101, C[5] = 1 1-3
WCAP Software Capture Word Bh - 1
WCAPE Software Capture Word and Event Count 8h - 1
XOR Bitwise Exclusive-Or and Shift 4h C[25:23] = 111, C[5] = 1 1-3