Hi,
The answer I have created in 2008:
They A256B and A256 are fully compatible. The differences are:
1) The mask set and related errata.
MC9S12A256B mask set 1K79X, 2K79X
MC9S12A256 mask set 0L01, 0L91, 3L91, and 4L91
2) The oscillator configuration
MC9S12A256B mask set 0K79X, 1K79X - Colpitts/ External
MC9S12A256 mask set L91N, L01Y - Pierce/ Colpitts/ External
3) The FLASH and the EEPROM data retention
Older part: A256B has 10 flash E/W cycles endurance with data retention time 15 years and 10,000 EEPROM E/W cycles with data retention 5 years for temperature range -40~125 deg.C.
Newer part: A256 has 10,000 flash E/W cycles (new flash technology=> new flash properties)
Flash E/W cycles endurance is from 10,000 (typically 10,000)
EEPROM E/W cycles endurance is from 100,000 at -40deg.C
SPI module problem (A256): You have to read the SPISR register at the top of your code before you initialize SPI.
There is a package from my drawer or you can also go to:
https://www.nxp.com/products/processors-and-microcontrollers/additional-mpu-mcus-architectures/16-bi...
Best regards,
Ladislav