Problems with AVR reading and writing external RAM

Publisher:lcn18560863680Latest update time:2012-06-26 Source: 21ic Keywords:AVR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.




Keywords:AVR Reference address:Problems with AVR reading and writing 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

Universal USB interface module design AVR microcontroller
1 Introduction The USB interface has become one of the main ways for peripherals to communicate with PCs due to its fast data transmission, simple connection, easy expansion, and hot-swap support. With the development of embedded systems, embedded microprocessors need to add a universal USB interface to achieve commun
[Microcontroller]
Universal USB interface module design AVR microcontroller
Arduino+Avr libc makes Badusb principle and example explanation
I. Introduction After researchers Jakob Lell and Karsten Nohl demonstrated the attack method of badusb at the 2014 Black Hat Conference in the United States, there have been some articles related to badusb in China, but most people still feel that badusb is still a hazy veil after reading the related articles. After a
[Microcontroller]
Arduino+Avr libc makes Badusb principle and example explanation
Atmega16L analog/digital converter - AVR microcontroller introduction
There are 8 10-bit precision ADCs (Analog/Digital Converters) in ATMEAG16L, which include an 8-channel analog switch, a sample-and-hold comparator, a conversion logic, and 4 control/status registers. Among them, the input of the 8-channel 10-bit analog switch is multiplexed with the PORTA port for inputting analog sig
[Microcontroller]
Atmega16L analog/digital converter - AVR microcontroller introduction
Design of Power Management System Based on AVR
0 Introduction Nowadays, due to its wide application in many fields such as civil and national defense, aerial robot technology has been increasingly valued by people and has attracted the attention of experts and scholars from various countries. The small rotor robot is based on a model helicopter and is equip
[Microcontroller]
Design of Power Management System Based on AVR
Characteristics and Applications of AVR IO Ports
Analysis of AVR's IO port characteristics: Analyze the IO pin Pxn. Only when DDRxn is 1, the controllable unidirectional switch will work, and the value of PORTxn can be sent to Pxn through the controllable unidirectional switch. Conclusion: When DDRxn=1, it is in output state. The o
[Microcontroller]
Characteristics and Applications of AVR IO Ports
ICC AVR font size adjustment
When using the ICCAVR C compiler, I felt that the default font size was uncomfortable to read and affected the code reading. After searching online, I found a way to change the font size: Tools -> Editor and Print options                                               Change the font size in Size and click OK.
[Microcontroller]
ICC AVR font size adjustment
AVR (Mega8) infrared receiver
Using the integrated infrared receiver, it can be decoded directly. Usually, the infrared receiver outputs a high level. When there is infrared data, it will have a corresponding level conversion according to the infrared data sent. You can find a remote control board at will, measure the infrared receiving waveform, a
[Microcontroller]
AVR MCU Literacy
1. AVR microcontrollers use RISC architecture, while 8051 microcontrollers use CISC architecture. The former is 2 to 4 times faster than the latter, and is a pipeline operation instruction. 2. AVR microcontrollers have 32 general registers (addresses in RAM start from $0000 to $001F), of which 6 (the last 6) are comb
[Microcontroller]
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号