Instruction Set
1099
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
High-End Timer (N2HET) Module
23.6.3.13 MCMP (Magnitude Compare)
Syntax
MCMP {
[brk={OFF | ON}]
[next={label | 9-bit unsigned integer}]
[reqnum={3-bit unsigned integer}
[request={NOREQ | GENREQ | QUIET}]
[hr_lr={LOW |HIGH}]
[angle_comp={OFF | ON}]
[savesub={OFF | ON}]
[control={OFF | ON}]
[en_pin_action={OFF | ON}]
[cond_addr={label | 9-bit unsigned integer}]
pin={pin number}
order={REG_GE_DATA | DATA_GE_REG}
[action={CLEAR | SET | PULSELO | PULSEHI}]
reg={A | B | R | S | T | NONE}
[irq={OFF | ON}]
[data={25-bit unsigned integer]
[hr_data={7-bit unsigned integer}]
}
Figure 23-150. MCMP Program Field (P31:P0)
31
26 25
23
22
21
13 12
9
8
7
6
5
4
0
0
Request
Number
BRK
Next program address
0000
hr_lr
Angle
comp.
Res.
Save
sub.
Res.
6
3
1
9
4
1
1
1
1
5
Figure 23-151. MCMP Control Field (C31:C0)
31
29
28
27
26
25
23
22
21
16
Reserved
Request type
Control
Reserved
En. pin
action
Conditional address
3
2
1
3
1
9
15
13
12
8
7
6
5
4
3
2
1
0
Conditional address
Pin select
Ext
Reg
1
Order
Action
Register select
Int.
ena
9
5
1
1
1
2
2
1
Figure 23-152. MCMP Data Field (D31:D0)
31
7
6
0
Data
HR Data
25
7
Cycles
One
Register modified
T (if save sub bit P[5] is set)