dsPIC30F
10.0
dsPIC30F INSTRUCTION SET
10.2.1
MULTI-CYCLE INSTRUCTIONS
As the instruction summary tables show, most
10.1
Introduction
instructions execute in a single cycle, with the following
The dsPIC30F instruction set provides a broad suite of
instructions, which supports traditional microcontroller
applications, and a class of instructions, which
supports math intensive applications. Since almost all
of the functionality of the PICmicro instruction set has
been maintained, this hybrid instruction set allows a
friendly DSP migration path for users already familiar
with the PICmicro ? microcontroller.
exceptions:
? Instructions DO, MOV.D, POP.D, PUSH.D,
TBLRDH, TBLRDL, TBLWTH and TBLWTL
require 2 cycles to execute.
? Instructions DIVF, DIV.S, DIV.U are single-
cycle instructions, which should be executed 18
consecutive times as the target REPEAT
instruction.
? Instructions that change the program counter also
10.2
Instruction Set Overview
require 2 cycles to execute, with the extra cycle
The dsPIC30F instruction set contains 84 instructions,
which can be grouped into the ten functional categories
shown in Table 10-1. Table 10-2 defines the symbols
used in the instruction summary tables, Table 10-3
through Table 10-12. These tables define the syntax,
description, storage and execution requirements
for each instruction. Storage requirements are repre-
sented in 24-bit instruction words, and execution
requirements are represented in instruction cycles.
executed as a NOP . SKIP instructions, which skip
over a 2-word instruction, require 3 instruction
cycles to execute, with 2 cycles executed as a
NOP .
? The RETFIE, RETLW and RETURN are a
special case of an instruction that changes the
program counter. These execute in 3 cycles,
unless an exception is pending, and then they
execute in 2 cycles.
Most instructions have several different addressing
modes and execution flows, which require different
instruction variants. For instance, there are six unique
ADD instructions and each instruction variant has its
own instruction encoding.
Note:
Instructions that access program memory
as data, using Program Space Visibility,
incur some cycle count overhead. See the
dsPIC30F Family Reference Manual
(DS70046) for details.
TABLE 10-1:
dsPIC30F INSTRUCTION
10.2.2
MULTI-WORD INSTRUCTIONS
GROUPS
As the instruction summary tables show, almost all
Functional Group
Move Instructions
Math Instructions
Logic Instructions
Rotate/Shift Instructions
Summary Table
instructions consume one instruction word (24 bits),
with the exception of the CALL, DO and GOTO
instructions, which are flow instructions listed in
Table 10-9. These instructions require two words of
memory because their opcodes embed large literal
operands.
Bit Instructions
Compare/Skip Instructions
Program Flow Instructions
Shadow/Stack Instructions
Control Instructions
DSP Instructions
DS70043F-page 34
? 2005 Microchip Technology Inc.
相关PDF资料
MA320002 MODULE PLUG-IN PIC32 USB OTG
MA320011 MODULE PLUG-IN PIC32MX220F32D
MA330024 MODULE PLUG-IN DSPIC33F 100TQFP
MA330027 MODULE PLUG-IN DSPIC33F 100TQFP
MA330029 MODULE PLUG-IN DSPIC33FJ16GP102
MA9D00-42 DSUB CONN W/DIAGNOSTIC PORT STRT
MAI ADAPTER PUSH-ON/M-SWTCH ATTCHMNT
MAV0020RP VARISTOR ARRY 2ELEMENT 120V 0405
相关代理商/技术参数
MA300013 制造商:Microchip Technology Inc 功能描述:Tools Development kit Kit Con
MA300014 功能描述:子卡和OEM板 dsPIC30F 80L Plug In Sample (6014A) RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300015 功能描述:子卡和OEM板 dsPIC30F 80L Plug In Sample (6010A). RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300016 功能描述:子卡和OEM板 dsPICDEM 80-PIN PIM RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300118 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300128 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300140 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300228 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit