PIC12F510-I/L MICROCHIP [Microchip Technology], PIC12F510-I/L Datasheet - Page 79

no-image

PIC12F510-I/L

Manufacturer Part Number
PIC12F510-I/L
Description
8/14-Pin, 8-Bit Flash Microcontroller
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
RETLW
Syntax:
Operands:
Operation:
Status Affected: None
Description:
RLF
Syntax:
Operands:
Operation:
Status Affected: C
Description:
RRF
Syntax:
Operands:
Operation:
Status Affected: C
Description:
© 2006 Microchip Technology Inc.
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.
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’.
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’.
k
f
f
[0,1]
[0,1]
(W);
C
C
31
31
255
PC
RETLW k
RRF f,d
register ‘f’
register ‘f’
f,d
Preliminary
SLEEP
Syntax:
Operands:
Operation:
Status Affected: TO, PD, RBWUF
Description:
SUBWF
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Description:
SWAPF
Syntax:
Operands:
Operation:
Status Affected: None
Description:
PIC12F510/16F506
Enter SLEEP Mode
[label ]
None
00h
0
1
0
Time-out Status bit (TO) is set.
The Power-down Status bit (PD) is
cleared.
RBWUF is unaffected.
The WDT and its prescaler are
cleared.
The processor is put into Sleep
mode with the oscillator stopped.
See Section 10.9 “Power-Down
Mode (Sleep)” on Sleep for more
details.
Subtract W from f
[label ]
0
d
(f) – (W)
Subtract (2’s complement method)
the W register from register ‘f’. If ‘d’
is ‘0’, the result is stored in the W
register. If ‘d’ is ‘1’, the result is
stored back in register ‘f’.
Swap Nibbles in f
[ label ] SWAPF f,d
0
d
(f<3:0>)
(f<7:4>)
The upper and lower nibbles of
register ‘f’ are exchanged. If ‘d’ is
‘0’, the result is placed in W
register. If ‘d’ is ‘1’, the result is
placed in register ‘f’.
f
f
[0,1]
[0,1]
WDT prescaler;
TO;
PD
31
31
WDT;
SLEEP
SUBWF f,d
(dest<7:4>);
(dest<3:0>)
dest)
DS41268B-page 77

Related parts for PIC12F510-I/L