Go to GlobalSpec.com Home
Free Registration 
GlobalSpec Home
Find:      Advanced >>
Toolbar The Engineering Toolbar
The Ultimate Resource for Engineering and Technical Research. (Learn More)
Converting from 8051 to Microchip Assembler: A Quick Reference
Find Products & Suppliers related to
Converting from 8051 to Microchip Assembler: A Quick Reference
 
Research
Converting from 8051 to Microchip Assembler: A Quick Reference
From Microchip Technology, Inc.
 

 
When migrating assembly language programs from one family of microcontrollers to another, the first question is almost always: “What’s the equivalent opcode?” Some operations, like addition and subtraction, are self-evident and practically universal. Other instructions may have some subtle differences in syntax or spelling that make direct conversions a bit trickier. Occasionally, some instructions simply don’t have a direct equivalent in the target set, or an equivalent exists but is explained in different terms. Another question that arises is that of addressing modes. Typically, Direct and Indirect Addressing modes are standard in all architectures. However, they tend to be different in limitations and feature set. To help simplify the conversion process, this application note provides a table of the instruction set of the 8051 8-bit microcontroller family and their equivalents in the PICmicro® instruction sets (Table 1). It is organized alphabetically by the 8051 instruction mnemonic in the first column, followed by the common description of the operation and the closest equivalent opcode or opcode sequence in the Microchip PIC16 and PIC18 instruction sets. In addition, the size of the instructions (in words or bytes, as appropriate) and the number of machine or instruction cycles required for execution are listed for each entry.

Products & Services
Digital signal processors (DSPs) are specialized microprocessors designed specifically for digital signal processing, usually in real-time. DSPs can also be used to perform general-purpose computations, but are not optimized for this function.
Microprocessor chips (MPU) are silicon devices that serve as the central processing unit (CPU) in computers. They contain thousands of electronic components and use a collection of machine instructions to perform mathematical operations and move data from one memory location to another.
Product training is performed by suppliers to teach customers how to use purchased products. Third-party training is not included in this area.
Arithmetic logic units (ALU) perform arithmetic and logic operations on binary data inputs. In some processors, the ALU is divided into two units: an arithmetic unit (AU) and a logic unit (LU).
Flow controllers monitor and maintain proper humidity levels in environmental test applications, or in other areas such as food storage or electronic room regulation.
Back to Top

Product Announcements
Mouser Electronics, Inc. - Microchip Technology’s PIC32 Family
Mouser Electronics, Inc., known for its rapid availability and introduction of the newest products, today announced it is stocking the PIC32 family of 32-bit microcontrollers (MCUs) from Microchip... (read more)
Ramtron International Corporation - VRS51L3xxx: F-RAM Enhanced Versa 8051 MCUs
Ramtron added F-RAM to its fast and flexible Versa 8051s for a quick and reliable nonvolatile data storage and processing system that only a F-RAM enhanced MCU can provide. The VRS51L3xxx is... (read more)
Vitrek Corporation - Digital Storage Scopes 2~4 Channels, 60MHz~250MHz
Instek's Digital Storage Scopes encompasses 31 models, 60MHz~250MHz and up to 25GSa/s E.T. sample rate per channel. Memory for waveform analysis is 25K points. Models include GDS-2062/... (read more)
Silicon Laboratories, Inc. - USB ToolStick
The Silicon Labs ToolStick is an easy to use development system that allows designers to develop and debug application firmware directly on the target microcontroller using the Silicon Labs Integrated... (read more)
Atmel Corporation - Secure MCU: Electronic Transaction Terminal/Reader
The Secure Microcontroller for Electronic Transaction Terminal/Reader is a low-power, high-performance, SC100 32-bit microcontroller based on the ARM® enhanced RISC architecture. This new SC100 core... (read more)
Mouser Electronics, Inc. - Microchip Technology PICDEM™ PIC18 Explorer Board
Mouser Electronics, Inc., known for its rapid introduction of the newest products, today announced it is stocking the PICDEM™ PIC18 Explorer Board from Microchip Technology (Part # DM183032), a... (read more)
TES Electrical Electronic Corp. - NEW ~~ TES-1372 / 1372R CO Analyzer
CO : 0 ~ 999 ppm range MAX Hold with Time stamp Alarm level setting Replaceable sensor Manual Data Memory and Read (999 sets. direct reading from LCD display) Auto Data Memory and Read... (read more)
Automationdirect.com - DL06 Micro PLC -
The DL06 micro PLC combines fixed I/O of 20 inputs and 16 outputs with four option card slots for expansion (discrete, analog, communication modules), all in the same package. Option modules support... (read more)
Back to Top

Topics of Interest
When migrating assembly language programs from one family of microcontrollers to another, the first question is almost always: ?What?s the equivalent opcode?? Some operations, like addition and... (Read More)
AN576 Techniques to Disable Global Interrupts ing this instruction, the program would complete execu- tion of this instruction, and then immediately branch to Author: Mark Palmer the user’s interrupt... (Read More)
Microchip Technology’s PICDEM™ USB Demonstration Board (DM163010) was designed as a development platform for PlC16C745/765 USB microcontrollers, prior to the introduction of the PIC184550 family of... (Read More)
The PIC16C5X/XX microcontrollers from Microchip Technology Inc., provide significant execution speed and code-compaction improvement over any other 8-bit microcontroller in its price range. The... (Read More)
This application note shows how to implement a table look-up for the following devices: ? PIC12CXXX ? PIC12CEXXX ? PIC16CXXX ? PIC16CEXXX ? PIC16FXXX The examples shown are for the PIC16CXXX family. (Read More)
Back to Top

Technical Articles
Converting from 8051 to Microchip Assembler: A Quick Reference (.pdf) - Microprocessors and Microcontrollers
Back to Top
See more product announcements for Digital Signal Processors (DSP)
MC Sequencer

MC Sequencer
Airotronics


MC Series Microprocessors

MC Series Microprocessors
Airotronics


MC Recycle Timer with Dipswitch

MC Recycle Timer with Dipswitch
Airotronics


11 See more product announcements for Digital Signal Processors (DSP)



Home   |   About GlobalSpec   |   Advertise With Us   |   Site Map   |   Top Categories   |   Terms of Use
Privacy Policy   |   Link To Our Site   |   Submit a Site   |   Recommend This Site
©1999-2008 GlobalSpec.  All rights reserved.  GlobalSpec, the GlobalSpec logo, SpecSearch, The Engineering Search Engine and The Engineering
Web are registered trademarks of GlobalSpec, Inc. The Engineering Toolbar and DesignInfo are service marks of GlobalSpec, Inc.
No portion of this site may be copied, retransmitted, reposted, duplicated or otherwise used
without the express written permission of GlobalSpec Inc.   350 Jordan Rd, Troy, NY, 12180