Example: biology

16-Bit MCU and DSC Programmer’s Reference Manual

2005-2018 Microchip Technology MCU and DSC programmer s Reference ManualHigh-Performance Microcontrollers (MCU)and Digital Signal Controllers (DSC)DS70000157G-page 2 2005-2018 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.

This manual is a software developer’s reference for the 16-bit MCU and DSC device families. It describes the Instruction Set in detail and also provides general information to assist the development of software for the 16-bit MCU and DSC device families. This manual does not include detailed information about the core, peripherals, system ...

Tags:

  Manual, Reference, Programmer, And dsc programmer s reference manual

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of 16-Bit MCU and DSC Programmer’s Reference Manual

1 2005-2018 Microchip Technology MCU and DSC programmer s Reference ManualHigh-Performance Microcontrollers (MCU)and Digital Signal Controllers (DSC)DS70000157G-page 2 2005-2018 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 rights unless otherwise the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular Microchip Data Sheet.

3 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. Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code.

4 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:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India.

5 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 MANAGEMENT SYSTEM CERTIFIE D BY DNV == ISO/TS 16949 == TrademarksThe Microchip name and logo, the Microchip logo, AnyRate, AVR, AVR logo, AVR Freaks, BeaconThings, BitCloud, CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KEELOQ, KEELOQ logo, Kleer, LANC heck, LINK MD, maXStylus, maXTouch, MediaLB, megaAVR, MOST, MOST logo, MPLAB, OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip Designer, QTouch, RightTouch, SAM-BA, SpyNIC, SST, SST Logo, SuperFlash, tinyAVR, UNI/O, and XMEGA are registered trademarks of Microchip Technology Incorporated in the and other , The Embedded Control Solutions Company.

6 EtherSynch, Hyper Speed Control, HyperLight Load, IntelliMOS, mTouch, Precision Edge, and Quiet-Wire are registered trademarks of Microchip Technology Incorporated in the Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BodyCom, chipKIT, chipKIT logo, CodeGuard, CryptoAuthentication, CryptoCompanion, CryptoController, dsPICDEM, , Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, Mindi, MiWi, motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, , PICkit, PICtail, PureSilicon, QMatrix, RightTouch logo, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O, , SQI, SuperSwitcher, SuperSwitcher II, Total Endurance, TSHARC, USBC heck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the and other is a service mark of Microchip Technology Incorporated in the Storage Technology is a registered trademark of Microchip Technology Inc.

7 In other is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. 2005-2018, Microchip Technology Incorporated, All Rights Reserved. ISBN: 978-1-5224-2896-1 2005-2018 Microchip Technology 3 PAGESECTION 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 916-Bit MCU and DSC Core Architecture Overview .. 10 programmer s Model .. 14 Working Register Array.

8 19 Default Working Register (WREG) .. 20 Software Stack Frame Pointer .. 20 Software Stack Pointer .. 20 Stack Pointer Limit Register (SPLIM) .. 20 Accumulator A and Accumulator B (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices) .. 20 Program Counter .. 21 TBLPAG Register .. 21 PSVPAG Register (PIC24F, PIC24H, dsPIC30F and dsPIC33F) .. 21 RCOUNT Register .. 21 DCOUNT Register (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices) .. 21 DOSTART Register (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices) .. 22 DOEND Register (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices) .. 22 STATUS Register .. 22 Core Control Register .. 25 Shadow Registers.

9 25DO Stack (dsPIC33E and dsPIC33C Devices) .. 26 SECTION 3. INSTRUCTION SET OVERVIEW 39 Introduction .. 40 Instruction Set Overview .. 40 Instruction Set Summary Tables .. 42 SECTION 4. INSTRUCTION SET DETAILS 53 Data Addressing Modes .. 54 Program Addressing Modes .. 63 Instruction Stalls .. 64 Byte Operations .. 66 Word Move Operations .. 68 Using 10-Bit Literal Operands .. 71 Bit Field Insert/Extract Instructions (dsPIC33C Devices Only) .. 71 Software Stack Pointer and Frame Pointer .. 72 Conditional Branch Instructions .. 78Z Status Bit .. 79 Assigned Working Register Usage .. 80 DSP Data Formats (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices).

10 83 Accumulator Usage (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices) .. 85 Accumulator Access (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices) .. 86 DSP MAC Instructions (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices) .. 86 Table of ContentsDS70000157G-page 4 2005-2018 Microchip Technology MCU and DSC programmer s Reference ManualDSP Accumulator Instructions (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices) .. 90 Scaling Data with the FBCL Instruction (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices) .. 90 Data Range Limit Instructions (dsPIC33C Devices Only) .. 92 Normalizing the Accumulator with the FBCL Instruction (dsPIC30F, dsPIC33F, dsPIC33E and dsPIC33C Devices).


Related search queries