Writing to 24LC256 Mem chip

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jollybv
Posts: 136
http://meble-kuchenne.info.pl
Joined: Mon Mar 08, 2021 11:25 am
Location: Cape Town South Africa
Has thanked: 41 times
Been thanked: 12 times

Writing to 24LC256 Mem chip

Post by jollybv »

Hi guys
I have a slight problem and not sure how to sort it out, in my program I am saving 5 bites at a time to the the 24LC256
when i get to address 60 it writes 4 bites and dose not write bite five. Any suggestions on how to sort this
EEPROM .txt
(148 Bytes) Downloaded 346 times

medelec35
Matrix Staff
Posts: 1924
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 623 times
Been thanked: 645 times

Re: Writing to 24LC256 Mem chip

Post by medelec35 »

Hello Brian.
The 24LC256 has a page write buffer of 64 bytes
Therefore, you can only transmit 63 addresses at a time then you must use a stop condition.
That is why you are seeing the wrong value after 63 bytes.
Martin

jollybv
Posts: 136
Joined: Mon Mar 08, 2021 11:25 am
Location: Cape Town South Africa
Has thanked: 41 times
Been thanked: 12 times

Re: Writing to 24LC256 Mem chip

Post by jollybv »

Hi Martin

Thanks for the reply I get what you saying but what is confusing me is I'm not doing a 64 page bit write I'm only writing 5 bites. and it only dose it to me from bite 60 to 64. At bite 125 to 129 it works fine. That's what is confusing me, I have adjusted the software to over come this issue but just trying to understand why it only dos it at the end of the first 64 bites.

mnfisher
Valued Contributor
Posts: 1462
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 136 times
Been thanked: 713 times

Re: Writing to 24LC256 Mem chip

Post by mnfisher »

I posted a component many moons ago that handled page 'issues' automatically.

See https://matrixtsl.com/mmforums/viewtopi ... 523#p98523 I haven't tried it with v9 but if you give it a go and I'll try and help if there are any issues.

Note that - in your example it might be attempting to write the last byte to the start off the page

Martin

Post Reply