![Maxim Integrated MAX31782 User Manual Download Page 190](http://html1.mh-extra.com/html/maxim-integrated/max31782/max31782_user-manual_1744481190.webp)
MaximIntegrated 20-7
MAX31782 User’s Guide
Revision 0; 8/11
CPLC
ComplementCarryFlag
Description:
Logically complements the Carry (C) Flag .
StatusFlags:
C
Operation:
C
←
~C
Encoding:
15
0
1101
1010
0010
1010
Example(s):
; C = 0
CPL C
; C
←
1
{L/S}DJNZLC[n],src
DecrementCounter,{Long/Short}JumpNotZero
Description:
The DJNZ LC[n], src instruction performs a conditional branch based upon the associated Loop
Counter (LC[n]) reg- ister . The DJNZ LC[n], src instruction decrements the LC[n] loop counter
and branches to the address defined by src if the decremented counter has not reached 0000h .
Program branches can be relative or absolute depending upon the src specifier and may be quali-
fied by using the ‘L’ or ‘S’ prefixes as documented in the JUMP src op code .
StatusFlags:
None
Operation:
LC[n]
←
LC[n] -1
LC[n] <> 0: IP
←
IP + src (relative) -or- src (absolute)
LC[n] = 0: IP
←
IP + 1
Encoding:
15
0
f10n
1101
ssss
ssss
Example(s):
MOVE LC[1], #10h
; counter = 10h
Loop:
ADD @DP[0]++
; add data memory contents to Acc, post-inc DP[0]
DJNZ LC[1], Loop
; 16 times before falling through