Author Topic: p89c51rd2bn IAP problems  (Read 13230 times)

erikm

  • Guest
Re: p89c51rd2bn IAP problems
« Reply #15 on: April 20, 2005, 11:21:08 am »
I'd hate to have to live with adapting to various versions of the bootloader.

The simple way to avoid that is not to care about it.

If you need this do the following

1) copy all RAM to XRAM
2) save SP
3) set SP to 7
4) do your thang
5) restore RAM
6) restore SP

And you are in fine shape.  No version dependency, no reason to bitch about the routines and they lived happily ever after.


With bootloaders in FLASH (upgradable - e.g. T89C51RD2, P89V51RD2 and probably others too) you can also "downgrade" if needed.
Not so easy, loading the bootloader require insertion in a parallel programmer.

Erik

erikm

  • Guest
Re: p89c51rd2bn IAP problems
« Reply #16 on: April 20, 2005, 11:22:45 am »
Sorry, what is "GM"?

it has amused many that GM can mean General Manager as well as Gluteus Maximus.

Erik

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: p89c51rd2bn IAP problems
« Reply #17 on: April 20, 2005, 02:53:40 pm »
Bootloaders in FLASH - you don't need a parallel programmer to change it. For example, Philips provides an upgrade for P89V51RD2 - you program it into the user FLASH using the old bootloader, then run it, and it reprograms the bootflash while running from user flash.

Jan Waclawek