Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Issue to stop using eprom & continue using RAM in 8051 microcontroller
Hi, I have a C51 using external eprom and RAM memory, but I want to start using the internal flash memory of the CI, but the external RAM memory.
The microcontroller I'm using is the Megawin MPC59E515A. (Datasheet: http://www.brighteamtech.com.tw/UpLoad/572/006090100010/MPC89E515A_A9.pdf
So, I changed the pin 31 (/EA) from gnd to 5V, changed these variables:
AUXR (08Eh) <- #11b
(to stop using the internal RAM memory and use the external)
XICON (0C0h) <- #00
(external interrupt control)
P4 (0E8h) <- #00
and commented the code parts that uses the eprom memory.
Then I made the following code to test the external memory
;tests the 62256 RAM memory
;two bytes in the end
But it will never get out of the loop... not even the first jnz.
Any help, please?
0 · ·