16F84 MICROCHIP [Microchip Technology], 16F84 Datasheet - Page 60

no-image

16F84

Manufacturer Part Number
16F84
Description
18-pin Flash/EEPROM 8-Bit Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC16F8X
GOTO
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
DS30430C-page 60
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
No-Operat
Decode
GOTO THERE
Q1
10
ion
k
PC<10:0>
2047
PC =
GOTO k
No-Operat
1kkk
literal 'k'
Read
Q2
ion
PC<12:11>
Address THERE
No-Opera
kkkk
Process
data
Q3
tion
No-Operat
kkkk
Write to
Q4
PC
ion
INCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
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
INCF
Decode
Q1
00
f
[0,1]
1998 Microchip Technology Inc.
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

Related parts for 16F84