參數(shù)資料
型號: PIC12F506
廠商: Microchip Technology Inc.
英文描述: 8/14-Pin, 8-Bit Flash Microcontroller
中文描述: 8/14-Pin,8位閃存微控制器
文件頁數(shù): 79/116頁
文件大?。?/td> 907K
代理商: PIC12F506
2007 Microchip Technology Inc.
Preliminary
DS41268C-page 77
PIC12F510/16F506
RETLW
Return with Literal in W
Syntax:
Operands:
Operation:
[
label
] RETLW k
0
k
255
k
(W);
TOS
PC
None
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.
Status Affected:
Description:
RLF
Rotate Left f through Carry
Syntax:
Operands:
[
label
] RLF f,d
0
f
31
d
[0,1]
See description below
C
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’.
Operation:
Status Affected:
Description:
RRF
Rotate Right f through Carry
Syntax:
Operands:
[
label
] RRF f,d
0
f
31
d
[0,1]
See description below
C
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’.
Operation:
Status Affected:
Description:
C
register ‘f’
C
register ‘f’
SLEEP
Enter SLEEP Mode
Syntax:
Operands:
Operation:
[
label
]
None
00h
WDT;
0
WDT prescaler;
1
TO;
0
PD
TO, PD, RBWUF
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.
SLEEP
Status Affected:
Description:
SUBWF
Subtract W from f
Syntax:
[
label
]
SUBWF f,d
Operands:
0
f
31
d
[0,1]
(f) – (W)
→ (
dest)
C, DC, Z
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’.
Operation:
Status Affected:
Description:
SWAPF
Swap Nibbles in f
Syntax:
Operands:
[
label
] SWAPF f,d
0
f
31
d
[0,1]
(f<3:0>)
(dest<7:4>);
(f<7:4>)
(dest<3:0>)
None
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’.
Operation:
Status Affected:
Description:
相關(guān)PDF資料
PDF描述
PIC12F510_07 8/14-Pin, 8-Bit Flash Microcontroller
PIC12F510 8/14-Pin, 8-Bit Flash Microcontroller
PIC12F519 8-Pin, 8-Bit Flash Microcontroller
PIC12F609 8-bit PIC㈢ Microcontrollers with High Voltage Support and Fan Control Capabilities
PIC12F615 8-bit PIC㈢ Microcontrollers with High Voltage Support and Fan Control Capabilities
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC12F508 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F508_07 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F508_09 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F508_1 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F508-E 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers