??? 11/28/06 07:55 Read: times |
#128600 - Software access to XDATA Responding to: ???'s previous message |
Priyanka Gupta said:
in programming ale pin , write , and read pind should be high and low through software or just only connection of these with 8051 and ram Obviously, the hardware needs to be correct - or nothing will work! The hardware details have already been explained here: http://www.8052.com/forumchat/read.phtml?id=128598 From the software point of view, simply using the MOVX instruction causes the processor to generate the appropriate bus cycle (including all the activities on ALE, Address Bus, /RD, /WR, etc) to read or write external data memory. In Keil C51[1], the xdata keyword extension tells the compiler to use MOVX when accessing the variable. So, in your C51 software, all you need to do is specify the appropriate memory area. It sounds like you need to go through the Tutorials: http://www.8052.com/tutorial.phtml Even though you're writing in 'C', you need to understand how the underlying architecture works - as this very Thread demonstrates! [1] Note that this is a Keil-specific extension to the standard 'C' language - other compilers are likely to be (slightly) different... |
Topic | Author | Date |
how to Access External Ram with 8051 in C language | 01/01/70 00:00 | |
XDATA access | 01/01/70 00:00 | |
Xdata access | 01/01/70 00:00 | |
XDATA access | 01/01/70 00:00 | |
re | 01/01/70 00:00 | |
You need | 01/01/70 00:00 | |
bible | 01/01/70 00:00 | |
Read the Keil Manual | 01/01/70 00:00 | |
reply xdata | 01/01/70 00:00 | |
Software access to XDATA | 01/01/70 00:00 | |
Use a derivative with more ram | 01/01/70 00:00 | |
She is asking | 01/01/70 00:00 | |
If that is the case | 01/01/70 00:00 | |
and the answer is | 01/01/70 00:00 |