PIC16CR58A Microchip Technology, PIC16CR58A Datasheet - Page 51

no-image

PIC16CR58A

Manufacturer Part Number
PIC16CR58A
Description
ROM-Based 8-Bit CMOS Microcontroller Series
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16CR58A-04/P042
Manufacturer:
MOTOROLA
Quantity:
80
OPTION
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example
RETLW
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
TABLE
1998 Microchip Technology Inc.
Before Instruction
After Instruction
Before Instruction
After Instruction
W
OPTION =
W
W
=
=
Load OPTION Register
[ label ]
None
(W)
The content of the W register is loaded
into the OPTION register.
1
1
=
Return with Literal in W
[ label ]
0
k
TOS
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.
1
2
CALL TABLE ;W contains
ADDWF PC
RETLW k1
RETLW k2
RETLW kn
0x07
value of k8
0000
OPTION
1000
k
0x07
0x07
(W);
OPTION
255
PC
OPTION
0000
RETLW k
kkkk
;table offset
;value.
;W now has table
;value.
;W = offset
;Begin table
;
; End of table
0010
kkkk
Preliminary
RLF
Syntax:
Operands:
Operation:
Status Affected: C
Encoding:
Description:
Words:
Cycles:
Example:
RRF
Syntax:
Operands:
Operation:
Status Affected: C
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
Before Instruction
After Instruction
REG1
C
REG1
W
C
REG1
C
REG1
W
C
Rotate Left f through Carry
[ label ] RLF
0
d
See description below
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'.
1
1
RLF
=
=
=
=
=
Rotate Right f through Carry
[ label ]
0
d
See description below
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 register 'f'.
1
1
RRF
=
=
=
=
=
0011
0011
f
f
[0,1]
[0,1]
1110 0110
0
1110 0110
1100 1100
1
1110 0110
0
1110 0110
0111 0011
0
C
C
31
31
REG1,0
REG1,0
RRF f,d
PIC16C5X
01df
00df
register 'f'
register 'f'
f,d
DS30453B-page 51
ffff
ffff

Related parts for PIC16CR58A