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

Back to Subject List

Giang Ho
11/19/08 22:12
Read: 421 times
Sydney
Australia


 
#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      Giang Ho      11/19/08 22:12      
   simple example      Matthias Arndt      11/20/08 01:33      
   Problem      Andy Neil      11/20/08 02:23      
   No need to "increment"...      Hans Van Pelt      11/20/08 05:12      
      Problem in migrating from AT89S8252 to AT89S8253 - Pls help!      Giang Ho      11/20/08 06:14      
         Confusion      Hans Van Pelt      11/20/08 06:51      
            It's Dataflash not EEPROM address, but...      Giang Ho      11/20/08 06:59      
               I assume that you have external RAM      David Prentice      11/20/08 07:16      
                  Problem in migrating from AT89S8252 to AT89S8253 - Pls help!      Giang Ho      11/20/08 15:55      
                     Probable answer      Hans Van Pelt      11/21/08 03:22      
                         Probable answer for serial re-program EEPROM      Giang Ho      11/21/08 07:09      
                           AT89S8252, change in serial programing      Giang Ho      11/23/08 17:13      
    Problem in migrating from AT89S8252 to AT89S8253 - Pls hel      Giang Ho      11/20/08 16:04      
      Please explain your hardware      David Prentice      11/21/08 04:22      

Back to Subject List