| Electronic Components Datasheet Search |
|
AT24CSW01X Datasheet(PDF) 23 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
AT24CSW01X Datasheet(HTML) 23 Page - Microchip Technology |
|
23 / 41 page ![]() • Write-Protect Lock Bit (WPRL), Bit 0 This bit is used to permanently lock the current state of the WPR. A logic ‘0’ indicates that the WPR can be modified, whereas a logic ‘1’ indicates the WPR has been locked and can no longer be modified. To safeguard against accidental locking of the WPR, the D5 bit must match the WPRL bit (D0 bit) sent to the device. If these bits do not match, the write cycle is aborted and the WPR contents are not modified. 8.2.1 Protected Address Ranges Set by WPB1 and WPB0 The EEPROM array in the AT24CSW01X/AT24CSW02X will be protected from writing in accordance with the WPB1 and WPB0 bit values as long as the WPRE bit is set to logic ‘1’. If the WPRE bit is set to logic ‘0’, no portion of the EEPROM array will be protected. The combination of these three bits creates five possible levels of protection for the device. The protected address ranges of the memory are shown in Table 8-6. Table 8-6. Word Address Byte Requirements for Accessing the Write Protection Register Protection Level WPRE WPB1 WPB2 Protected Address Range Unprotected Address Range 1-Kbit 2-Kbit 1-Kbit 2-Kbit None 0 X X None None 00h–7Fh 00h-FFh Upper ¼ 1 0 0 60h–7Fh C0h–FFh 00h–5Fh 00h–BFh Upper ½ 1 0 1 40h–7Fh 80h–FFh 00h–3Fh 00h–7Fh Upper ¾ 1 1 0 20h–7Fh 40h–FFh 00h–1Fh 00h–3Fh Full Array 1 1 1 00h-7Fh 00h-FFh None None 8.3 Writing to the Write Protection Register When writing the WPR, data bit 7 through 4 are used to ensure that a write operation was intentional. For all write operations to the WPR, bit 6 must be a logic ‘1’ as seen in Table 8-4. Additionally, data bit 5 must be set in accordance with the D0 bit value (WPRL) as noted below. If the WPR is to remain unlocked, then the upper nibble sent during the write operation would be 4h and D0 must be a logic ‘0’, whereas if the WPR is to be permanently locked, the upper nibble would need to be 6h and D0 must be a logic ‘1’. A mismatch of D5 and the WPRL bit will cause the write cycle to abort. Sending more than one byte to the AT24CSW01X/AT24CSW02X when trying to write to the WPR will cause the write cycle to abort and the contents of the WPR will not be changed. Additionally, if the WPR is already locked (WPRL = 1), the write cycle will not execute and the device will be ready for a new operation. Figure 8-2. Write Protection Register Write Operation SCL SDA Device Address Byte Word Address Byte WPR Contents Start by Host ACK from Client MSb MSb Stop by Host MSb 1 2 3 4 5 6 7 8 9 1 0 1 1 # # # 0 0 1 2 3 4 5 6 7 8 9 0 1 D5 0 D3 D2 D1 D0 0 1 X X X X X X X 0 1 2 3 4 5 6 7 8 9 ACK from Client ACK from Client Note: # indicates the hardware address value which is managed by the ordering code of the device (see Table 6-2). 8.4 Reading the Write Protection Register To read the contents of the WPR, a random read operation must be sent to the device (see Random Read) so that the reserved word address bits A7 and A6 can properly be set. It is not possible to read the contents of the WPR with a current address read. When reading the WPR contents, data bit 7 through 4 will always read as a logic ‘0’ as seen in Table 8-4. AT24CSW01X/AT24CSW02X Write Protection © 2020-2021 Microchip Technology Inc. and its subsidiaries Datasheet DS20006396B-page 23 |
|
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 |
| 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 |