??? 09/08/10 17:28 Read: times |
#178480 - EEPROM read write of 89s8253 |
Hi,
can any one give me working code for the 89s8253 it is some what differant than 89s8552 my code is orl eecon,#00001000b orl eecon,#00010000b R_eeprom: movx @dprt,a mov a,data xrl eecon,#00010000b xrl eecon,#00001000b end W_eeprom: mov dprt,#addr mov a,dptr movx a,@dptr inc dptr ............ busy: mov a,eecon anl a,#000000100 jz busy xrl eecon,#00010000b xrl eecon,#00001000b end the above code is writing only one byte in the given address for 89s8252 using WCON is doing well but 89s8253 is not K M VANAN end |
Topic | Author | Date |
EEPROM read write of 89s8253 | 01/01/70 00:00 | |
Atmel's AT89S8253 Primer | 01/01/70 00:00 |