
Preliminary
DSP for Digital Answering phone with FLASH interface
KS16121
The KS16121 supports both 4M and 16M flash memories in a by-8 arrangement. It can use up to four 4M
flash memory devices for the message storing space. The pins CLE, ALE, WEB and REB are commonly
used for the lower four bits of the address bus, ADD [ 3:0 ], respectively.
The memory interface subsystem has an on-chip flash memory control and flash memory command generation
circuitry.
The data transfer from the ROM / EPROM is byte-wide with the maximum address space of 64K words.
SOFTWARE OPERATION
After a system reset, the KS16121 is in idle mode. The host has to issue a new command to put it in an
active mode. The KS16121 interprets the command , performs the functions specified by the command, and
returns a status word. Section HOST INSTRUCTIONS AND STATUS WORDs summarizes the instruction set
supported by the KS16121 and the status words returned for each instructions.
The KS16121 software operational modes with corresponding instructions and status words are described in
this section. In some modes of operation, the host is expected to issue a sequence of valid commands in
an appropriate order. The KS16121 returns to the IDLE mode when a task terminates or an invalid command
is detected or flash write / erase failure occurs, except where described otherwise in this section.
RESET
The KS16121 enters a RESET mode with a low to high transition of the RESET pin. The reset is required
after system power-up. It is not required after a period of power-down operation.
The reset operation first determines whether it needs an initialization command by checking the validity of
data in flash memory . An initialization is needed only when the flash memories have never been initialized
before, or write/erase failures had occurred.
At the completion of the RESET procedure, the KS16121 returns to the IDLE mode with the status word
indicating the number of messages stored. The status also indicates whether an initialization (AI) and / or a
formating (FN) is required before the flash memory can be used in normal operation.
The AI bit is set if flash memories have been initialized before with KS16121. The FN bit is set when flash
memories are neither properly initialized nor in a pre-formatted condition from factory.
If the KS16121 determines that a power failure had occured during previous flash write / erase operation, it
recovers the memory subsystem from any loss of information due to the failure, before terminating reset procedure.
IDLE
The KS16121 monitors the host interface for a new instruction in this mode. A new task may be initiated
from this mode. It returns to the IDLE mode at the completion of a task automatically or by an explicit idle
command from the host.