The external RAM of the 8051 microcontroller uses a 6116

Publisher:AningmengLatest update time:2015-08-04 Source: dpj100Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Assume that the microcontroller uses 8051, the external ROM is not expanded, and the external RAM uses a 6116. Program the contents of the 10B of the internal ROM starting from the 0100H unit to the 10B of the external RAM starting from the 100H unit.
Solution: MOV R2, #00H; source data buffer address offset 00H A MOV R3, #0AH; byte length R3
MOV DPTR, #0100H; source data buffer first address DPTR
MOV A, R2; source address offset A
MOVC A, @A+DPTR; transfer a data
MOVX @DPTR, A
INC DPTR ; Source address (destination address) plus 1
DJNZ R3,L1 ; All data transmitted? Not yet, transfer to L1 to continue transmission


SJMP $ ; End
 
Keywords:MCU Reference address:The external RAM of the 8051 microcontroller uses a 6116

Previous article:Send the contents of the accumulator ACC through the serial assembly language source program
Next article:Programming of display program for single chip microcomputer application system

Recommended ReadingLatest update time:2024-11-16 13:30

Design of power-free electronic lock system based on STCl2C2052 single-chip microcomputer
O Introduction At present, there are many electronic locks based on IC card design on the market, which are widely used in hotels, apartments, warehouses, schools and other places. These occasions can provide good DC or AC power, and the control part of the electronic lock can easily obtain stable power for a long ti
[Microcontroller]
Design of power-free electronic lock system based on STCl2C2052 single-chip microcomputer
The microcontroller serial port receive interrupt always receives 00 00 00 00
Found a problem, serial port reception interrupt Sendstring("Receiving ............ ");             //The serial port sends a string to the terminal, with a carriage return at the end Sendstring("-------------------------- ");    void revdata(void) interrupt 4 { unsigned char temp; while(RI==0); //if(
[Microcontroller]
Count the number of input pulses of MCU pins, edge-triggered programming
Question: Given that negative edge pulses are input from the P3.3 pin of the 51 single-chip microcomputer, and the number of pulses is less than 65535, try to use the /INT1 interrupt to count the number of input pulses. The number of pulses is stored in RAM 30H (low) and 31H (high), and the data processing subrout
[Microcontroller]
What are the tips and tricks about learning and finding a job with microcontrollers?
1. How to study after getting our courseware? Our relative goal is relatively clear, which is to work on projects. Each project also has clear functional requirements. We only need to implement the functions. This is the general direction. How to implement the links when broken down? Four words: Combination of Taoism
[Microcontroller]
What is the difference between 80C51 microcontroller and 8051 microcontroller?
The 80C51 microcontroller was developed on the basis of the 8051, which means that in the development process of the microcontroller, there was the 8051 first, and then the 80C51. The 8051 microcontroller and the 80C51 microcontroller are exactly the same in appearance, and their command systems, pin signals, buses,
[Microcontroller]
Single chip school bell system
Chapter 1 Design Brief 1.1 Purpose and Objectives In school life, every day and the next class are inseparable from the use of bells. The bell can provide reminders for students and teachers in school, and it can also be used as a reminder for students to arrange their schedules, so that we have a sense of time and fo
[Microcontroller]
Single chip school bell system
Microcontroller Learning 3
Addressing mode and instruction system Through the previous study, we have understood the internal structure of the microcontroller, and we also know that to control the microcontroller and let it do things for us, we need to use instructions. We have learned a few instructions, but they are very scattered. From now
[Microcontroller]
Design of carbon monoxide monitoring alarm based on single chip microcomputer
With the rapid development of industry, there are more and more occasions where humans are exposed to harmful gases, which causes more and more harm to humans themselves. In steel mills and iron mills, blast furnace gas (mainly CO), a byproduct of blast furnace production, is sent to the gas pipeline network or to t
[Analog Electronics]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号