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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/18/05 19:22
Read: times


 
#102587 - Assume nothing.
Responding to: ???'s previous message
Riya Sen said:
HiI was working with 89c51 ... will my old program work if i download it with JTAG to my device having c8051f226 or

You should not assume that it will work.

You need to get the two datasheets side-by-side and compare them:

  • check that SFR addresses match
  • check that SFR default/reset conditions match
  • check that the port structures match (is the new chip configurable for push-pull, for example)
  • check the configurations etc needed for enabling/accessing internal and external memories
  • where both devices share common features, check if they are identical, "compatible", similar, or different
  • where the new device adds new features, check that your code leaves them in a "safe" state
  • where the new device omits features from the old, ensure that this doesn't adversely affect your code
  • if previously unused/"reserved" registers and/or bits now have functions assigned, ensure that your code leaves them in a "safe" state
  • timings will almost certainly be different

    etc, etc, etc.

    The instruction set remain the same, and the "core" should be much the same - so you shouldn't need to make dramatic architectural changes, but you should assume that a number of little "tweaks" will be required.

    Note that whether you load it via JTAG or any other means is entirely irrelevant.


  • List of 4 messages in thread
    TopicAuthorDate
    c8051f226            01/01/70 00:00      
       Begin with the datasheets            01/01/70 00:00      
          answered in parallel post            01/01/70 00:00      
       Assume nothing.            01/01/70 00:00      

    Back to Subject List