Sixteen kilobytes of flash, one kilobyte of RAM, half a kilobyte of EEPROM and a CAN controller in a 32-pin LQFP. The MC9S08DZ16ACLC is the smallest member of the DZ family, and it is the one that makes the point most clearly: the flash and the EEPROM are two different memories with two different command sets, two different erase granularities and two different protection schemes, and a recovery that treats them as one job will lose data.
The flash is organised in five-hundred-and-twelve-byte pages and is programmed through the FCMD command interface after FCDIV has been set. The EEPROM is programmed through the same controller but with a sector measured in single-digit bytes, so a record can be updated in place without erasing a page. In a metering or body-control design, the EEPROM is where the calibration constants, the configuration and the counters live, and those values are usually the reason the board cannot simply be replaced. A flash image alone does not restore a device.
Both arrays can be protected against program and erase through the FPS field in NVPROT, and both are covered by the security field in NVOPT: when the device is secured, neither array is readable over the debug interface and neither is readable from code running outside secure memory. What differs is the granularity. A protected flash range is expressed in page units, while the EEPROM protection covers its own region. In practice a part can be left with the EEPROM writable and the flash blocked, which is a legitimate production configuration and a confusing thing to find on a returned board.
NVOPT at 0xFFBF works exactly as it does on the larger members: 1:0 in the SEC field is the unsecured state, everything else is secured, and an erased part reads 1:1 and is therefore locked. On a sixteen-kilobyte array the option byte, the key and the vectors all share the final page with application code, so the margin between “the last erase” and “the option byte” is small. A firmware update that rewrites the top page is a firmware update that rewrites the security setting, and more than one field failure has started there.
The integrated controller speaks CAN 2.0A and 2.0B with a set of receive buffers and acceptance filters programmed at start-up. On a 32-pin part most of those pins are shared with other functions, so the fact that the port is present at all is a statement about the intended use. Capturing traffic before opening the device gives the identifier map and the cycle times, and those two together usually reveal more about the application than the code does.
With the key enabled and known, an application that accepts a key over CAN or a serial link is the cheapest route to a readable device. With the key disabled, the only path is physical, and on a 32-pin LQFP the die is small enough that the package opening is the easy part; the read is where the care goes, because the EEPROM and the flash have to be captured separately and the addresses of both have to be recorded. IC decapsulation service is the entry point for that work, and the EEPROM half is frequently the half the customer actually needs. Where the key is documented and the design left a service path open, microcontroller unlock service is the cheaper route and should be attempted first.
The DZ family scales from this part to the MC9S08DZ128MLF encrypted microprocessor and down through the MC9S08DZ32AMLH locked processor flash memory and the MC9S08DZ96CLL microprocessor flash memory, and the differences are almost entirely in array size and package. The mechanism at 0xFFBF does not change across any of them, and it is the same byte that the HC08 family carried, which the notes on MC68HC08AZ60 eeprom memory recovery still describe, so one well-documented procedure can serve an entire production line. What does change is the amount of image that has to be validated and the number of pages that can go wrong.
The last point to make about a sixteen-kilobyte part is that the image is small enough to verify by hand. A full disassembly is a few thousand lines, the vector table names the entry points, and the EEPROM contents can be read as a table of records. That is a luxury the larger members of the family do not offer.