free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems
i have been working on eeprom interfacing since last few days... i successfully ran my project on proteus.... the eeprom read n write works fine....
but when i burnt my at89s52, the program didnt run on it as thought of... the eeprom write encounters some problems i dont know wat, but on reading back eeprom i get only garbage characters on lcd screen... the problem seems to come after write data byte to eeprom, i dont seem to get ack from eeprom... void mem_write(unsigned char value) { char j; bitchar=value; for(j=0;j<8;j++) { scl=0; // to clock in data sda=msbc; scl=1; bitchar=bitchar<<1; } scl=0; // to receive ack from eeprom scl=1; scl=0; delay(3);
}
the above code works fine in proteus but not in real project... i use pagewrite to write to eeprom.... plz help
oops.. i have been trying to write to 24c16 atmel eeprom.... first i send dev adress = 0xA0, them mmry word address = 0x00 ... then 16byte page write seq ... start devadd(0xa0) memadd(0x00) for(i=0;i<16;i++)mem_write(arr[i]); stop
Remember, for someone to help, they must first understand what you are doing. Without a part description, and a schematic, it is very difficult to write software...
Please try and be specific when asking for help...
-Dave "Basic research is what I am doing when I don't know what I am doing"
void mem_datawr() // starts the sequence of writing data to eeprom { char i; rstart(); mem_write(dev_addw); // load dev_add into eeprom mem_write(mem_addw); for(i=0;i<16;i++,mem_addw++) {mem_write(arr[arr_count++]); // writes contents of arr[16] to eeprom using pagewrite if(sda!=0){led=0; delay(20); led=1; delay(20); } } stop(); delay(3); }
above function is used to write data to eeprom .. in proteus simulator , it works perfectly... but not in my real project .. dont know y... in my real prog, led keeps on blinkin indicating of not receiving proper ack... ((
just make sure your memory is not busy in writing data to EEPROM.
give sufficient delay after writing, normally 5ms or more. try 1 byte at a time to test. www.rickeyworld.info If you feel satisfied with the user's forum reply please click on the thank button.
can any one tell me? i wanna interface 8051 to LCD. ( parallel communication, i did.), but i want the information about that protocol?, what protocol is using for this
Anonymous | 09 Mar : 21:54
sir ajay please help me if you have some report about the latest invention of pc remote which is intended in your country that conducted their research at this time please give me some information about them and their project pc remote i need it for my study in related literature and studies of my thesis report. pls sir i need your help
Anonymous | 09 Mar : 20:01
can ny1 tell me does nokia 5130 model support AT command? I'm making a project on GSM based home security system
plz also help me in this project. i'm novice in this project
8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems