PIC16C641 Datasheet

  • PIC16C641

  • 8-Bit EPROM Microcontrollers with Analog Comparators

  • 661.21KB

  • 137页

  • MICROCHIP   MICROCHIP

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC16C64X & PIC16C66X
SUBLW
Syntax:
Operands:
Operation:
Status
Affected:
Encoding:
Description:
Subtract W from Literal
[
label
]
SUBLW k
0
鈮?/div>
k
鈮?/div>
255
k - (W)
鈫?(W)
C, DC, Z
11
110x
kkkk
kkkk
Operation:
Status
Affected:
Encoding:
Description:
SUBWF
Syntax:
Operands:
Subtract W from f
[
label
]
0
鈮?/div>
f
鈮?/div>
127
d
鈭?/div>
[0,1]
(f) - (W)
鈫?(dest)
C, DC, Z
00
0010
dfff
ffff
SUBWF f,d
The W register is subtracted (2鈥檚 com-
plement method) from the eight bit literal
'k'. The result is placed in the W register.
Words:
Cycles:
Example 1:
1
1
SUBLW
0x02
W
C
=
=
1
?
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'.
Words:
Cycles:
Example 1:
1
1
SUBWF
REG1
W
C
Before Instruction
REG1,1
=
=
=
3
2
?
Before Instruction
After Instruction
W
C
=
=
1
1; result is positive
Example 2:
Before Instruction
W
C
=
=
2
?
After Instruction
REG1
W
C
=
=
=
1
2
1; result is positive
After Instruction
W
C
=
=
0
1; result is zero
Example 2:
Before Instruction
REG1
W
C
=
=
=
2
2
?
Example 3:
Before Instruction
W
C
=
=
3
?
After Instruction
REG1
W
C
=
=
=
0
2
1; result is zero
After Instruction
W =
C
=
tive
0xFF
0; result is nega-
Example 3:
Before Instruction
REG1
W
C
=
=
=
1
2
?
After Instruction
REG1
W
C
=
=
=
0xFF
2
0; result is negative
DS30559A-page 84
1996 Microchip Technology Inc.

PIC16C641 PDF文件相关型号

PIC16C642

PIC16C641相关型号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

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

建议反馈

联系人:

联系方式:

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