Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
© 2005-2011 Microchip Technology Inc. DS70157F-page 3
PAGE
SECTION 1. INTRODUCTION 5
Introduction ......................................................................................................................................................... 6
Manual Objective ................................................................................................................................................ 6
Development Support ......................................................................................................................................... 6
Style and Symbol Conventions ........................................................................................................................... 7
Instruction Set Symbols ...................................................................................................................................... 8
SECTION 2. PROGRAMMER’S MODEL 9
16-bit MCU and DSC Core Architecture Overview ............................................................................................ 10
Programmer’s Model ......................................................................................................................................... 14
Working Register Array ..................................................................................................................................... 18
Default Working Register (WREG) .................................................................................................................... 18
Software Stack Frame Pointer .......................................................................................................................... 18
Software Stack Pointer ...................................................................................................................................... 19
Stack Pointer Limit Register (SPLIM) ................................................................................................................ 19
Accumulator A and Accumulator B (dsPIC30F, dsPIC33F and dsPIC33E Devices) ........................................ 19
Program Counter ............................................................................................................................................... 19
TBLPAG Register .............................................................................................................................................. 19
PSVPAG Register (PIC24F, PIC24H, dsPIC30F and dsPIC33F) ..................................................................... 19
RCOUNT Register ............................................................................................................................................ 20
DCOUNT Register (dsPIC30F, dsPIC33F and dsPIC33E Devices) ................................................................. 20
DOSTART Register (dsPIC30F, dsPIC33F and dsPIC33E Devices) ............................................................... 20
DOEND Register (dsPIC30F, dsPIC33F and dsPIC33E Devices) .................................................................... 21
STATUS Register .............................................................................................................................................. 21
Core Control Register ....................................................................................................................................... 24
Shadow Registers ............................................................................................................................................. 24
DO Stack (dsPIC33E Devices) .......................................................................................................................... 25
SECTION 3. INSTRUCTION SET OVERVIEW 37
Introduction ....................................................................................................................................................... 38
Instruction Set Overview ................................................................................................................................... 38
Instruction Set Summary Tables ....................................................................................................................... 40
SECTION 4. INSTRUCTION SET DETAILS 51
Data Addressing Modes .................................................................................................................................... 52
Program Addressing Modes .............................................................................................................................. 61
Instruction Stalls ................................................................................................................................................ 62
Byte Operations ................................................................................................................................................ 64
Word Move Operations ..................................................................................................................................... 66
Using 10-bit Literal Operands ........................................................................................................................... 69
Software Stack Pointer and Frame Pointer ....................................................................................................... 70
Conditional Branch Instructions ........................................................................................................................ 76
Z Status Bit ........................................................................................................................................................ 77
Assigned Working Register Usage .................................................................................................................... 78
DSP Data Formats (dsPIC30F, dsPIC33F and dsPIC33E Devices) ................................................................. 81
Accumulator Usage (dsPIC30F, dsPIC33F and dsPIC33E Devices) ................................................................ 83
Accumulator Access (dsPIC30F, dsPIC33F and dsPIC33E Devices) .............................................................. 84
DSP MAC Instructions (dsPIC30F, dsPIC33F and dsPIC33E Devices) ........................................................... 84
DSP Accumulator Instructions (dsPIC30F, dsPIC33F and dsPIC33E Devices) ............................................... 88
Scaling Data with the FBCL Instruction (dsPIC30F, dsPIC33F and dsPIC33E Devices) ................................. 88
Normalizing the Accumulator with the FBCL Instruction (dsPIC30F, dsPIC33F and dsPIC33E Devices) ........ 90
Table of Contents
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf