Problems when AVR reads and writes external RAM
Question:
1.
For
AT90S8515, the address of external RAM must start from 0x0260?
2. I use ICE200 to emulate 8515 to read and write external RAM. The RAM size is 32K Bytes, and the address is mapped to 0x0000-0x7fff. PC7 is used as its chip select. Set SRE to 1. When I access 0x0300, PC7 is low. This is correct, but when I do not access the 0x0000-0x7fff address space (for example, entering an infinite loop), the problem occurs. At this time, PC7 is still low, which should be high. Is this the difference between AVR and 51, or am I wrong?
Answer:
1. For AT90S8515, the address of external RAM must start from 0x0260. This is no problem. The address accessed from 0x0000-0x025F is the internal RAM.
2. When you have accessed 0x0300, PC7 is low. When you do not access 0x0000-0x7FFF, there is no instruction to set PC7 high, so PC7 is still low. But it does not matter, because when you access 0x0000-0x025F, RD and WR are not there, so even if the external RAM is selected, no reading or writing will occur. When you access 0x0260-0x7FFF, RD and WR are automatically generated. So it is OK to directly ground the CS of the external RAM.
Previous article:Serial port program simulated by AVR microcontroller
Next article:Application of ATmega8 chip in brushless DC motor speed control system
Recommended ReadingLatest update time:2024-11-17 00:34
- Popular Resources
- Popular amplifiers
- Principles and Applications of Single Chip Microcomputers 3rd Edition (Zhang Yigang)
- Metronom Real-Time Operating System RTOS for AVR microcontrollers
- Learn C language for AVR microcontrollers easily (with video tutorial) (Yan Yu, Li Jia, Qin Wenhai)
- ATmega16 MCU C language programming classic example (Chen Zhongping)
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
- Submit your IoT application ideas and win multimeters, Bluetooth headsets, Xiaomi power strips, JD.com cards and other gifts!
- [Evaluation of Anxinke Bluetooth Development Board PB-02-Kit] First Look
- Can the lower tube in the transistor pair structure have a smaller power?
- [AutoChips AC7801x motor demo board review] + Different PWM configurations for motor control
- Senior FPGA engineers tell beginners...
- In just three steps, we will teach you how to quickly use a multimeter to determine the polarity and type of a transistor!
- Today's Live Broadcast: ON Semiconductor's Advanced Image Sensor Solutions for the Internet of Things
- [Experience] Namisoft reviews the measurement methods of motor torque
- Recruiting electronic, mechanical and communications engineers! ! ! ! ! ! ! ! ! ! !
- Happy People's Day~