| ??? 10/10/03 04:50 Read: times |
#56457 - RE: 8051 & External Ram Responding to: ???'s previous message |
The best suggestion for you is to re-connect your Vcc, ALE, READ & WRITE and then make several small programs that do VERY simple things and check out that they work properly using an oscilloscope. Check every line for expected results.
for example..... Write a program to take control at reset that inits any special SFRs to access the RAM and then load data pointer with the base of RAM address and ACC with 0x55 value. Finally do a MOVX @DPTR, A in a forever loop. Debug your hardware via the oscilloscope!! You will be able to see why it does not work correctly if there is some logic error in the microcontroller interfacing. That is of course PROVIDED you have the program setting up the XRAM SFR's correctly (if there are any) and that that you make the simple program correctly and get it successfully programmed into the part. Michael Karas PS for a second program make one that loops on MOVX A, @DPTR. And the third program can do a RAM write followed by a RAM read in the forever loop. MJK |



