Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

PIC16C505T-04/SL View Datasheet(PDF) - Microchip Technology

Part Name
Description
MFG CO.
PIC16C505T-04/SL
Microchip
Microchip Technology Microchip
'PIC16C505T-04/SL' PDF : 85 Pages View PDF
PIC16C505
RLF
Syntax:
Rotate Left f through Carry
[ label ]
RLF f,d
Operands:
Operation:
0 f 31
d [0,1]
See description below
Status Affected: C
Encoding:
0011 01df ffff
Description:
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 regis-
ter ’f’.
C
register ’f’
Words:
1
Cycles:
1
Example:
RLF
REG1,0
Before Instruction
REG1 = 1110 0110
C
=0
After Instruction
REG1 =
W
=
C
=
1110 0110
1100 1100
1
RRF
Rotate Right f through Carry
Syntax:
[ label ] RRF f,d
Operands:
0 f 31
d [0,1]
Operation:
See description below
Status Affected: C
Encoding:
0011 00df ffff
Description:
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’.
C
register ’f’
Words:
1
Cycles:
1
Example:
RRF
REG1,0
Before Instruction
REG1 = 1110 0110
C
=0
After Instruction
REG1 =
W
=
C
=
1110 0110
0111 0011
0
DS40192C-page 48
© 1999 Microchip Technology Inc.
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]