English
Language : 

AN3209 Datasheet, PDF (9/42 Pages) STMicroelectronics – Developing your M24LR64-R datalogger application for temperature acquisition
AN3209
Component overview
Table 1. M24LR64-R signal names (continued)
Signal name
Function
AC0, AC1
VCC
VSS
Antenna coils
Supply voltage
Ground
Direction
I/O
2.1.2
M24LR64-R I2C interface
The M24LR64-R can work both in standard and Fast I2C modes. The device carries a built-
in 4-bit device type identifier code (1010b) compliant with the I2C bus definition. For the
demonstration application, the STM8L101K3 master operates at a speed of 100 kHz.
The M24LR64-R behaves as a slave for the I2C protocol with all memory operations
synchronized by the serial clock. The device I2C address is 1010 0000b (0xA0)
The I2C master writes and reads to/from the M24LR64-R memory. These basic operations
are performed by the M24LR64-R_Datalogger_application_firmware by calling i2c_ee.c
library functions.
Write operations
To write to the memory, the I2C master sends write commands to the M24LR64-R. The
command frame must be compliant with the format described in Figure 7.
The M24LR64-R_Datalogger_application_firmware calls the I2C_EE_PageWrite function
which programs a set of bytes into the EEPROM (see Table 2 for a description and an
example).
Figure 7. Write I2C frame format
!#+
!#+
!#+
!#+
0AGE7RITE $EV3ELECT
"YTEADDRESS "YTEADDRESS
$ATAIN
$ATAIN
!#+
!#+
$ATAIN.
27
!)
Doc ID 17419 Rev 2
9/42