English
Language : 

MC9S12KG128 Datasheet, PDF (75/600 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 2
128 Kbyte ECC Flash Module (FTS128K1ECCV1)
2.1 Introduction
This document describes the FTS128K1ECC module that includes a 128Kbyte Flash (nonvolatile)
memory with built-in Error Code Correction (ECC). The Flash memory may be read as either bytes,
aligned words, or misaligned words. Read access time is one bus cycle for bytes and aligned words, and
two bus cycles for misaligned words.
The Flash memory is ideal for program and data storage for single-supply applications allowing for field
reprogramming without requiring external voltage sources for program or erase. Program and erase
functions are controlled by a command driven interface. The Flash module supports both block erase and
sector erase. An erased bit reads 1 and a programmed bit reads 0. The high voltage required to program
and erase the Flash memory is generated internally. It is not possible to read from a Flash block while it is
being erased or programmed.
The ECC logic is included in the Flash module with the program and erase operations automatically
generating the ECC parity bits. The ECC logic implements a modified Hamming code capable of
correcting single bit faults and detecting double bit faults in each word of the Flash memory.
CAUTION
A Flash word must be in the erased state before being programmed.
Cumulative programming of bits within a Flash word is not allowed and will
result in invalid data stored.
2.1.1 Glossary
Command Write Sequence — A three-step MCU instruction sequence to execute built-in algorithms
(including program and erase) on the Flash memory.
2.1.2 Features
• 128 Kbytes of Flash memory comprised of one 128 Kbyte block divided into 128 sectors of 1024
bytes with every word (two bytes) accompanied by 6 ECC parity bits
• Single bit fault correction per word during read operations
• Automated program and erase algorithm with generation of ECC parity bits
• Interrupts on Flash command completion, command buffer empty and double bit fault detection
• Fast sector erase and word program operation
• 2-stage command pipeline for faster multi-word program times
MC9S12KG128 Data Sheet, Rev. 1.15
Freescale Semiconductor
75