PIC16C923-04I/CL Microchip Technology, PIC16C923-04I/CL Datasheet - Page 128

no-image

PIC16C923-04I/CL

Manufacturer Part Number
PIC16C923-04I/CL
Description
8-Bit CMOS Microcontroller with LCD Driver
Manufacturer
Microchip Technology
Datasheet
PIC16C9XX
INCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
DS30444E - page 128
Increment f
[ label ]
0
d
(f) + 1
Z
The contents of register 'f' are incre-
mented. If 'd' is 0 the result is placed in
the W register. If 'd' is 1 the result is
placed back in register 'f'.
1
1
Before Instruction
After Instruction
Decode
INCF
Q1
00
f
[0,1]
127
CNT
Z
CNT
Z
(destination)
INCF f,d
register
1010
CNT, 1
Read
Q2
'f'
=
=
=
=
Process
dfff
data
Q3
0xFF
0
0x00
1
destination
ffff
Write to
Q4
INCFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
If Skip:
Increment f, Skip if 0
[ label ]
0
d
(f) + 1
None
The contents of register 'f' are incre-
mented. If 'd' is 0 the result is placed in
the W register. If 'd' is 1 the result is
placed back in register 'f'.
If the result is 1, the next instruction is
executed. If the result is 0, a NOP is
executed instead making it a 2T
instruction
1
1(2)
Before Instruction
After Instruction
(2nd Cycle)
skip if result = 0
Operation
HERE
CONTINUE •
Decode
Q1
Q1
00
No-
PC
CNT
if CNT=
PC
if CNT
PC
f
[0,1]
1997 Microchip Technology Inc.
127
.
(destination),
INCFSZ f,d
Operation
register 'f'
=
=
=
=
1111
Read
Q2
Q2
No-
INCFSZ
GOTO
address HERE
CNT + 1
0,
address CONTINUE
0,
address HERE +1
Operation
dfff
Process
data
Q3
Q3
No-
LOOP
CNT, 1
destination
CY
Operation
ffff
Write to
Q4
Q4
No-

Related parts for PIC16C923-04I/CL