Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/10/11 14:03
Read: times


 
#183292 - Increment and Store
Responding to: ???'s previous message
Rajesh,

I do not quite understand something here. You have said that you were able to write and read back the data from the EEPROM. Yet the code you show appears to simply be a collection of subroutines that may be usable to achieve the goal of writing to and reading from the EEPROM. Have you actually used these subroutines with actual demonstrated success?

I see two possibilities here.....the first one being that the code you showed has been used by you in a demo to read and write some data patterns to your EEPROM. In that case it seems to be a trivial exercise to make some program logic to read out some EEPROM content increment it and then write it back into the EEPROM. You should make a stab at that exercise and then show that code here if you have some problems with it. (BTW attack the addition of the interrupt input logic later after this read-increment-store function is working on its own.

The second possibility I see is that the code you show is just some cut and paste code that you found on the web someplace. Just having it somehow makes you think you can read and write your EEPROM but in fact you have not yet even tried it out yet in a real program. If this is the case then you really need to work on getting the code you have to work before adding the additional complexity of incrementing and interrupts. Work at making real code that actually writes the EEPROM and reads it back. Post that code here if you have problems with it.

Michael Karas



List of 4 messages in thread
TopicAuthorDate
eeprom accessing problem            01/01/70 00:00      
   first problem            01/01/70 00:00      
      Side effects are always possible to make use of            01/01/70 00:00      
   Increment and Store            01/01/70 00:00      

Back to Subject List