參數資料
型號: PIC12CR509A
廠商: Microchip Technology Inc.
英文描述: 8-Pin, 8-Bit CMOS Microcontrollers
中文描述: 8引腳,8位CMOS微控制器
文件頁數: 57/113頁
文件大?。?/td> 1604K
代理商: PIC12CR509A
1999 Microchip Technology Inc.
DS40139E-page 57
PIC12C5XX
SWAPF
Syntax:
Swap Nibbles in f
[ label SWAPF f,d
0
f
31
d
[0,1]
(f<3:0>)
(dest<7:4>);
(f<7:4>)
(dest<3:0>)
None
Operands:
Operation:
Status Affected:
Encoding:
0011
10df
ffff
Description:
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’.
Words:
Cycles:
1
1
Example
SWAPF
REG1,
0
Before Instruction
REG1
After Instruction
REG1
W
=
0xA5
=
=
0xA5
0X5A
TRIS
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Load TRIS Register
[ label TRIS
f =
6
(W)
TRIS register f
None
f
0000
0000
0fff
TRIS register ’f’ (f = 6) is loaded with the
contents of the W register
1
1
Words:
Cycles:
Example
TRIS
GPIO
Before Instruction
W
After Instruction
TRIS
=
0XA5
=
0XA5
Note:
f = 6 for PIC12C5XX only.
XORLW
Syntax:
Exclusive OR literal with W
[label
0
k
255
(W) .XOR. k
→ (
W)
Z
XORLW k
Operands:
Operation:
Status Affected:
Encoding:
Description:
1111
kkkk
kkkk
The contents of the W register are
XOR’ed with the eight bit literal 'k'. The
result is placed in the W register.
Words:
Cycles:
1
1
Example:
Before Instruction
W
After Instruction
W
XORLW
0xAF
=
0xB5
=
0x1A
XORWF
Exclusive OR W with f
Syntax:
Operands:
[ label XORWF f,d
0
f
31
d
[0,1]
(W) .XOR. (f)
→ (
dest)
Z
Operation:
Status Affected:
Encoding:
0001
10df
ffff
Description:
Exclusive OR the contents of the W
register with 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'.
1
Words:
Cycles:
Example
1
XORWF
REG,1
Before Instruction
REG
W
After Instruction
REG
W
=
=
0xAF
0xB5
=
=
0x1A
0xB5
相關PDF資料
PDF描述
PIC12F505 8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F506 8/14-Pin, 8-Bit Flash Microcontroller
PIC12F510_07 8/14-Pin, 8-Bit Flash Microcontroller
PIC12F510 8/14-Pin, 8-Bit Flash Microcontroller
PIC12F519 8-Pin, 8-Bit Flash Microcontroller
相關代理商/技術參數
參數描述
PIC12CR509A-04/EJW 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CR509A-04/EP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CR509A-04/ESM 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CR509A-04/ESN 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CR509A-04/IJW 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers