PIC16CR83 Datasheet

  • PIC16CR83

  • 18-pin Flash/EEPROM 8-Bit Microcontrollers

  • 2018.18KB

  • 125页

  • MICROCHIP

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC16F8X
SUBWF
Syntax:
Operands:
Operation:
Encoding:
Description:
Subtract W from f
[
label
]
0
鈮?/div>
f
鈮?/div>
127
d
鈭?/div>
[0,1]
(f) - (W)
鈫?(destination)
00
0010
dfff
ffff
SUBWF f,d
SWAPF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Swap Nibbles in f
[
label
] SWAPF f,d
0
鈮?/div>
f
鈮?/div>
127
d
鈭?/div>
[0,1]
(f<3:0>)
鈫?/div>
(destination<7:4>),
(f<7:4>)
鈫?/div>
(destination<3:0>)
None
00
Status Affected: C, DC, Z
Subtract (2鈥檚 complement method) W reg-
ister 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'.
1110
dfff
ffff
Words:
Cycles:
Q Cycle Activity:
1
1
Q1
Decode
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:
Q2
Read
register 'f'
1
1
Q1
Decode
Q3
Process
data
Q4
Write to
destination
Cycles:
Q Cycle Activity:
Q2
Read
register 'f'
Q3
Process
data
Q4
Write to
destination
Example 1:
SUBWF
Before Instruction
REG1
W
C
Z
=
=
=
=
REG1,1
Example
3
2
?
?
SWAPF REG,
0
Before Instruction
REG1
=
0xA5
After Instruction
REG1
W
=
=
0xA5
0x5A
After Instruction
REG1
W
C
Z
=
=
=
=
1
2
1; result is positive
0
Example 2:
Before Instruction
REG1
W
C
Z
=
=
=
=
2
2
?
?
TRIS
Syntax:
Operands:
Operation:
Encoding:
Description:
Load TRIS Register
[label]
5
鈮?/div>
f
鈮?/div>
7
(W)
鈫?/div>
TRIS register f;
00
TRIS
f
After Instruction
REG1
W
C
Z
=
=
=
=
0
2
1; result is zero
1
Status Affected: None
0000
0110
0fff
The instruction is supported for code
compatibility with the PIC16C5X prod-
ucts. Since TRIS registers are read-
able and writable, the user can directly
address them.
Example 3:
Before Instruction
REG1
W
C
Z
=
=
=
=
1
2
?
?
Words:
Cycles:
Example
1
1
To maintain upward compatibility
with future PIC16CXX products,
do not use this instruction.
After Instruction
REG1
W
C
Z
=
=
=
=
0xFF
2
0; result is negative
0
1998 Microchip Technology Inc.
DS30430C-page 67

PIC16CR83 PDF文件相关型号

PIC16CR84

PIC16CR83相关型号PDF文件下载

  • 型号
    版本
    描述
    厂商
    下载
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    Microcontroller
    MICROCHIP
  • 英文版
    Microcontroller 
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM-Based 8-Bit CMOS Microcontroller
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    ETC
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    28-Pin Programmable Mixed Signal Controller
    Microchip
  • 英文版
    EPROM Memory Programming Specification
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM/ROM-Based 8-Bit CMOS Microcontroller Series
    MICROCHIP

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!