The external RAM of the 8051 microcontroller uses a 6116 chip. Programming example

Publisher:耿高良Latest update time:2017-10-13 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Assume that the single-chip microcomputer uses 8051, the external ROM is not expanded, and the external RAM uses a 6116. The program will sequentially connect the contents of the 10B starting from the 0100H unit of the internal ROM to the 10B starting from the 100H unit of the external RAM.


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 ;Transmit a data


MOVX @DPTR,A


INC DPTR; Source address (destination address) plus 1


DJNZ R3,L1; All data transmitted? Not yet, switch to L1 to continue transmitting


SJMP $; end


Keywords:MCU Reference address:The external RAM of the 8051 microcontroller uses a 6116 chip. Programming example

Previous article:Using the MCU timer T0 to generate timing pulse programming
Next article:Program to generate continuous rectangular pulses using MCU timer T0 and P1.7 port

Recommended ReadingLatest update time:2024-11-22 18:16

Implementing sensor temperature error compensation using microcontroller software
1 Introduction For high-precision sensors, temperature error has become a serious obstacle to improving their performance, especially in applications where the ambient temperature changes greatly. It is very difficult to rely on the sensor itself to add some simple hardware compensation measures. At present, a lar
[Microcontroller]
Software process to improve the flash erase and write life of MSP430G series microcontrollers
    In embedded design, many application designs need to use EEPROM to store non-volatile data. Due to cost reasons, some microcontrollers do not have EEPROM integrated inside the chip. The MSP430G series processors are low-cost 16-bit processors launched by TI. There is no EEPROM in the MSP430G series microcontroller
[Microcontroller]
Software process to improve the flash erase and write life of MSP430G series microcontrollers
Infineon and GlobalFoundries reach long-term supply agreement for automotive microcontrollers
On January 29, Infineon and GlobalFoundries announced a new multi-year supply agreement for Infineon to produce AURIX™ TC3x 40nm automotive microcontrollers (MCUs) as well as power management and connectivity solutions. The locking in of this new capacity will help meet Infineon’s business growth needs from 2024 to 20
[Automotive Electronics]
Infineon and GlobalFoundries reach long-term supply agreement for automotive microcontrollers
Detailed explanation of MCU quasi-bidirectional port IO
Several IO port configurations of single chip microcomputer   In the study, development and application of microcontrollers, the configuration of IO ports plays an important role in the realization of functions. The following introduces four common configurations. Now many microcontrollers have all four configuratio
[Microcontroller]
Detailed explanation of MCU quasi-bidirectional port IO
#microcontroller# ------ stc89c52 pin description
STC89C52 function brief description: STC89C52 is a low-power, high-performance CMOS 8-bit microcontroller with 8K in-system programmable Flash memory. Manufactured using high-density non-volatile memory technology, it is fully instruction- and pin-compatible with industrial 80C51 products. On-chip Flash allows the pr
[Microcontroller]
#microcontroller# ------ stc89c52 pin description
Microcontroller learning - IIC bus and EEPROM experiment 1
Title: Simple running water lamp experiment. Implemented with EEPROM. Solution: (C language programming) #include reg52.h #include intrins.h #define uchar unsigned char #define uint unsigned int uchar code table ={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f ,0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe}; void delay1(
[Microcontroller]
Freescale MCU KEA128 ADC Learning
The operation mode of this ADC module is actually quite simple. The first thing is configuration. Let’s list what to configure. ADICLK ADC module input clock selection. Bus clock, bus clock divided by 2 or external After ADIV divides the above clock again, it can be used by the ADC core module. MODE Select 8/1
[Microcontroller]
Design of frequency characteristic tester based on single chip microcomputer
 introduction   Frequency characteristic tester is also called scanner. Early frequency characteristic tester was completed by manually changing the frequency point by point. Later, a special scanner was designed according to this method for measuring frequency characteristics. Most of the early measuring instrument
[Microcontroller]
Design of frequency characteristic tester based on single chip microcomputer
Latest Microcontroller Articles
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号