Sixty kilobytes of flash, two kilobytes of RAM, fifty-four input and output pins in a 64-pin LQFP: the MC9S08AC60CFUE is the roomy end of the AC family, and it is normally found in appliance controllers that carry a display, a keypad and one or two serial links. Its memory is organised as one hundred and twenty pages of five hundred and twelve bytes, and that page count is the single most useful number when a protected device has to be read.
Everything the flash controller does is a command written into FCMD and launched by setting a bit in FSTAT. Before any command will run, FCDIV has to be programmed so that the internal timing generator produces the right clock, and if it is left at its reset value every command returns a divider error. That detail matters after a recovery, because a rebuilt image contains the FCDIV value the original firmware used, and it is the only record of what bus frequency the board was actually running at when it programmed itself in the field.
NVPROT at 0xFFBD protects a region from program and erase by setting a start address through the FPS field, with FPDIS able to switch protection off entirely. It is a write-protection mechanism. Reading the array is unaffected, and a device with a protected boot block and no security is completely open to a debugger. The opposite confusion also happens: a technician sees a violation flag during a programming attempt, assumes the part is locked, and stops looking for the actual cause, which is usually a protected region covering the very sector being written.
The security field in NVOPT at 0xFFBF governs access to flash and to RAM. When the device is secured, the debug interface cannot read either, and code executing from outside secure memory cannot read them either. What remains possible is the mass erase command, which wipes the array and, depending on the programmer, may leave the option byte in the locked state. That combination defines the honest description of this lock: it prevents disclosure, not destruction. Anyone with a debug pod can end the device’s usefulness in about a hundred milliseconds.
Eight bytes at 0xFFB0 hold the comparison key, and the KEYEN bit decides whether it is honoured. The key is entered by setting KEYACC in FCNFG and writing the eight bytes in order to the key addresses; the flash controller compares them instead of programming them. If they match, the device runs unsecured until the next reset. Two things make this route fragile in practice. The code that presents the key has to be running from secure memory, so any recovery attempt that depends on injecting a stub into RAM is excluded. And if production wrote all ones into the key area, the comparison is disabled even though KEYEN reads as enabled.
When neither the key nor the debug interface offers a path, the array has to be approached physically. On a 64-pin LQFP the die sits under a moulding compound that can be removed to expose the test pads and the flash macro, and the read is done at the array rather than through the CPU. The HC08 parts that came before, such as the MC68HC08AS20 flash copying, were read the same way and with the same page discipline. The page structure helps here: the read is organised in five-hundred-and-twelve-byte units, each with its own error-correction behaviour, so a partial capture can be validated page by page instead of being accepted or rejected as a whole. That workflow is what IC decapsulation service exists for, and the handling of the file that comes off the die afterwards is closer to firmware extraction service than to anything else on the bench.
Sixty kilobytes of appliance firmware is mostly tables. The ten-bit converter’s channel assignment, the keypad scan map, the display segment encoding and the motor ramp constants all live in the array, and none of them can be inferred from the instruction stream alone. Once the image is out, the useful exercise is to diff two units from the same production run: identical code with different tables means a calibration step, and that tells you which values must be preserved when a replacement board is built. Related parts with the same organisation include the MC9S08AW48CFUE memory software and the MC9S08AW32CFGE mcu flash memory, both of which use the same five-hundred-and-twelve-byte page but a different page count, while the MC9S08AC16MFGE microcomputer ic sits below them with half the pages again.
The vector table at 0xFFC0 is worth reading before anything else, because it shows which peripherals were actually used. A design that leaves the serial receive interrupt pointing at a bare return did not use that port, even if the hardware is populated.