Hi Amey,
Unfortunately there isn’t any direct migration guide between S12X and S12Z.
In fact, S12X and S12Z cores are built on different platform architecture (S12Z use Harvard architecture with parallel data and code access).
However many CPU features, instructions and principles are (almost) the same.
The main advantage of S12Z core is linear address space (no more pages and calculating between global and local addresses). It uses a 24-bit address bus, Stack Pointer, Program Counter and Index registers.
S12Z Data Bus Width is 32-Bit RAM & Flash, 16-Bit I/O. ALU Width is 32-bit. Data Registers are 2 x 8-Bit, 4 x 16-Bit, 2 x 32-Bit. Pointers are 2 x 24-Bit. Re-defined op-code set improves code size efficiency and performance. Fractional Math Support – Fixed Point.
S12Z has only one System Reset Vector (0xFFFFFC). Reset and Interrupt vectors have 4 bytes (for store 3 byte address). Optimized for smaller context saving (10 bytes on S12Z vs. 29 bytes on S12X).
For more details please look at
http://www.nxp.com/files/microcontrollers/doc/ref_manual/S12ZCPU_RM_V1.pdf
http://www.nxp.com/files/microcontrollers/doc/ref_manual/S12XCPUV2.pdf
and few attached slides.
Many peripherals for S12Z are the same or similar to S12X peripherals, however some of them are significantly different. For example: ADC.
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------