8K flash has 8*1024 bytes. An instruction may have 1~4 machine codes, that is, 1~4 bytes. Among them, instructions with 1~2 machine codes are the most frequently used. So in this way, about 4000~8000 instructions can be written. General applications cannot write so many instructions. However, it may exceed the budget to store other data, such as Chinese characters and digital dot matrix codes. For the situation that it is really not enough, it is recommended that the host directly buy a large-capacity chip. Expanding flash is not very desirable, which increases the instability of the system, increases the area of the board, and makes wiring difficult. If you really want to expand the capacity, there are many ways. Expand EEPROM (currently 256K~1M), or expand the flash memory based on SPI bus (mainstream 32M~128M). The drivers of these two buses are simple and easy to expand.
MCU FLASH is mainly used as program storage, which is to replace the previous ROM. The biggest advantage is that it reduces the cost of the chip and can be electrically erased. At present, the life of MCU FALSH on the market varies greatly, with erasure times ranging from 1,000 to 100,000, but the storage time can be guaranteed for 40 years. Pay attention when choosing. Some cheap MCUs do not use expensive EEPROM to integrate power-down data storage, but use FALSH. However, it should be noted that its life is up to 100,000 times, and it cannot be erased byte by byte. It should be noted that whether its life meets the requirements in the occasion of use.
RAM is a data storage device, similar to the memory in a computer. It is mainly used to store process data during program operation. After power failure, the previous data will be lost, so the program needs to be initialized when powered on, otherwise the data after power on will be a random number, which may cause the program to crash.
ROM is the program memory. The data will not be lost after power failure, but the data will not change during the program running. The ROM of the early microcontrollers has been replaced by the current FLASH memory because of the trouble of erasing and modifying, the high price or the inability to modify the data of the cheap OTP type. Because FLASH is easy to erase and write, some microcontrollers now support online internal programming. The content of FALSH can be modified through a specific program execution method, and the program memory can be modified online. This does not conflict with the above-mentioned content of the program memory cannot be changed during operation, because when the program is running normally, its content will not change and it only works in a read-only state.
Previous article:Design and Implementation of NAND Flash Management Algorithm
Next article:Design and Application of Encrypted Storage Chip AT88SC1616
Recommended ReadingLatest update time:2024-11-17 02:52
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!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- 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 driver MM32F103 test (Part 3) UART+ADC
- TMS320F28027F for power stage control
- Can anyone who knows about TSIP give me some advice?
- If anyone has photos of bulging lithium polymer batteries, please post them here.
- Adjust the brightness of the LED provided by Zigbee
- FPGA Design Flow
- Qorvo Launches First Smart Home Device Controller to Enable Simultaneous Wireless Communications
- [nRF52840 DK Review] +52840 NFC (Part 1)
- [Grab the post with prizes] Let’s talk about how you spent the Children’s Day that left the deepest impression on you?
- 【Beetle ESP32-C3】2. PWM breathing light (Arduino)