EEPROM Operation
- greentech
- Flowcode V4 User
- Posts: 158
- Joined: Mon Jan 31, 2011 2:11 pm
- Has thanked: 10 times
- Been thanked: 2 times
- Contact:
Re: EEPROM Operation
thanks spanish, ill definitely test it on the real hardware now and get back to u.
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: EEPROM Operation
Which data sheet? Do you have a link to the one for your device? As is mentioned before the are different manufacturers and the devices might not be compatible.greentech wrote:Then what to do? The datasheet for 24c04 advices the same sequence. why that doesn't work? i have also tried this with 24lc512 with the same results.....
Fairy
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: EEPROM Operation
Sorry for the delay Jac.kersing wrote:Martin,
What is the exact hardware you tried? (Model and Manufacturer)
I'm using
Microchip 24LC512
Data sheet:
http://ww1.microchip.com/downloads/en/D ... 21754M.pdf
Last time I tried, it took a few attempts to display the correct information.
It was on a separate bread board to microcontroller, so could have been caused by stray capacitance, or as Jac has been saying flowchart is not correct?
Hope this helps
Martin
Martin
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: EEPROM Operation
I'm looking into this more.
I can confirm that reading EEPROM works 100% of the time.
It looks like the issue is writing to EEPROM.
I changed 2013 to a different number to test and the number read was still 2013.
So the reason I thought it was working is because with a previous flowchart I must of successful programmed with 2013.
So I'm changing flowchart to take that into account.
At least that could be one reason your still getting 255's and I'm not?
So I will see if I can sort out flowchart and only when working 100% I will post it.
I do want to solve this...determined![Smile :)](./images/smilies/icon_smile.gif)
I can confirm that reading EEPROM works 100% of the time.
It looks like the issue is writing to EEPROM.
I changed 2013 to a different number to test and the number read was still 2013.
So the reason I thought it was working is because with a previous flowchart I must of successful programmed with 2013.
So I'm changing flowchart to take that into account.
At least that could be one reason your still getting 255's and I'm not?
So I will see if I can sort out flowchart and only when working 100% I will post it.
I do want to solve this...determined
![Smile :)](./images/smilies/icon_smile.gif)
Martin
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: EEPROM Operation
There was a bug in 3. EEPROM read and write.fcf that greentech posted on Wed Aug 07, 2013 6:54 am
I have corrected bug, and now my hardware works 100% of the time.
To confirm both read and write works, I have been changing the data values.
Read now always matches write.
Still not sure if it will simulate or not?
I will see if flowchart works with other I2C EEPROMs.
I have corrected bug, and now my hardware works 100% of the time.
To confirm both read and write works, I have been changing the data values.
Read now always matches write.
Still not sure if it will simulate or not?
I will see if flowchart works with other I2C EEPROMs.
- Attachments
-
- 3. EEPROM read and write V3.fcf
- (19.85 KiB) Downloaded 315 times
Martin