MCP795B10 MAS [Micro Analog systems], MCP795B10 Datasheet - Page 39

no-image

MCP795B10

Manufacturer Part Number
MCP795B10
Description
SPI Real-Time Clock Calendar
Manufacturer
MAS [Micro Analog systems]
Datasheet
FIGURE 10-2:
10.1.4
The MCP795XXX contains a protected area of 64 bits
that can be used to hold a unique ID, such as a serial
number or MAC address code. To gain write access to
these locations, a specific sequence is required. Any
deviation from this sequence will reset the lock on
these locations. Once these locations have been
unlocked they have to be written to in the next com-
mand by issuing the correct command. A write to a dif-
ferent location will lock the ID locations and clear the
WEL bit.
FIGURE 10-3:
 2011 Microchip Technology Inc.
SCK
CS
SO
SI
0
0
WRITE TO THE UNLOCK REGISTER
0
1
SCK
CS
SO
0
SI
2
Instruction
WRITE SEQUENCE
UNLOCK SEQUENCE
1
3
0
0
0
4
0
0
1
5
0
1
2
Instruction
6
1
0
3
7
A7
0
4
8
1
6
5
9 10 11 12 13 14 15 16 17 18 19 20 21 22
MCP795WXX/MCP795BXX
High-Impedance
0
Preliminary
5
6
Address Byte
0
4
7
7
3
8
6
2
The following is a list of strict conditions which have to
be followed before the unique locations can be written
to:
• EEWREN instruction successfully executed
• UNLOCK 0x55 instruction successfully executed
• UNLOCK 0xAA instruction successfully executed
To issue each Unlock instruction the UNLOCK com-
mand is sent followed by 0x55. Then in a separate
command the UNLOCK command is issued followed
by 0xAA. It is a requirement that each command be
separate, that is CS must toggle between each com-
mand.
Information on how to read and write the ID locations
is detailed in
9 10 11 12 13 14 15
High-Impedance
5
1 A0 7
4
Data
3
Section 9.1.6, Unique ID
2
6
1
5
Data Byte
0
4
3
2
1
DS22280A-page 39
Locations.
23
0

Related parts for MCP795B10