PIC16F506 Microchip Technology, PIC16F506 Datasheet - Page 79

no-image

PIC16F506

Manufacturer Part Number
PIC16F506
Description
(PIC12F510 / PIC16F506) 8-Bit Flash Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F506-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506-I/SL
Manufacturer:
MICROCHIP
Quantity:
16 700
Part Number:
PIC16F506-I/SL
Manufacturer:
Microchip Technology
Quantity:
33 360
Part Number:
PIC16F506-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506-I/SL
0
Part Number:
PIC16F506-I/ST
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
PIC16F506-I/ST
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506-I/ST
0
Company:
Part Number:
PIC16F506-I/ST
Quantity:
8 000
Part Number:
PIC16F506T-I/SL
Manufacturer:
ROHM
Quantity:
400 000
Part Number:
PIC16F506T-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506T-I/ST
Manufacturer:
ZARLINK
Quantity:
320
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 PIC16F506