Datasheet
www.ti.com
Instruction Set
23.5.3.10 DJZ (Decrement and Jump if Zero)
†
Syntax DJZ {
[brk={OFF | ON}]
[next={label | 9-bit unsigned integer}]
[reqnum={3-bit unsigned integer}
[request={NOREQ | GENREQ | QUIET}]
[control={OFF | ON}]
[cond_addr={label | 9-bit unsigned integer}]
[reg={A | B | T | NONE}]
[irq={OFF | ON}]
[data={25-bit unsigned integer]
}
Figure 23-100. DJZ Program Field (P31:P0)
31 26 25 23 22 21 13 12 9 8 7 6 5 0
0 Request BRK Next program address 1010 Res. 10 Reserved
Number
6 3 1 9 4 1 2 6
Figure 23-101. DJZ Control Field (C31:C0)
31 29 28 27 26 25 22 21 16
Reserved Request type Control Reserved Conditional address
3 2 1 4 9
15 13 12 8 7 3 2 1 0
Conditional address Reserved Register select Int. ena
9 10 2 1
Figure 23-102. DJZ Data Field (D31:D0)
31 7 6 0
Data Reserved
25 7
Cycles One
Register modified Selected register (A, B, or T)
† DJNZ is also supported syntax. The functionality of the two instruction names is identical.
Description This instruction defines a virtual down counter used for delayed execution of
certain instructions (to generate minimum on/off times). When DJZ is
executed with counter value not zero, the counter value is decremented. If the
counter value is zero, the counter remains zero until it is reloaded with a non-
zero value. The program flow can be modified when down counter value is
zero by using the conditional address.
1025
SPNU562–May 2014 High-End Timer (N2HET) Module
Submit Documentation Feedback
Copyright © 2014, Texas Instruments Incorporated