PIC16C745/P Microchip Technology, PIC16C745/P Datasheet - Page 115

no-image

PIC16C745/P

Manufacturer Part Number
PIC16C745/P
Description
8-Bit CMOS Microcontrollers with USB
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
Advanced Information
RLF
Syntax:
Operands:
Operation:
Status Affected:
Description:
RRF
Syntax:
Operands:
Operation:
Status Affected:
Description:
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Description:
PIC16C745/765
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 13.9 for more
details.
f
[0,1]
f
[0,1]
WDT prescaler,
TO,
PD
127
127
C
C
WDT,
RRF f,d
RLF
SLEEP
Register f
DS41124A-page 115
Register f
f,d

Related parts for PIC16C745/P