When upgrading from a MCS® 51 microcontroller to a MCS 251 microcontroller, is it drop-in compatible?
Yes, it is backwards pin and code compatible. But, there are some modifications that need to be considered. Refer to Application Note 710, Migrating from the MCS 51 microcontroller to the MCS 251 microcontroller. (NOTE: This application note refers to the A stepping part.) You must configure the MCS® 251 MCU in binary and non-page mode to be compatible with the MCS 51 MCU code.