Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

AT89s8253 with internal eeprom

Status
Not open for further replies.

hirenn

Full Member level 1
Joined
Jul 12, 2014
Messages
96
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
703
Hi,

i have write, simple code for write one byte and read it from internal EEPROM.

i have do it using MikroC 8051 with in built READ and Write function (using eeprom example given).

now i want to confirm ,is my byte really written ..

can i do it in debugger of mikro C or i have to burn my hex file in IC??

Thanks
 

Hi,

Don't you trust the EEPROM?
Or don't you trust the simulator?
Or why do you worry?

In both cases you need to put code on the microcontroller.

Klaus
 
  • Like
Reactions: hirenn

    hirenn

    Points: 2
    Helpful Answer Positive Rating
The classic memory verification test is made by writing-and-reading alternating patterns of 0 and 1, something like that in pseudo-code for each address mapped by index i :
Code:
bool Success = false ;
WRITE_EEPROM ( ADDRESS(i) , 0x55) ;  // 0b01010101
DELAY
if ( READ_EEPROM ( ADDRESS(i) ) == 0x55 )
     {
     WRITE_EEPROM ( ADDRESS(i) , 0xAA) ;  // 0b10101010
     DELAY
     if ( READ_EEPROM ( ADDRESS(i) ) == 0xAA )
            Success = true  ;
     }
 
  • Like
Reactions: hirenn

    hirenn

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top