16F876 Microchip Technology, 16F876 Datasheet - Page 143

no-image

16F876

Manufacturer Part Number
16F876
Description
28/40-pin 8-Bit CMOS FLASH Microcontrollers
Manufacturer
Microchip Technology
Datasheet
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
RETURN
Syntax:
Operands:
Operation:
Status Affected:
Description:
1999 Microchip Technology Inc.
[ label ]
None
[ label ]
The W register is loaded with the
Return from Interrupt
TOS
1
None
Return with Literal in W
0
k
TOS
None
eight bit literal ’k’. The program
counter is loaded from the top of
the stack (the return address).
This is a two cycle instruction.
Return from Subroutine
[ label ]
None
TOS
None
Return from subroutine. The stack
is POPed and the top of the stack
(TOS) is loaded into the program
counter. This is a two cycle
instruction.
k
(W);
GIE
255
PC,
PC
PC
RETFIE
RETLW k
RETURN
RLF
Syntax:
Operands:
Operation:
Status Affected:
Description:
RRF
Syntax:
Operands:
Operation:
Status Affected:
Description:
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Description:
Rotate Right f through Carry
[ label ]
0
d
See description below
C
The contents of register ’f’ are
rotated one bit to the right through
the Carry Flag. If ’d’ is 0, the result
is placed in the W register. If ’d’ is
1, the result is placed back in reg-
ister ’f’.
Rotate Left f through Carry
[ label ]
0
d
See description below
C
The contents of register ’f’ are
rotated one bit to the left through
the Carry Flag. If ’d’ is 0, the
result is placed in the W register.
If ’d’ is 1, the result is stored back
in register ’f’.
[ label
]
None
00h
0
1
0
TO, PD
The power-down status bit, PD is
cleared. Time-out status bit, TO
is set. Watchdog Timer and its
prescaler are cleared.
The processor is put into SLEEP
mode with the oscillator stopped.
f
[0,1]
f
[0,1]
WDT prescaler,
TO,
PD
PIC16F87X
127
127
C
C
WDT,
RRF f,d
RLF
SLEEP
Register f
DS30292B-page 143
Register f
f,d

Related parts for 16F876