English
Language : 

SLRC400 Datasheet, PDF (104/130 Pages) NXP Semiconductors – I·CODE Reader IC
Philips Semiconductors
I•CODE Reader IC
Product Specification Rev. 2.0 November 2001
SL RC400
16.5 Commands to Access the E²PROM
16.5.1 WRITEE2 COMMAND 01HEX
16.5.1.1 Overview
Command
WriteE2
Codehex
Action
01
Get data from FIFO buffer and write it to the E²PROM
Arguments and
Data passed via
FIFO
Start Address LSB
Start Address MSB
Data Byte Stream
Returned
Data via
FIFO
-
The WriteE2-Command interprets the first two bytes in the FIFO buffer as E²PROM starting byte-address.
Any further bytes are interpreted as data bytes and are programmed into the E²PROM, starting from the
given E²PROM starting byte-address. This command does not return any data.
The WriteE2-Command can only be started by the µ-Processor. It will not stop automatically but has to be
stopped explicitly by the µ-Processor by issuing the Idle-Command.
16.5.1.2 Programming Process
One byte up to 16 byte can be programmed into the E2PROM in one programming cycle. The time needed
will be in any case about 5.8ms.
The state machine copies all data bytes prepared in the FIFO buffer to the E²PROM input buffer. The internal
E²PROM input buffer is 16 byte long which is equal the block size of the E²PROM. A programming cycle is
started either if the last position of the E²PROM input buffer is written or if the last byte of the FIFO buffer has
been fetched.
As long as there are unprocessed bytes in the FIFO buffer or the E²PROM programming cycle still is in
progress, the flag E2Ready is 0. If all data from the FIFO buffer are programmed into the E²PROM, the flag
E2Ready is set to1. Together with the rising edge of E2Ready the interrupt request flag TxIRq indicates a 1.
This may be used to generate an interrupt when programming of all data is finished.
After the E2Ready bit is set to 1, the WriteE2-Command may be stopped by the µ-Processor by issuing the
Idle-Command.
Important: The WriteE2-Command must not be stopped by starting another command before the E2Ready
flag is set to 1. Otherwise the content of the currently processed E²PROM block will not be defined or in
worst case the SL RC400 functionality is in-reversibly reduced.
104
Preliminary