PIC16C770 Microchip Technology Inc., PIC16C770 Datasheet - Page 141

no-image

PIC16C770

Manufacturer Part Number
PIC16C770
Description
18/20-pin, 8-bit Cmos Microcontrollers With 10/12-bit A/d
Manufacturer
Microchip Technology Inc.
Datasheet
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
RETURN
Syntax:
Operands:
Operation:
Status Affected:
Description:
2002 Microchip Technology Inc.
Return from Interrupt
[ label ]
None
TOS
1
None
Return with Literal in W
[ label ]
0
k
TOS
None
The W register is loaded with the
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:
PIC16C717/770/771
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.
See Section 12.8 for more
details.
f
[0,1]
f
[0,1]
WDT prescaler,
TO,
PD
127
127
C
C
WDT,
RRF f,d
RLF
SLEEP
DS41120B-page 139
Register f
Register f
f,d

Related parts for PIC16C770