tag:blogger.com,1999:blog-1154217537013373102.post7937261819701655197..comments2023-12-07T17:18:14.433+07:00Comments on Embedded Microcontroller Programming: EEPROMs Interfacing8051erhttp://www.blogger.com/profile/14637202055329685184noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-1154217537013373102.post-60469622671720194562011-12-08T13:05:59.314+07:002011-12-08T13:05:59.314+07:00please help me...im unable to produce or do functi...please help me...im unable to produce or do function for i2c for the eeprom...please give some idea or just post the code so i can study them...a.s.a.pSir Ruleshttps://www.blogger.com/profile/09857375633308612761noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-33646055666287507832011-09-17T04:43:30.062+07:002011-09-17T04:43:30.062+07:00I don't understand why you put so:
I2C_write(a...I don't understand why you put so:<br />I2C_write(addr&0xF0);<br />I2C_write(addr&0x0F);<br /><br />Can I use your code to 24LC22A or 24LC1025?<br /><br />Example if I use 24lc1025, Is the maximum address to write 128??<br />addr=128? and val=xxxx<br /><br />Please help me!!Antonio8ahttps://www.blogger.com/profile/06478919967505066022noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-68381990130647559592011-02-04T03:13:03.726+07:002011-02-04T03:13:03.726+07:00thank you very much for creating this blog and pub...thank you very much for creating this blog and publishing such a useful information. only thing i didn't know was the write and read address of eeprom and i got it now because of you and one more thing sending address in mask mode. like one address twice with higher and lower bytes. i know this because of you.<br />thank you very much and god bless you.SAMhttps://www.blogger.com/profile/09564652450402141848noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-76934676639541363332009-04-16T17:07:00.000+07:002009-04-16T17:07:00.000+07:00hi ...
I am using above program for 24c64 ic but i...hi ...<br />I am using above program for 24c64 ic but it can't write above the 0x100 addr. it can only write upto 0xFF why i can't understand plz help me..Unknownhttps://www.blogger.com/profile/08874005597042149402noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-50695498088167806882009-04-16T17:00:00.000+07:002009-04-16T17:00:00.000+07:00hi ...
I am using above program for 24c64 ic but i...hi ...<br />I am using above program for 24c64 ic but it can't write above the 0x100 addr. it can only write upto 0xFF why i can't understand plz hepl me..Unknownhttps://www.blogger.com/profile/08874005597042149402noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-51397301725652624672009-02-04T00:09:00.000+07:002009-02-04T00:09:00.000+07:00I tried to use program 24xx512.hwith WinAVR. I wa...I tried to use program 24xx512.h<BR/>with WinAVR. I was attempting to upload that program to an Atmega8. But I had to use a generic makefile. When I enter make all I get this result: "make.exp no rule to make target '24xx512.elf', needed by 'elf' Stop"<BR/>I know this was not intended for AVR microcontrollers, perhaps that is why it doesn't work for me.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-48547012856986708212008-10-31T02:00:00.000+07:002008-10-31T02:00:00.000+07:00Hi,I think there is a problem in the following lin...Hi,<BR/>I think there is a problem in the following lines of the code:<BR/>I2C_write(addr&0xF0);<BR/>I2C_write(addr&0x0F);<BR/>This makes you just send the last byte from addr. Then, you can just write until 0x00FF address. Thats the cause from the problem of anonymous above.<BR/>I didnt fix it yet, when i do i will post it here. But, maybe (I didnt test it) you can do:<BR/>I2C_write(addr&0xFF00);<BR/>I2C_write(addr&0x00FF);<BR/><BR/>Vinicius Scheerenvscheerenhttps://www.blogger.com/profile/06443766678839079727noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-17915283994837293332007-12-31T09:59:00.000+07:002007-12-31T09:59:00.000+07:00I write the EEPROM via I2C bus. I've write the rou...I write the EEPROM via I2C bus. I've write the routine in C called<BR/><BR/>EEPROM_set(address,data)<BR/><BR/>You can find it in 24xx512.h.MCU Programmerhttps://www.blogger.com/profile/00580507341501269020noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-23280251998901277872007-12-31T05:50:00.000+07:002007-12-31T05:50:00.000+07:00I am doing the same thing. How do you write into e...I am doing the same thing. How do you write into eeprom.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-49817104033599416282007-07-21T12:02:00.000+07:002007-07-21T12:02:00.000+07:00hai any one can send the C code for interfacing 24...hai any one can send the C code for interfacing 24c04 with 8051<BR/>i can send the data "hello",but while reading only first character is readjagadeshwarhttps://www.blogger.com/profile/03045263108995661187noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-19725576895068033332007-07-02T08:10:00.000+07:002007-07-02T08:10:00.000+07:00Thank you.. i will try soon...i'll be back!Thank you.. i will try soon...<BR/><BR/>i'll be back!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-78420823582304145132007-07-01T12:52:00.000+07:002007-07-01T12:52:00.000+07:00I've understood your problem. But, I can't explore...I've understood your problem. But, I can't explore the cause of the error. So, I'd like suggest you try something like,<BR/><BR/>unsigned int i;<BR/><BR/>for(i=0; i<2000); i++)<BR/>{<BR/>// Write to EEPROM<BR/>}<BR/><BR/>and ...<BR/><BR/>for(i=0; i<2000; i++)<BR/>{<BR/>// Read from EEPROM<BR/>}MCU Programmerhttps://www.blogger.com/profile/00580507341501269020noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-42049974562056989252007-07-01T12:14:00.000+07:002007-07-01T12:14:00.000+07:00Thank You for your reply, actually i use your sour...Thank You for your reply, actually i use your source code to write in the EEPROM512, so address start from 0x0000 until 0xXXXX depend to the eeprom... so i want to write it continuously (Example: i want to collect 2000 data), so i'm just write it use this code:<BR/><BR/>"<BR/>unsigned int i;<BR/><BR/>for(i=0x000; i<0x0FFF (here can be 2000 data); i++)<BR/>{<BR/>// Write to EEPROM<BR/>}<BR/>" <BR/><BR/>But after finish the write i'm try to read it back... but it only read until 0xFF... for read i'm also using:<BR/>"<BR/>unsigned int i;<BR/><BR/>for(i=0x000; i<0x0FFF (here can be 2000 data); i++)<BR/>{<BR/>// Read from EEPROM<BR/>}<BR/>"<BR/><BR/>So, can you help me!<BR/><BR/>Thank You...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-19362395038791799522007-06-19T12:25:00.000+07:002007-06-19T12:25:00.000+07:00Hi,Could you please explain more about your proble...Hi,<BR/><BR/>Could you please explain more about your problem.<BR/><BR/>0x0FFF is the maximum number of iterations. That is not the value you write to EEPROM. <BR/><BR/>Thanks for your comment anyway.MCU Programmerhttps://www.blogger.com/profile/00580507341501269020noreply@blogger.comtag:blogger.com,1999:blog-1154217537013373102.post-27957558254607622932007-06-18T17:24:00.000+07:002007-06-18T17:24:00.000+07:00hi..i try to write with:unsigned int i;for(i=0x000...hi..<BR/><BR/>i try to write with:<BR/>unsigned int i;<BR/><BR/>for(i=0x000; i<0x0FFF; i++)<BR/>{<BR/>// Write to EEPROM<BR/>}<BR/>but it just write until FF only why it become like that?<BR/><BR/>Thank YouAnonymousnoreply@blogger.com