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.
Contact Ajay Bhargav by PM or email at contact@8051projects.net
Anonymous | 17 Mar : 12:46
anyone knows who can I get in contact with to get permission to use this http://www.8051projects.net/lcd-interfacing/lcd.png for my senior design report?
Correction... http://www.8051projects.net/lcd-interfacing/lcd-4-bit-programming.php That gave me headaches... Mismatched coding between the 4-bit and 8-bit sections.
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