- This topic has 1 reply, 2 voices, and was last updated 10 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › EEPROM test code problem.
This simple code is test the write and read of EEPROM.
Firstly the LED at P1 will have all LED on, after a sec, have the P1 will have LED on.
Next, code is to write 01010101B into the EEPROM.
CJNE will check to see if it is written.
But, after comparing, the data isn’t similar and the code is restarted.
If the writing process works the LED at P1.0 should be the only LED on, which will notify the success of writing into the EEPROM.
The next portion of the code will recall/read the written data in the EEPROM.
f it is able to read, P1 will have alternate LED on and off.
Please provide solutions, sources and why or what I had done wrong, to educate me. Thank you.
=============================
Hi,
If you can try C code, there are many examples available in this site.