Note 1: RAM stores data, ROM stores programs;
Note 2: The EA pin of the microcontroller controls the selection of internal or external memory.
EA = 1: Use the internal ROM to store the program.
EA = 0: Use the external ROM to store the program.
Note 3: The program starts at 0000H. When using the "on-chip 4K ROM", if the program exceeds 4K (0FFFH), even if EA = 1, the program will be transferred to the "off-chip ROM" 1000H to start execution.
2. Hardware composition of on-chip ROM program memory:
There is no special note, but the following address units have special uses and programmers cannot use them casually:
0000H unit: the unit pointed to by the program counter PC at power-on
0003H unit: the entry address of external interrupt/INT0
000BH unit: the entry address of overflow interrupt of timer T0
0013H unit: the entry address of external interrupt/INT1
001BH unit: the entry address of overflow interrupt of timer T1
0023H unit: the entry address of interrupt for serial port receiving and transmitting
3. Hardware composition of on-chip RAM data memory:
The on-chip RAM data memory has 256B, the lower 128B is for general registers, bit addressing area, etc., and the upper 128B is for special function registers SFR
Note 1: The 256B here refers to the data of a certain type of microcontroller. For example, the STC89C54RD+ used by the blogger has 1280B of on-chip RAM.
To be continued…
Previous article:The use of common functional modules of single chip microcomputer Part 8. Speaker
Next article:The use of common functional modules of single chip microcomputer Part 7. LCD 1602
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- How to choose between different chips in TI's Sub-1GHz product line?
- EEWORLD University ---- Motor Control
- Component packaging,
- 5 Key Considerations for IoT Devices
- NUCLEO_G431RB Review Add UART
- A must-read summary of drone principles (II) Major systems of drones
- CC2640R2: TI BLE OAD (OTA) protocol APP process and code interpretation on Android and iOS
- Transistor source, and the difference between NPN and PNP
- How to choose TVS tube for MSP430FR2633 touch chip
- [Analog Electronics Course Selection Test] + Functional Experience