
Philips Semiconductors
Product Specification Rev. 3.0; May 2003
Multiple Protocol Contactless Reader IC
CL RC632
130
Confidential
18.6 Commands to Access the E2PROM
18.6.1 WRITEE2 COMMAND 01
HEX
18.6.1.1 Overview
Command
Code
hex
Action
Arguments and
Data passed via
FIFO
Returned
Data via
FIFO
WriteE2
01
Get data from FIFO buffer and write it to the E2PROM
Start Address LSB
Start Address MSB
Data Byte Stream
-
The
WriteE2-Command
interprets the first two bytes in the FIFO buffer as E2PROM starting byte-address.
Any further bytes are interpreted as data bytes and are programmed into the E2PROM, starting from the
given E2PROM 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
.
18.6.1.2 Programming Process
One byte up to 16 byte can be programmed into the EEPROM 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 E2PROM input buffer. The internal
E2PROM input buffer is 16 byte long, which is equal the block size of the E2PROM. A programming cycle is
started either if the last position of the E2PROM 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 E2PROM programming cycle still is in
progress, the flag
E2Ready
is 0. If all data from the FIFO buffer are programmed into the E2PROM, 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
.
Note: During the E2PROM programming indicated by
E2Ready = 0
the WRITEE2 command cannot be
stopped by any other command.