Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN3002 Datasheet(PDF) 7 Page - STMicroelectronics

Part # AN3002
Description  Description of the M24LRxx-R and M24LRxxE-R dual interface
PDF  22 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3002 Datasheet(HTML) 7 Page - STMicroelectronics

Back Button AN3002 Datasheet HTML 3Page - STMicroelectronics AN3002 Datasheet HTML 4Page - STMicroelectronics AN3002 Datasheet HTML 5Page - STMicroelectronics AN3002 Datasheet HTML 6Page - STMicroelectronics AN3002 Datasheet HTML 7Page - STMicroelectronics AN3002 Datasheet HTML 8Page - STMicroelectronics AN3002 Datasheet HTML 9Page - STMicroelectronics AN3002 Datasheet HTML 10Page - STMicroelectronics AN3002 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 22 page
background image
AN3002
I2C password mechanisms
Doc ID 15912 Rev 2
7/22
2
I2C password mechanisms
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 8 bytes of the
I2C_Write_Lock bit area starting from the location 2048 (see Table 2). Using these 64 bits, it
is possible to write-protect all the 64 sectors in the M24LRxx memory.
Each bit controls the I2C write access to a specific sector as shown in Table 2. It is always
possible to unprotect a sector in the I2C 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.
In I2C mode, read access to the I2C_Write_Lock bit area is always allowed. Write access
depends on the correct presentation of the I2C password.
To access the I2C_Write_Lock bit area, the device select code used for any I2C command
must have the E2 Chip Enable address at 1.
On delivery, the default value of the 8 bytes of the I2C_Write_Lock bit area is reset to 00h.
2.1
M24LRxx I2C password security
The M24LRxx controls the I2C sector write access using the 32-bit-long I2C password and
the 64-bit I2C_Write_Lock bit area. The I2C password value is managed using two I2C
commands: I2C Present Password and I2C Write Password.
2.1.1
I2C Present Password command description
The I2C Present Password command is used in the I2C mode to present the password to the
M24LRxx in order to modify the write access rights of all the memory sectors protected by
the I2C_Write_Lock bits, including the password itself. If the presented password is correct,
the access rights remain activated until the M24LRxx is powered off or until a new I2C
Present Password command is issued.
Following a Start condition, the bus master sends a device select code with the Read/Write
bit (RW) reset to 0 and the Chip Enable bit E2 at 1. The device acknowledges this, as shown
in Figure 3, and waits for two I2C password address bytes, 09h and 00h. The device
responds to each address byte with an acknowledge bit, and then waits for the 4 password
data bytes, the validation code, 09h, and a resend of the 4 password data bytes. The most
significant byte of the password is sent first, followed by the least significant bytes.
It is necessary to send the 32-bit password twice to prevent any data corruption during the
sequence. If the two 32-bit passwords sent are not exactly the same, the M24LRxx does not
start the internal comparison.
Table 2.
I2C_Write_Lock bit
I2C byte address
Bits [31:24]
Bits [23:16]
Bits [15:8]
Bits [7:0]
E2 = 1
2048
sectors 31-24
sectors 23-16
sectors 15-8
sectors 7-0
E2 = 1
2052
sectors 63-56
sectors 55-48
sectors 47-40
sectors 39-32



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com