Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/20/08 04:12
Read: times


 
#160136 - AT89S8253: EEPROM programming via serial COM
Hi everyone,

I have migrated an embedded software from AT89S8252 to AT89S8253. This board will display some characters that people program to EEPROM via RS232 com port by a PC program (written in Delphi and developed by someone else).

The problem I have is that the PC program probably specify to load characters to AT89S8252 memory access at address 2000h - FFFFh, but AT89S8253 has the memory address access at 3000h-FFFFh. Therefore, I could not use that PC program to program to the new AT89S8253. I am thinking to modify the code in RxTx section to write the received data to the

The problem I have is that the PC program probably specify to load characters to AT89S8252 memory access at address 2000h - FFFFh, but AT89S8253 has the memory address access at 3000h-FFFFh. Therefore, I could not use that PC program to program to the new AT89S8253. I am thinking to modify the code in RxTx section (attached) to write the received data (from PC) to the new memory address 1000h above the specified address.

How can I increase the DPTR in this case (DPL, DPH???):
;---------------------------------------------------------------------------------
mov DPL,RxTxStepL ;Load EEProm address to write.
mov DPH,RxTxStepH

mov A,RxTxData ;Load new data

clr EA ;disable Interrupts during write


movx @DPTR,A ;write to EEPROM
;---------------------------------------------------------------------------------
I could post the whole file if neccesary.

Thanks,





List of 14 messages in thread
TopicAuthorDate
AT89S8253: EEPROM programming via serial COM            01/01/70 00:00      
   simple example            01/01/70 00:00      
   Problem            01/01/70 00:00      
   No need to "increment"...            01/01/70 00:00      
      Problem in migrating from AT89S8252 to AT89S8253 - Pls help!            01/01/70 00:00      
         Confusion            01/01/70 00:00      
            It's Dataflash not EEPROM address, but...            01/01/70 00:00      
               I assume that you have external RAM            01/01/70 00:00      
                  Problem in migrating from AT89S8252 to AT89S8253 - Pls help!            01/01/70 00:00      
                     Probable answer            01/01/70 00:00      
                         Probable answer for serial re-program EEPROM            01/01/70 00:00      
                           AT89S8252, change in serial programing            01/01/70 00:00      
    Problem in migrating from AT89S8252 to AT89S8253 - Pls hel            01/01/70 00:00      
      Please explain your hardware            01/01/70 00:00      

Back to Subject List