PIC16C641 Datasheet

  • PIC16C641

  • 8-Bit EPROM Microcontrollers with Analog Comparators

  • 661.21KB

  • 137页

  • MICROCHIP   MICROCHIP

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC16C64X & PIC16C66X
10.0
INSTRUCTION SET SUMMARY
Each PIC16CXX instruction is a 14-bit word divided
into an OPCODE which speci铿乪s the instruction type
and one or more operands which further specify the
operation of the instruction. The PIC16CXX instruction
set summary in Table 10-2 lists
byte-oriented
,
bit-ori-
ented
, and
literal and control
operations. Table 10-1
shows the opcode 铿乪ld descriptions.
For
byte-oriented
instructions, 'f' represents a 铿乴e reg-
ister designator and 'd' represents a destination desig-
nator. The 铿乴e register designator speci铿乪s which 铿乴e
register is to be used by the instruction.
The destination designator speci铿乪s where the result of
the operation is to be placed. If 'd' is zero, the result is
placed in the W register. If 'd' is one, the result is placed
in the 铿乴e register speci铿乪d in the instruction.
For
bit-oriented
instructions, 'b' represents a bit 铿乪ld
designator which selects the number of the bit affected
by the operation, while 'f' represents the number of the
铿乴e in which the bit is located.
For
literal and control
operations, 'k' represents an
eight or eleven bit constant or literal value.
鈥?/div>
Byte-oriented
operations
鈥?/div>
Bit-oriented
operations
鈥?/div>
Literal and control
operations
All instructions are executed within one single instruc-
tion cycle, unless a conditional test is true or the pro-
gram counter is changed as a result of an instruction.
In this case, the execution takes two instruction cycles
with the second cycle executed as a NOP. One instruc-
tion cycle consists of four oscillator periods. Thus, for
an oscillator frequency of 4 MHz, the normal instruction
execution time is 1
s. If a conditional test is true or the
program counter is changed as a result of an instruc-
tion, the instruction execution time is 2
s.
Table 10-2 lists the instructions recognized by the
MPASM assembler.
Figure 10-1 shows the three general formats that the
instructions can have.
Note:
To maintain upward compatibility with
future PIC16CXX products, do not use the
OPTION
and
TRIS
instructions.
All examples use the following format to represent a
hexadecimal number:
0xhh
where h signi铿乪s a hexadecimal digit.
TABLE 10-1:
Field
f
W
b
k
x
OPCODE FIELD
DESCRIPTIONS
Description
Register 铿乴e address (0x00 to 0x7F)
Working register (accumulator)
Bit address within an 8-bit 铿乴e register
Literal 铿乪ld, constant data or label
Don't care location (= 0 or 1)
The assembler will generate code with x = 0. It is the
recommended form of use for compatibility with all
Microchip software tools.
FIGURE 10-1: GENERAL FORMAT FOR
INSTRUCTIONS
Byte-oriented
铿乴e register operations
13
8 7 6
OPCODE
d
f (FILE #)
d = 0 for destination W
d = 1 for destination f
f = 7-bit 铿乴e register address
Bit-oriented
铿乴e register operations
13
10 9
7 6
OPCODE
b (BIT #)
f (FILE #)
b = 3-bit bit address
f = 7-bit 铿乴e register address
Literal and control
operations
General
13
8 7
OPCODE
k = 8-bit immediate value
CALL
and
GOTO
instructions only
13
11
OPCODE
10
k (literal)
0
0
0
Destination select; d = 0: store result in W,
d = 1: store result in 铿乴e register f.
Default is d = 1
label
Label name
d
TOS
PC
Top of Stack
Program Counter
PCLATH
Program Counter High Latch
GIE
Global Interrupt Enable bit
WDT
Watchdog Timer/Counter
TO
Time-out bit
PD
Power-down bit
dest
Destination either the W register or the speci铿乪d
register 铿乴e location
[ ] Options
( )
Contents
0
k (literal)
k = 11-bit immediate value
鈫?/div>
<>
鈭?/div>
Assigned to
Register bit 铿乪ld
In the set of
i
talics
User de铿乶ed term (font is courier)
The instruction set is highly orthogonal and is grouped
into three basic categories:
1996 Microchip Technology Inc.
DS30559A-page 73
This document was created with FrameMaker 4 0 4

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

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

建议反馈

联系人:

联系方式:

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