PIC10F220EOT MICROCHIP [Microchip Technology], PIC10F220EOT Datasheet - Page 51

no-image

PIC10F220EOT

Manufacturer Part Number
PIC10F220EOT
Description
6-Pin, 8-Bit Flash Microcontrollers
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 ]
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’
RLF
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:
PIC10F220/222
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 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]
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
SWAPF f,d
(dest<7:4>);
(dest<3:0>)
dest)
DS41270B-page 49

Related parts for PIC10F220EOT