The MC68HC908QY4 is the point where the HC908 flash family becomes genuinely tiny: four kilobytes of flash, 128 bytes of RAM, sixteen pins, and a price that put it into countless small appliances and sensors. Small parts encourage the assumption that there is nothing worth protecting, yet the QY4 carries the same monitor ROM security scheme as its larger relatives, compressed into a die that leaves no room for a separate EEPROM or a boot loader. Cloning its firmware is therefore less a question of capacity than of understanding exactly how the factory expected the part to be talked to.
The QY/QT data sheet defines the family as a matrix. The QY4 and its eight-pin QT4 twin share 4096 bytes of flash mapped at $F800 through $FDFF; the QY1, QT1, QY2, and QT2 step down to 1536 bytes. Every member carries 128 bytes of RAM, a two-channel sixteen-bit timer, a six-bit keyboard interrupt module, and – except for the QT1 – a four-channel eight-bit ADC. The QY4 comes in sixteen-pin DIP, SOIC, and TSSOP shells, while the QT4 shrinks into eight pins. Reading a QY4 image therefore means reading an image whose useful code region is barely three and a half kilobytes once the vectors and the monitor routines overhead are accounted for, and whose RAM is a single 128-byte page beginning at $0080 – the same page where the monitor plants its handshake flag.
No crystal is required. The internal oscillator runs the bus at 3.2 MHz, carries an eight-bit trim register that pulls accuracy to about 0.4 percent, and drifts a lazy twenty-five percent when untrimmed. The CONFIG register selects the low-voltage inhibit trip point, the COP watchdog stands guard, and an auto-wakeup path can pull the core out of stop mode. Two consequences matter to anyone moving firmware between dies. First, a cloned image without the original trim value will miss its baud rates and ADC timing on the new part. Second, the trim byte itself lives in flash alongside the vectors, so a faithful copy of the array carries it along automatically – one more reason to prefer a true readout over a reconstruction.
Standard entry uses the classic recipe: the test voltage applied to the PTA2/IRQ pin while reset comes out of its power-on cycle, and an external 9.8304 MHz oscillator so the NRZ serial timing on PTA0 lands at 9600 baud. The factory also documented a low-voltage route for blank parts: when the reset vector at $FFFE and $FFFF still reads $FF, the monitor engages without any high voltage, needing only the off-chip clock. Application note AN2305 went further for evaluation boards, parking a small user-mode stub in the last eighty bytes of flash that block-protects itself and pretends to be the monitor, so developers could reflash with nothing more exotic than a serial cable. All of these paths end in the same place: the ROM firmware waiting for eight bytes from the host.
Those eight bytes are compared against flash locations $FFF6 through $FFFD, cells that sit immediately below the reset vector and are ordinarily filled with whatever data the application left there. The data sheet is blunt about it: do not leave them blank; program them even if they hold nothing meaningful. Match, and the host may read the whole array and execute from it until the next power cycle. Mismatch, and the monitor keeps answering but the flash reads back garbage while execution from array addresses resets the part. Success shows up as bit 6 set in RAM address $80, and the ROM stays silent – no break character – until the handshake completes or fails. Because compilers lay the vectors out per build, two versions of the same product line almost never share a password, a quirk that the older MC68HC908EY8 cpu code copy parts share and that also shaped expectations for the MC68HC908JK8 flash restoration.
A failed handshake is not the end of the story, but the sequel is short. The monitor can still mass erase the entire array by running an erase routine the host downloads into RAM, and that operation clears the security locations to $FF, returning the die to a blank, unsecure device ready for fresh code. Nothing short of the correct eight bytes restores read access to programmed content. It is a deliberately simple trade – the same philosophy that governs the MC68HC705J1 memory one-time-programmable ancestors of this family, and that the HC08 generation carried into parts like the MC68HC08GP16 locked memory.
A clone worth the name reproduces the whole array, vectors and trim and all, onto an identical blank die whose security bytes read $FF. That makes blank-source parts the honest baseline: with the security locations erased, the low-voltage entry path needs no test voltage at all. For parts that arrive programmed and locked, the sequence is handshake first, read second, erase only as an acknowledged loss, followed by whatever board-level chip heximal extraction or IC reverse engineering work can recover the numbers the die will no longer give up. The same reasoning extends naturally to MC68HC08GP32 chip heximal and the rest of the eight-bit Motorola lineage that followed.