4-Kbit EEPROM with password protection, dual interface & energy
harvesting: 400 kHz I²C bus & ISO 15693 RF protocol at 13.56 MHz
Datasheet − production data
Features
I2C interface
■ Two-wire I
400 kHz protocol
■ Single supply voltage:
– 1.8 V to 5.5 V
■ Byte and Page Write (up to 4 bytes)
■ Random and Sequential read modes
■ Self-timed programming cycle
■ Automatic address incrementing
■ Enhanced ESD/latch-up protection
■ I²C timeout
Contactless interface
■ ISO 15693 and ISO 18000-3 mode 1
compatible
■ 13.56 MHz ±7k Hz carrier frequency
■ To tag: 10% or 100% ASK modulation using
1/4 (26 Kbit/s) or 1/256 (1.6 Kbit/s) pulse
position coding
■ From tag: load modulation using Manchester
coding with 423 kHz and 484 kHz subcarriers
in low (6.6 kbit/s) or high (26 kbit/s) data rate
mode. Supports the 53 kbit/s data rate with
Fast commands
■ Internal tuning capacitance: 27.5pF
■ 64-bit unique identifier (UID)
■ Read Block & Write (32-bit blocks)
Digital output pin
■ User configurable pin: RF write in progress or
RF busy mode
Energy harvesting
■ Analog pin for energy harvesting
■ 4 sink current configurable ranges
2
C serial interface supports
Memory
■ 4-Kbit EEPROM organized into:
– 512 bytes in I
– 128 blocks of 32 bits in RF mode
■ Write time
2
–I
C: 5 ms (max.)
– RF: 5.75 ms including the internal Verify
time
■ More than 1 million write cycles
■ More than 40-year data retention
■ Multiple password protection in RF mode
■ Single password protection in I
■ Package
– ECOPACK2
Halogen-free)
2
C mode
2
C mode
®
(RoHS compliant and
June 2012Doc ID 022208 Rev 51/142
This is information on a product in full production.
The M24LR04E-R device is a dual-interface, electrically erasable programmable memory
(EEPROM). It features an I
also a contactless memory powered by the received carrier electromagnetic wave. The
M24LR04E-R is organized as 512 × 8 bits in the I
The M24LR04E-R also features an energy harvesting analog output, as well as a userconfigurable digital output pin toggling during either RF write in progress or RF busy mode.
Figure 1.Logic diagram
2
C interface and can be operated from a VCC power supply. It is
2
C mode and as 128 × 32 bits in RF mode.
2
I
C uses a two-wire serial interface, comprising a bidirectional data line and a clock line. The
devices carry a built-in 4-bit device type identifier code (1010) in accordance with the I
bus definition.
The device behaves as a slave in the I
by the serial clock. Read and Write operations are initiated by a Start condition, generated
by the bus master. The Start condition is followed by a device select code and Read/Write
bit (RW
When writing data to the memory, the device inserts an acknowledge bit during the 9
time, following the bus master’s 8-bit transmission. When data is read by the bus master, the
bus master acknowledges the receipt of the data byte in the same way. Data transfers are
terminated by a Stop condition after an Ack for Write, and after a NoAck for Read.
In the ISO15693/ISO18000-3 mode 1 RF mode, the M24LR04E-R is accessed via the
13.56 MHz carrier electromagnetic wave on which incoming data are demodulated from the
received signal amplitude modulation (ASK: amplitude shift keying). When connected to an
antenna, the operating power is derived from the RF energy and no external power supply is
required. The received ASK wave is 10% or 100% modulated with a data rate of 1.6 Kbit/s
2
C protocol, with all memory operations synchronized
) (as described in Ta bl e 2 ), terminated by an acknowledge bit.
Doc ID 022208 Rev 513/142
th
2
C
bit
DescriptionM24LR04E-R
SDAV
SS
SCL
RF WIP/BUSYAC0
VoutV
CC
MS19742V1
1
2
3
4
8
7
6
5
AC1
using the 1/256 pulse coding mode or a data rate of 26 Kbit/s using the 1/4 pulse coding
mode.
Outgoing data are generated by the M24LR04E-R load variation using Manchester coding
with one or two subcarrier frequencies at 423 kHz and 484 kHz. Data are transferred from
the M24LR04E-R at 6.6 Kbit/s in low data rate mode and 26 Kbit/s high data rate mode. The
M24LR04E-R supports the 53 Kbit/s fast mode in high data rate mode using one subcarrier
frequency at 423 kHz.
The M24LR04E-R follows the ISO 15693 and ISO 18000-3 mode 1 recommendation for
radio-frequency power and signal interface.
The M24LR04E-R provides an Energy harvesting mode on the analog output pin Vout.
When the Energy harvesting mode is activated, the M24LR04E-R can output the excess
energy coming from the RF field on the Vout analog pin. In case the RF field strength is
insufficient or when Energy harvesting mode is disabled, the analog output pin Vout goes
into high-Z state and Energy harvesting mode is automatically stopped.
The M24LR04E-R features a user configurable digital out pin RF WIP/BUSY that can be
used to drive a micro controller interrupt input pin (available only when the M24LR04E-R is
correctly powered on the Vcc pin).
When configured in the RF write in progress mode (RF WIP mode), the RF WIP/BUSY pin is
driven low for the entire duration of the RF internal write operation. When configured in the
RF busy mode (RF BUSY mode), the RF WIP/BUSY pin is driven low for the entire duration
of the RF command progress.
The RF WIP/BUSY pin is an open drain output and must be connected to a pull-up resistor.
Table 1.Signal names
Signal nameFunctionDirection
VoutEnergy harvesting OutputAnalog output
SDASerial DataI/O
SCLSerial ClockInput
AC0, AC1Antenna coilsI/O
V
CC
RF WIP/BUSYDigital signalDigital output
V
SS
Supply voltage
Ground
Figure 2.8-pin package connections
1. See Section 30 for package dimensions, and how to identify pin-1.
14/142Doc ID 022208 Rev 5
M24LR04E-RSignal descriptions
2 Signal descriptions
2.1 Serial clock (SCL)
This input signal is used to strobe all data in and out of the device. In applications where this
signal is used by slave devices to synchronize the bus to a slower clock, the bus master
must have an open drain output, and a pull-up resistor must be connected from Serial Clock
(SCL) to V
most applications, though, this method of synchronization is not employed, and so the pullup resistor is not necessary, provided that the bus master has a push-pull (rather than open
drain) output.
2.2 Serial data (SDA)
This bidirectional signal is used to transfer data in or out of the device. It is an open drain
output that may be wire-OR’ed with other open drain or open collector signals on the bus. A
pull up resistor must be connected from Serial Data (SDA) to V
the value of the pull-up resistor can be calculated).
. (Figure 3 indicates how the value of the pull-up resistor can be calculated). In
CC
. (Figure 3 indicates how
CC
2.3 RF Write in progress / RF Busy (RF WIP/BUSY)
This configurable output signal is used either to indicate that the M24LR04E-R is executing
an internal write cycle from the RF channel or that an RF command is in progress. RF WIP
and signals are available only when the M24LR04E-R is powered by the Vcc pin. It is an
open drain output and a pull up resistor must be connected from RF WIP/BUSY to V
2.4 Energy harvesting analog output (Vout)
This analog output pin is used to deliver the analog voltage Vout available when the Energy
harvesting mode is enabled and the RF field strength is sufficient. When the Energy
harvesting mode is disabled or the RF field strength is not sufficient, the energy harvesting
analog voltage output Vout is in High-Z state.
2.5 Antenna coil (AC0, AC1)
These inputs are used to connect the device to an external coil exclusively. It is advised not
to connect any other DC or AC path to AC0 or AC1.
When correctly tuned, the coil is used to power and access the device using the ISO 15693
and ISO 18000-3 mode 1 protocols.
2.5.1 Device reset in RF mode
CC
.
To ensure a proper reset of the RF circuitry, the RF field must be turned off (100%
modulation) for a minimum t
RF_OFF
period of time.
Doc ID 022208 Rev 515/142
Signal descriptionsM24LR04E-R
2.6 VSS ground
VSS is the reference for the VCC supply voltage and Vout analog output voltage.
2.7 Supply voltage (VCC)
This pin can be connected to an external DC supply voltage.
Note:An internal voltage regulator allows the external voltage applied on V
M24LR04E-R, while preventing the internal power supply (rectified RF waveforms) to output
a DC voltage on the V
2.7.1 Operating supply voltage V
CC
pin.
CC
Prior to selecting the memory and issuing instructions to it, a valid and stable VCC voltage
within the specified [V
(min), VCC(max)] range must be applied (see Tab l e 1 18 ). To
CC
maintain a stable DC supply voltage, it is recommended to decouple the V
suitable capacitor (usually of the order of 10 nF) close to the V
CC/VSS
This voltage must remain stable and valid until the end of the transmission of the instruction
and, for a Write instruction, until the completion of the internal I²C write cycle (t
2.7.2 Power-up conditions
When the power supply is turned on, VCC rises from VSS to VCC. The VCC rise time must not
vary faster than 1V/µs.
2.7.3 Device reset in I²C mode
In order to prevent inadvertent write operations during power-up, a power-on reset (POR)
circuit is included. At power-up (continuous rise of V
I²C instruction until V
lower than the minimum V
has reached the power-on reset threshold voltage (this threshold is
CC
operating voltage defined in Ta bl e 1 18 ). When VCC passes
CC
over the POR threshold, the device is reset and enters the Standby power mode. However,
the device must not be accessed until V
within the specified [V
(min), VCC(max)] range.
CC
has reached a valid and stable VCC voltage
CC
In a similar way, during power-down (continuous decrease in V
below the power-on reset threshold voltage, the device stops responding to any instruction
sent to it.
), the device does not respond to any
CC
), as soon as VCC drops
CC
to supply the
CC
line with a
CC
package pins.
).
W
2.7.4 Power-down conditions
During power-down (continuous decay of VCC), the device must be in Standby power mode
(mode reached after decoding a Stop condition, assuming that there is no internal write
cycle in progress).
16/142Doc ID 022208 Rev 5
M24LR04E-RSignal descriptions
1
10
100
101001000
Bus line capacitor (pF)
Bus line pull-up resistor
(k
)
When t
LOW
= 1.3 µs (min value for
f
C
= 400 kHz), the R
bus
× C
bus
time constant must be below the
400 ns time constant line
represented on the left.
I²C bus
master
M24xxx
R
bus
V
CC
C
bus
SCL
SDA
ai14796b
R
bus
× C
bus
= 400 ns
Here R
bus
× C
bus
= 120 ns
4 kΩ
30 pF
SCL
SDA
SCL
SDA
SDA
Start
Condition
SDA
Input
SDA
Change
AI00792B
Stop
Condition
123789
MSB
ACK
Start
Condition
SCL
123789
MSBACK
Stop
Condition
Figure 3.I2C Fast mode (fC = 400 kHz): maximum R
Figure 4.I
capacitance (C
2
C bus protocol
bus
)
value versus bus parasitic
bus
Doc ID 022208 Rev 517/142
Signal descriptionsM24LR04E-R
Table 2.Device select code
Device type identifier
b7b6b5b4b3b2b1b0
Device select code1010E2
1. The most significant bit, b7, is sent first.
2. E2 is not connected to any external pin. It is however used to address the M24LR04E-R as described in
Section 3 and Section 4.
Table 3.Address most significant byte
b15 b14 b13 b12 b11 b10 b9 b8
Table 4.Address least significant byte
b7 b6 b5 b4 b3 b2 b1 b0
(1)
Chip Enable addressRW
(2)
11RW
18/142Doc ID 022208 Rev 5
M24LR04E-RUser memory organization
3 User memory organization
The M24LR04E-R is divided into 4 sectors of 32 blocks of 32 bits, as shown in Ta bl e 5 .
Figure 6 shows the memory sector organization. Each sector can be individually read-
and/or write-protected using a specific password command. Read and write operations are
possible if the addressed data are not in a protected sector.
The M24LR04E-R also has a 64-bit block that is used to store the 64-bit unique identifier
(UID). The UID is compliant with the ISO 15963 description, and its value is used during the
anticollision sequence (Inventory). This block is not accessible by the user and its value is
written by ST on the production line.
The M24LR04E-R includes an AFI register that stores the application family identifier, and a
DSFID register that stores the data storage family identifier used in the anticollision
algorithm.
The M24LR04E-R has four 32-bit blocks that store an I
codes.
The M24LR04E-R user memory is divided into 4 sectors. Each sector contains 1024 bits.
The protection scheme is described in Section 4: System memory area.
In RF mode, a sector provides 32 blocks of 32 bits. Each read and write access is done by
block. Read and write block accesses are controlled by a Sector Security Status byte that
defines the access rights to the 32 blocks contained in the sector. If the sector is not
protected, a Write command updates the complete 32 bits of the selected block.
2
In I
C mode, a sector provides 128 bytes that can be individually accessed in Read and
Write modes. When protected by the corresponding I2C_Write_Lock bit, the entire sector is
write-protected. To access the user memory, the device select code used for any I
command must have the E2 Chip Enable address at 0.
20/142Doc ID 022208 Rev 5
2
C
M24LR04E-RUser memory organization
Table 5.Sector details
Sector
number
0
RF block
address
I2C byte
address
Bits [31:24]Bits [23:16]Bits [15:8]Bits [7:0]
00useruseruseruser
14useruseruseruser
28useruseruseruser
312useruseruseruser
416useruseruseruser
520useruseruseruser
624useruseruseruser
728useruseruseruser
832useruseruseruser
936useruseruseruser
1040useruseruseruser
1144useruseruseruser
1248useruseruseruser
1352useruseruseruser
1456useruseruseruser
1560useruseruseruser
1664useruseruseruser
1768useruseruseruser
1872useruseruseruser
1976useruseruseruser
2080useruseruseruser
2184useruseruseruser
2288useruseruseruser
2392useruseruseruser
2496useruseruseruser
25100useruseruseruser
26104useruseruseruser
27108useruseruseruser
28112useruseruseruser
29116useruseruseruser
30120useruseruseruser
31124useruseruseruser
Doc ID 022208 Rev 521/142
User memory organizationM24LR04E-R
Table 5.Sector details (continued)
Sector
number
1
2..................
3
RF block
address
32128useruseruseruser
33132useruseruseruser
34136useruseruseruser
35140useruseruseruser
36144useruseruseruser
37148useruseruseruser
38152useruseruseruser
39156useruseruseruser
..................
..................
127508useruseruseruser
I2C byte
address
Bits [31:24]Bits [23:16]Bits [15:8]Bits [7:0]
22/142Doc ID 022208 Rev 5
M24LR04E-RSystem memory area
4 System memory area
4.1 M24LR04E-R block security in RF mode
The M24LR04E-R provides a special protection mechanism based on passwords. In RF
mode, each memory sector of the M24LR04E-R can be individually protected by one out of
three available passwords, and each sector can also have Read/Write access conditions
set.
Each memory sector of the M24LR04E-R is assigned with a Sector security status byte
including a Sector Lock bit, two Password Control bits and two Read/Write protection bits,
as shown in Ta bl e 7 .
Ta bl e 6 describes the organization of the Sector security status byte, which can be read
using the Read Single Block and Read Multiple Block commands with the Option_flag set
to 1.
On delivery, the default value of the SSS bytes is set to 00h.
When the Sector Lock bit is set to 1, for instance by issuing a Lock-sector command, the two
Read/Write protection bits (b
, b2) are used to set the Read/Write access of the sector as
1
described in Ta b le 8 .
Table 8.Read / Write protection bit setting
Sector
Lock
, b
b
2
1
Sector access
when password presented
when password not presented
0xxReadWriteReadWrite
100ReadWriteReadNo Write
101ReadWriteReadWrite
110ReadWriteNo ReadNo Write
111ReadNo WriteNo ReadNo Write
Sector access
The next two bits of the Sector security status byte (b3, b4) are the password control bits.
The value of these two bits is used to link a password to the sector, as defined in Ta bl e 9 .
Doc ID 022208 Rev 523/142
System memory areaM24LR04E-R
Table 9.Password control bits
b4, b
3
Password
00The sector is not protected by a password.
01The sector is protected by password 1.
10The sector is protected by password 2.
11The sector is protected by password 3.
The M24LR04E-R password protection is organized around a dedicated set of commands,
plus a system area of three password blocks where the password values are stored. This
system area is described in Ta bl e 1 0.
Table 10.Password system area
Add
1Password 1
2Password 2
3Password 3
The dedicated commands for protection in RF mode are:
●Write-sector password:
The Write-sector password command is used to write a 32-bit block into the password
system area. This command must be used to update password values. After the write
cycle, the new password value is automatically activated. It is possible to modify a
password value after issuing a valid Present-sector password command. On delivery,
the three default password values are set to 0000 0000h and are activated.
●Lock-sector:
The Lock-sector command is used to set the sector security status byte of the selected
sector. Bits b
command. The sector lock bit, b
to b1 of the sector security status byte are affected by the Lock-sector
4
, is set to 1 automatically. After issuing a Lock-sector
0
command, the protection settings of the selected sector are activated. The protection of
a locked block cannot be changed in RF mode. A Lock-sector command sent to a
locked sector returns an error code.
24/142Doc ID 022208 Rev 5
M24LR04E-RSystem memory area
●Present-sector password:
The Present-sector password command is used to present one of the three passwords
to the M24LR04E-R in order to modify the access rights of all the memory sectors
linked to that password (Ta b le 8 ) including the password itself. If the presented
password is correct, the access rights remain activated until the tag is powered off or
until a new Present-sector password command is issued. If the presented password
value is not correct, all the access rights of all the memory sectors are deactivated.
●Sector security status byte area access conditions in I2C mode:
2
In I
C mode, read access to the sector security status byte area is always allowed.
Write access depends on the correct presentation of the I
To access the Sector security status byte area, the device select code used for any I
2
C
command must have the E2 Chip Enable address at 1.
2
An I
C write access to a sector security status byte re-initializes the RF access
condition to the given memory sector.
4.1.1 Example of the M24LR04E-R security protection in RF mode
Ta bl e 1 1 and Ta bl e 1 2 show the sector security protections before and after a valid Present-
sector password command. Tab le 1 1 shows the sector access rights of an M24LR04E-R
after power-up. After a valid Present-sector password command with password 1, the
memory sector access is changed as shown in Ta bl e 1 2.
Table 11.M24LR04E-R sector security protection after power-up
Sector
address
0 Protection: standard ReadNo Writexxx 00001
1 Protection: pswd 1ReadNo Writexxx 01001
2 Protection: pswd 1ReadWritexxx 01011
3 Protection: pswd 1No ReadNo Writexxx 01101
4 Protection: pswd 1No ReadNo Writexxx 01111
Table 12.M24LR04E-R sector security protection after a valid presentation of
Sector security status byte
b
7b6b5b4b3b2b1b0
password 1
Sector
address
0Protection: standardReadNo Writexxx00001
1Protection: pswd 1ReadWritexxx01001
2Protection: pswd 1ReadWritexxx01011
3Protection: pswd 1ReadWritexxx01101
4Protection: pswd 1ReadNo Writexxx01111
Sector security status byte
b7b6b5b4b3b2b1b
0
Doc ID 022208 Rev 525/142
System memory areaM24LR04E-R
4.2 M24LR04E-R block security in I²C mode (I2C_Write_Lock bit
area)
In the I2C mode only, it is possible to protect individual sectors against Write operations.
This feature is controlled by the I2C_Write_Lock bits stored in the 2 bytes of the
I2C_Write_Lock bit area. I2C_Write_Lock bit area starts from location 2048 (see Ta bl e 1 3 ).
To access the I2C_Write_Lock bit area, the device select code used for any I
must have the E2 Chip Enable address at 1.
2
C command
Using these 16 bits, it is possible to write-protect all the 4 sectors of the M24LR04E-R
memory. Each bit controls the I
is always possible to unprotect a sector in the I
2
C write access to a specific sector as shown in Ta bl e 1 3 . It
2
C mode. When an I2C_Write_Lock bit is
reset to 0, the corresponding sector is unprotected. When the bit is set to 1, the
corresponding sector is write-protected.
2
In I
C mode, read access to the I2C_Write_Lock bit area is always allowed. Write access
depends on the correct presentation of the I
2
C password.
On delivery, the default value of the two bytes of the I2C_Write_Lock bit area is reset to 00h.
m
Table 13.I2C_Write_Lock bit
I2C byte addressBits [4:15]Bits [3:0]
E2 = 12048Don’t caresectors 0-3
4.3 Configuration byte and Control register
The M24LR04E-R offers an 8-bit non-volatile Configuration byte located at I²C location 2320
of the system area used to store the RF WIP/BUSY pin and the energy harvesting
configuration (see Ta b le 1 4 ).
The M24LR04E-R also offers an 8-bit volatile Control register located at I²C location 2336 of
the system area used to store the energy harvesting enable bit as well as a FIELD_ON bit
indicator (see Tab le 1 5 ).
4.3.1 RF WIP/BUSY pin configuration
The M24LR04E-R features a configurable open drain output RF WIP/BUSY pin used to
provide RF activity information to an external device.
The RF WIP/BUSY pin functionality depends on the value of bit 3 of the Configuration byte.
●RF busy mode
When bit 3 of the Configuration byte is set to 0, the RF WIP/BUSY pin is configured in RF
busy mode.
The purpose of this mode is to indicate to the I²C bus master whether the M24LR04E-R is
busy in RF mode or not.
In this mode, the RF WIP/BUSY pin is tied to 0 from the RF command Start Of Frame (SOF)
until the end of the command execution.
If a bad RF command is received, the RF WIP/BUSY pin is tied to 0 from the RF command
SOF until the reception of the RF command CRC. Otherwise, the RF WIP/BUSY pin is in
high-Z state.
26/142Doc ID 022208 Rev 5
M24LR04E-RSystem memory area
When tied to 0, the RF WIP/BUSY signal returns to High-Z state if the RF field is cut-off.
During execution of I²C commands, the RF WIP/BUSY pin remains in high-Z state.
●RF Write in progress
When bit 3 of the Configuration byte is set to 1, the RF WIP/BUSY pin is configured in RF
Write in progress mode.
The purpose of this mode is to indicate to the I²C bus master that some data have been
changed in RF mode.
In this mode, the RF WIP/BUSY pin is tied to 0 for the duration of an internal write operation
(i.e. between the end of a valid RF write command and the beginning of the RF answer).
During execution of I²C write operations, the RF WIP/BUSY pin remains in high-Z state.
4.3.2 Energy harvesting configuration
The M24LR04E-R features an Energy harvesting mode on the Vout analog output.
The general purpose of the Energy harvesting mode is to deliver a part of the non-
necessary RF power received by the M24LR04E-R on the AC0-AC1 RF input in order to
supply an external device. The current consumption on the analog voltage output Vout is
limited to ensure that the M24LR04E-R is correctly supplied during the powering of the
external device.
When the Energy harvesting mode is enabled and the power delivered on the AC0-AC1 RF
input exceeds the minimum required P
AC0-AC1_min
, the M24LR04E-R is able to deliver a
limited and unregulated voltage on the Vout pin, assuming the current consumption on the
Vout does not exceed the I
sink_max
maximum value.
If one of the condition above is not met, the analog voltage output pin Vout is set in High-Z
state.
For robust applications using the Energy harvesting mode, four current fan-out levels can be
chosen.
●Vout sink current configuration
The sink current level is chosen by programming EH_cfg1 and EH_cfg0 into the
Configuration byte (see Ta bl e 1 4 ).
The minimum power level required on AC0-AC1 RF input P
voltage Vout, as well as the maximum current consumption I
AC0-AC1_min
sink_max
, the delivered
on the Vout pin
corresponding to the <EH_cfg1,EH_cfg0> bit values are described in Ta bl e 1 25 .
Table 14.Configuration byte
I2C byte address Bit 7 Bit 6 Bit 5 Bit 4Bit 3Bit 2BIT 1BIT 0
(1)
E2=12320X
1. Bit 7 to Bit 4 are don’t care bits.
(1)X(1)X(1)
X
RF WIP/BUSYEH_mode EH_cfg1 EH_cfg0
Doc ID 022208 Rev 527/142
System memory areaM24LR04E-R
●Energy harvesting enable control
Delivery of Energy harvesting analog output voltage on the Vout pin depends on the value of
the EH_enable bit of the volatile Control register (see Tab le 1 5 ).
–When set to 1, the EH_enable bit enables the Energy harvesting mode, meaning
that the Vout analog output signal is delivered when the P
AC0-AC1_min
and I
sink_max
conditions corresponding to the chosen sink current configuration bit are met (see
Ta bl e 1 25 ).
–When set to 0, the EH_enable bit disable the Energy harvesting mode and the
analog output Vout remains in set in High-Z state.
●Energy harvesting default mode control
At power-up, in I²C or RF mode, the EH_enable bit is updated according to the value of the
EH_mode bit stored in the non-volatile Configuration byte (see Ta bl e 1 6 ). In other words, the
EH_mode bit is used to configure whether the Energy harvesting mode is enabled or not by
default.
Table 16.EH_enable bit value after power-up
EH_mode valueEH_enable after power-up
Energy harvesting
after power-up
01enabled
10disabled
4.3.3 FIELD_ON indicator bit
The FIELD_ON bit indicator located as Bit 1 of the Control register is a read-only bit used to
indicate when the RF power level delivered to the M24LR04E-R is sufficient to execute RF
commands.
●When FIELD_ON = 0, the M24LR04E-R is not able to execute any RF commands.
●When FIELD_ON =1, the M24LR04E-R is able to execute any RF commands.
Note:During read access to the Control register in RF mode, the FIELD_ON bit is always read
at 1.
28/142Doc ID 022208 Rev 5
M24LR04E-RSystem memory area
4.3.4 Configuration byte access in I²C and RF modes
In I²C mode, read and write accesses to the non-volatile Configuration byte are always
allowed. To access the Configuration byte, the device select code used for any I²C
command must have the E2 Chip enable address at 1.
The dedicated commands to access the Configuration byte in RF mode are:
●Read configuration byte command (ReadCfg):
The ReadCfg command is used to read the eight bits of the Configuration byte.
●Write energy harvesting configuration command (WriteEHCfg):
The WriteEHCfg command is used to write the EH_mode, EH_cfg1 and EH_cfg0 bits into
the Configuration byte.
The WriteDOCfg command is used to write the RF WIP/BUSY bit into the Configuration
byte.
After any write access to the Configuration byte, the new configuration is automatically
applied.
4.3.5 Control register access in I²C or RF mode
In I²C mode, read and write accesses to the volatile Control register are always allowed. To
access the Control register, the device select code used for any I²C command must have the
E2 Chip enable address at 1.
The dedicated commands to access the Control register in RF mode are:
●Check energy harvesting enable bit command (CheckEHEn):
The CheckEHEn command is used to read the eight bits of the Control register. When it is
run, the FIELD_ON bit is always read at 1.
●Set/reset energy harvesting enable bit command (SetRstEHEn):
The SetRstEHEn command is used to set or reset the value of the EH_enable bit into the
Control register.
4.4 ISO 15693 system parameters
The M24LR04E-R provides the system area required by the ISO 15693 RF protocol, as
shown in Ta bl e 1 7 .
The first 32-bit block starting from I
is used to activate/deactivate the write protection of the protected sector in I
power-on, all user memory sectors protected by the I2C_Write_Lock bits can be read but
cannot be modified. To remove the write protection, it is necessary to use the I
password described in Figure 12. When the password is correctly presented — that is, when
all the presented bits correspond to the stored ones — it is also possible to modify the I
password using the I2C write password command described in Figure 13.
2
C address 2304 stores the I2C password. This password
2
C mode. At
2
C present
2
C
The next three 32-bit blocks store the three RF passwords. These passwords are neither
read- nor write- accessible in the I
2
C mode.
Doc ID 022208 Rev 529/142
System memory areaM24LR04E-R
The next byte stores the Configuration byte, at I²C location 2320. This Control register is
used to store the three energy harvesting configuration bits and the RF WIP/BUSY
configuration bit.
The next two bytes are used to store the AFI, at I
location 2323. These two values are used during the RF inventory sequence. They are readonly in the I
2
C mode.
2
C location 2322, and the DSFID, at I2C
The next eight bytes, starting from location 2324, store the 64-bit UID programmed by ST on
the production line. Bytes at I
2
C locations 2332 to 2335 store the IC Ref and the Mem_Size
data used by the RF Get_System_Info command. The UID, Mem_Size and IC ref values are
read-only data.