Transcription of High-performance Digital Signal Controllers
1 2008 Microchip Technology Programmer sReference ManualHigh-performanceDigital Signal ControllersDS70157C-page ii 2008 Microchip Technology contained in this publication regarding deviceapplications and the like is provided only for your convenienceand may be superseded by updates. It is your responsibility toensure that your application meets with your MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS ORIMPLIED, WRITTEN OR ORAL, STATUTORY OROTHERWISE, RELATED TO THE INFORMATION,INCLUDING BUT NOT LIMITED TO ITS CONDITION,QUALITY, performance , MERCHANTABILITY ORFITNESS FOR PURPOSE.
2 Microchip disclaims all liabilityarising from this information and its use. Use of Microchipdevices in life support and/or safety applications is entirely atthe buyer s risk, and the buyer agrees to defend, indemnify andhold harmless Microchip from any and all damages, claims,suits, or expenses resulting from such use. No licenses areconveyed, implicitly or otherwise, under any Microchipintellectual property Microchip name and logo, the Microchip logo, Accuron, dsPIC, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, PRO MATE, rfPIC and SmartShunt are registered trademarks of Microchip Technology Incorporated in the and other , Linear Active Thermistor, MXDEV, MXLAB, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the Age, Application Maestro, CodeGuard, dsPICDEM, , dsPICworks, dsSPEAK, ECAN.
3 ECONOMONITOR, FanSense, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM, , PICtail, PIC32 logo, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total Endurance, UNI/O, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the and other is a service mark of Microchip Technology Incorporated in the other trademarks mentioned herein are property of their respective companies. 2008, Microchip Technology Incorporated, Printed in the , All Rights Reserved. Printed on recycled the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular Microchip Data Sheet.
4 Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code.
5 Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as unbreakable. Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of ourproducts. Attempts to break Microchip s code protection feature may be a violation of the Digital Millennium Copyright Act. If such actsallow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that received ISO/TS-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India.
6 The Company s quality system processes and procedures are for its PIC MCUs and dsPIC DSCs, KEELOQ code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. 2008 Microchip Technology iiiPAGESECTION 1. INTRODUCTION 1-1 Introduction .. 1-2 Manual Objective .. 1-2 Development Support .. 1-2 Style and Symbol Conventions .. 1-3 Instruction Set Symbols .. 1-4 Related Documents .. 1-5 SECTION 2. PROGRAMMER S MODEL 2-1dsPIC30F/33F Overview.
7 2-2 Programmer s Model .. 2-3 SECTION 3. INSTRUCTION SET OVERVIEW 3-1 Introduction .. 3-2 Instruction Set Overview .. 3-2 Instruction Set Summary Tables .. 3-3 SECTION 4. INSTRUCTION SET DETAILS 4-1 Data Addressing Modes .. 4-2 Program Addressing Modes .. 4-11 Instruction Stalls .. 4-12 Byte Operations .. 4-13 Word Move Operations .. 4-16 Using 10-bit Literal Operands .. 4-19 Software Stack Pointer and Frame Pointer .. 4-20 Conditional Branch Instructions .. 4-25Z Status Bit .. 4-26 Assigned Working Register Usage .. 4-27 DSP Data Formats .. 4-30 Accumulator Usage .. 4-32 Accumulator Access.
8 4-33 DSP MAC Instructions .. 4-33 DSP Accumulator Instructions .. 4-37 Scaling Data with the FBCL Instruction .. 4-37 Normalizing the Accumulator with the FBCL Instruction .. 4-39 SECTION 5. INSTRUCTION DESCRIPTIONS 5-1 Instruction Symbols .. 5-2 Instruction Encoding Field Descriptors Introduction .. 5-2 Instruction Description Example .. 5-6 Instruction Descriptions .. 5-7 SECTION 6. REFERENCE 6-1 Data Memory Map .. 6-2 Core Special Function Register Map .. 6-4 Program Memory Map .. 6-7 Instruction Bit Map .. 6-9 Instruction Set Summary Table .. 6-11 Revision History .. 6-19 Table of ContentsDS70157C - page iv 2008 Microchip Technology Programmer s Reference ManualNOTES: 2008 Microchip Technology 1-1 Introduction1 Section 1.
9 IntroductionHIGHLIGHTSThis section of the manual contains the following .. Objective .. Support .. and Symbol Conventions .. Set Symbols .. Documents .. 1-5dsPIC30F/33F Programmer s Reference ManualDS70157C-page 1-2 2008 Microchip Technology IntroductionMicrochip Technology s focus is on products that meet the needs of the embedded controlmarket. We are a leading supplier of: 8-bit general purpose microcontrollers (PIC MCUs) dsPIC30F and dsPIC33F 16-bit Digital Signal Controllers (dsPIC DSCs) Speciality and standard nonvolatile memory devices Security devices (KEELOQ Security ICs) Application-specific standard productsPlease request a Microchip Product Selector Guide for a listing of all the interesting products thatwe have to offer.
10 This literature can be obtained from your local sales office or downloaded fromthe Microchip web site ( ). Manual ObjectivePICmicro MCU, dsPIC30F and dsPIC33F devices are grouped by the size of their InstructionWord and Data Path. The current device families :12-bit Instruction Word length, 8-bit Data :14-bit Instruction Word length, 8-bit Data :16-bit Instruction Word length, 8-bit Data :16-bit Instruction Word length, 8-bit Data :24-bit Instruction Word length, 16-bit Data PathThis manual is a software developer s reference for the dsPIC30F and dsPIC33F DSC devicefamilies.