Page 1 of 1
					
				Writing to 24LC256 Mem chip
				Posted: Mon Oct 24, 2022 10:40 am
				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
 
			
					
				Re: Writing to 24LC256 Mem chip
				Posted: Mon Oct 24, 2022 12:21 pm
				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.
			 
			
					
				Re: Writing to 24LC256 Mem chip
				Posted: Tue Oct 25, 2022 7:09 am
				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.
			 
			
					
				Re: Writing to 24LC256 Mem chip
				Posted: Tue Oct 25, 2022 8:00 am
				by mnfisher
				I posted a component many moons ago that handled page 'issues' automatically.
See 
https://flowcode.co.uk/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