|
PIC24EP256GU810-I Datasheet, PDF (485/622 Pages) Electronic Film Capacitors, Inc. – 16-Bit Microcontrollers and Digital Signal Controllers with High-Speed PWM, USB and Advanced Analog | |||
|
◁ |
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
30.0 INSTRUCTION SET SUMMARY
Note:
This data sheet summarizes the features of
the dsPIC33EPXXX(GP/MC/MU)806/810/
814 and PIC24EPXXX(GP/GU)810/814
families of devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to the related section of the
âdsPIC33E/PIC24E Family Reference
Manualâ, which is available from the
Microchip web site (www.microchip.com).
The dsPIC33EP instruction set is almost identical to
that of the dsPIC30F and dsPIC33F. The PIC24EP
instruction set is almost identical to that of the PIC24F
and PIC24H.
Most instructions are a single program memory word
(24 bits). Only three instructions require two program
memory locations.
Each single-word instruction is a 24-bit word, divided
into an 8-bit opcode, which specifies the instruction
type and one or more operands, which further specify
the operation of the instruction.
The instruction set is highly orthogonal and is grouped
into five basic categories:
⢠Word or byte-oriented operations
⢠Bit-oriented operations
⢠Literal operations
⢠DSP operations
⢠Control operations
Table 30-1 lists the general symbols used in describing
the instructions.
The dsPIC33E instruction set summary in Table 30-2
lists all the instructions, along with the status flags
affected by each instruction.
Most word or byte-oriented W register instructions
(including barrel shift instructions) have three
operands:
⢠The first source operand, which is typically a
register âWbâ without any address modifier
⢠The second source operand, which is typically a
register âWsâ with or without an address modifier
⢠The destination of the result, which is typically a
register âWdâ with or without an address modifier
However, word or byte-oriented file register instructions
have two operands:
⢠The file register specified by the value âfâ
⢠The destination, which could be either the file
register âfâ or the W0 register, which is denoted as
âWREGâ
Most bit-oriented instructions (including simple rotate/
shift instructions) have two operands:
⢠The W register (with or without an address
modifier) or file register (specified by the value of
âWsâ or âfâ)
⢠The bit in the W register or file register (specified
by a literal value or indirectly by the contents of
register âWbâ)
The literal instructions that involve data movement can
use some of the following operands:
⢠A literal value to be loaded into a W register or file
register (specified by âkâ)
⢠The W register or file register where the literal
value is to be loaded (specified by âWbâ or âfâ)
However, literal instructions that involve arithmetic or
logical operations use some of the following operands:
⢠The first source operand, which is a register âWbâ
without any address modifier
⢠The second source operand, which is a literal
value
⢠The destination of the result (only if not the same
as the first source operand), which is typically a
register âWdâ with or without an address modifier
The MAC class of DSP instructions can use some of the
following operands:
⢠The accumulator (A or B) to be used (required
operand)
⢠The W registers to be used as the two operands
⢠The X and Y address space prefetch operations
⢠The X and Y address space prefetch destinations
⢠The accumulator write-back destination
The other DSP instructions do not involve any
multiplication and can include:
⢠The accumulator to be used (required)
⢠The source or destination operand (designated as
Wso or Wdo, respectively) with or without an
address modifier
⢠The amount of shift specified by a W register âWnâ
or a literal value
The control instructions can use some of the following
operands:
⢠A program memory address
⢠The mode of the table read and table write
instructions
ï£ 2009-2012 Microchip Technology Inc.
DS70616G-page 485
|
▷ |