參數(shù)資料
型號: PIC12C67X
廠商: Microchip Technology Inc.
英文描述: 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory
中文描述: 8引腳,8位CMOS微控制器與A / D轉(zhuǎn)換器和EEPROM數(shù)據(jù)存儲器
文件頁數(shù): 81/129頁
文件大?。?/td> 931K
代理商: PIC12C67X
1999 Microchip Technology Inc.
DS30561B-page 81
PIC12C67X
SWAPF
Syntax:
Operands:
Swap Nibbles in f
[ label SWAPF f,d
0
f
127
d
[0,1]
(f<3:0>)
(dest<7:4>),
(f<7:4>)
(dest<3:0>)
None
Operation:
Status Affected:
Encoding:
Description:
00
1110
dfff
ffff
The upper and lower nibbles of
register ’f’ are exchanged. If ’d’ is
0, the result is placed in W regis-
ter. If ’d’ is 1, the result is placed in
register ’f’.
1
1
Words:
Cycles:
Example
SWAPF
REG,
Before Instruction
0
REG1
=
0xA5
After Instruction
REG1
W
=
=
0xA5
0x5A
TRIS
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Load TRIS Register
[ label TRIS
5
f
7
(W)
TRIS register f;
None
f
00
0000
0110
0fff
The instruction is supported for
code compatibility with the
PIC16C5X products. Since TRIS
registers are readable and writ-
able, the user can directly address
them.
1
1
Words:
Cycles:
Example
To maintain upward compatibility
with future PIC12C67X products,
do not use this instruction.
XORLW
Syntax:
Exclusive OR Literal with W
[ label
XORLW k
0
k
255
(W) .XOR. k
→ (
W)
Z
Operands:
Operation:
Status Affected:
Encoding:
Description:
11
1010
kkkk
kkkk
The contents of the W register
are XOR’ed with the eight bit lit-
eral 'k'. The result is placed in the
W register.
1
1
Words:
Cycles:
Example:
XORLW
Before Instruction
0xAF
W
=
0xB5
After Instruction
W
=
0x1A
XORWF
Syntax:
Operands:
Exclusive OR W with f
[
label
] XORWF f,d
0
f
127
d
[0,1]
(W) .XOR. (f)
→ (
dest)
Z
Operation:
Status Affected:
Encoding:
Description:
00
0110
dfff
ffff
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
1
Words:
Cycles:
Example
XORWF
Before Instruction
REG
1
REG
W
=
=
0xAF
0xB5
After Instruction
REG
W
=
=
0x1A
0xB5
相關PDF資料
PDF描述
pic12ce674 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter(具A/D轉(zhuǎn)換器和EEPROM數(shù)據(jù)存儲器的8位微控制器)
PIC12CR509A 8-Pin, 8-Bit CMOS Microcontrollers
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
相關代理商/技術參數(shù)
參數(shù)描述
PIC12C67X_13 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory
PIC12CE-04/EJW 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CE-04/EP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CE-04/ESM 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CE-04/ESN 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers