??? 04/22/05 08:39 Read: times |
#92132 - RE: Responding to: ???'s previous message |
if i want to write in address 0fff1h the data 052h
the program should be ====================== mov dptr,#0fff1h mov dyta,#052h lcall eeprom_write ======================= is my code correct? _____________________________________________________________* because in your code you use "ADRES" but you never call or use the "ADRES" _____________________________________________________________* your code >>>>> EEPROM_WRITE: LCALL I2C_START LCALL I2C_WRITE1 LCALL I2C_STOP RET EEPROM_READ: LCALL I2C_START LCALL EEPROM_WRITE_ADDR MOV A,DPH LCALL WRITE MOV A,DPL LCALL WRITE LCALL I2C_START LCALL EEPROM_READ_ADDR LCALL I2C_READ LCALL I2C_STOP1 CLR SCL LCALL DELAY SETB SDA SETB SCL LCALL DELAY CLR SCL LCALL DELAY RET Therefore you must change [adres to dptr] in eeprom_write and eeprom_read routines >>>your code for read and write routine NEVERRRRRR use the "ADRES" or the code that you send is not completed yet.or "ADRES" is DPTR ??? i'm using AT89S8252 microcontroller and asm51 program for dos in this software i must define all the address and register that i used, thank u wassalam wr wb |
Topic | Author | Date |
interface serial eeprom 24c512 - 89s8252 | 01/01/70 00:00 | |
here! | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 | |
wanna ask more | 01/01/70 00:00 | |
Homework | 01/01/70 00:00 | |
Re:wanna ask more | 01/01/70 00:00 | |
thanks anyway | 01/01/70 00:00 | |
Re:thanks anyway | 01/01/70 00:00 | |
thank you | 01/01/70 00:00 | |
hello again | 01/01/70 00:00 | |
re: | 01/01/70 00:00 | |
RE: | 01/01/70 00:00 | |
To Sugiarso: | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 | |
Again,Edited![]() | 01/01/70 00:00 | |
public information | 01/01/70 00:00 | |
Check this page.... | 01/01/70 00:00 |