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

no-image

PIC16C923-04I/CL

Manufacturer Part Number
PIC16C923-04I/CL
Description
8-Bit CMOS Microcontroller with LCD Driver
Manufacturer
Microchip Technology
Datasheet
DECFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
1997 Microchip Technology Inc.
If Skip:
Decrement f, Skip if 0
[ label ] DECFSZ f,d
0
d
(f) - 1
skip if result = 0
None
The contents of register 'f' are decre-
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, then a NOP is
executed instead making it a 2T
tion.
1
1(2)
Before Instruction
After Instruction
(2nd Cycle)
Operation
HERE
CONTINUE •
Decode
Q1
Q1
00
No-
PC
CNT
if CNT =
PC
if CNT
PC
f
[0,1]
127
(destination);
=
=
=
=
register 'f'
Operation
1011
Read
Q2
Q2
DECFSZ
GOTO
No-
address
CNT - 1
0,
address CONTINUE
0,
address HERE+1
Operation
dfff
Process
data
Q3
Q3
No-
HERE
CNT, 1
LOOP
CY
destination
Operation
instruc-
ffff
Write to
Q4
Q4
No-
GOTO
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
2nd Cycle
1st Cycle
Unconditional Branch
[ label ]
0
k
PCLATH<4:3>
None
GOTO is an unconditional branch. The
eleven bit immediate value is loaded
into PC bits <10:0>. The upper bits of
PC are loaded from PCLATH<4:3>.
GOTO is a two cycle instruction.
1
2
After Instruction
Operation
Decode
GOTO THERE
Q1
10
No-
k
PC<10:0>
PIC16C9XX
2047
PC =
GOTO k
Operation
literal 'k'
1kkk
Read
Q2
No-
DS30444E - page 127
PC<12:11>
Address THERE
Operation
Process
kkkk
data
Q3
No-
Operation
kkkk
Write to
Q4
No-
PC

Related parts for PIC16C923-04I/CL