English
Language : 

PIC18F87J10 Datasheet, PDF (311/394 Pages) Microchip Technology – 64/80-Pin High-Performance, 1-Mbit Flash Microcontrollers with nanoWatt Technology
PIC18F87J10 FAMILY
RCALL
Relative Call
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
RCALL n
-1024 ≤ n ≤ 1023
(PC) + 2 → TOS,
(PC) + 2 + 2n → PC
None
1101 1nnn nnnn nnnn
Subroutine call with a jump up to 1K
from the current location. First, return
address (PC + 2) is pushed onto the
stack. Then, add the 2’s complement
number ‘2n’ to the PC. Since the PC will
have incremented to fetch the next
instruction, the new address will be
PC + 2 + 2n. This instruction is a
two-cycle instruction.
1
Cycles:
Q Cycle Activity:
Q1
Decode
No
operation
2
Q2
Read literal
‘n’
PUSH PC
to stack
No
operation
Q3
Process
Data
No
operation
Q4
Write to PC
No
operation
Example:
HERE
RCALL Jump
Before Instruction
PC = Address (HERE)
After Instruction
PC = Address (Jump)
TOS = Address (HERE + 2)
RESET
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Reset
RESET
None
Reset all registers and flags that are
affected by a MCLR Reset.
All
0000 0000 1111 1111
This instruction provides a way to
execute a MCLR Reset in software.
1
1
Q2
Start
reset
Q3
No
operation
Q4
No
operation
Example:
RESET
After Instruction
Registers =
Flags* =
Reset Value
Reset Value
 2005 Microchip Technology Inc.
Advance Information
DS39663A-page 309