DS2506
64Kb Add-Only Memory
www.maxim-ic.com
FEATURES
65536 bits Electrically Programmable Read
Only Memory (EPROM) communicates with
the economy of one signal plus ground
Unique, factory-lasered and tested 64-bit
registration number (8-bit family code +
48-bit serial number + 8-bit CRC tester)
assures absolute traceability because no two
parts are alike
Built-in multidrop controller ensures
compatibility with other MicroLAN products
EPROM partitioned into 256-bit pages for
randomly accessing packetized data records
Each memory page can be permanently write-
protected to prevent tampering
Device is an “add only” memory where
additional data can be programmed into
EPROM without disturbing existing data
Architecture allows software to patch data by
superseding an old page in favor of a newly
programmed page
Reduces control, address, data, power, and
programming signals to a single data pin
Directly connects to a single port pin of a
microprocessor and communicates at up to
16.3 kbits per second
Overdrive mode boosts communication speed
to 142 kbits per second
8-bit family code specifies DS2506
communications requirements to reader
Presence detector acknowledges when the
reader first applies voltage
Low cost PR35 or 8-pin SOIC surface mount
package
Reads over a wide voltage range of 2.8V to
6.0V from -40°C to +85°C; programs at
11.5V to 12.0V from -40°C to +50°C
PIN ASSIGNMENT
PR-35
DALLAS
DS2506
NC
NC
DATA
GND
1
2
3
4
8
7
6
5
NC
NC
NC
NC
8-PIN SOIC
(208 mil)
GND
1 2 3
Bottom View
See Mech.
Drawings Section
ORDERING INFORMATION
DS2506
DS2506S
PR35 Package
8-Pin SOIC Package
1 of 25
DATA
NC
062100
DS2506
SILICON LABEL DESCRIPTION
The DS2506 64Kb Add-Only Memory identifies and stores relevant information about the product to
which it is associated. This lot or product specific information can be accessed with minimal interface, for
example a single port pin of a microcontroller. The DS2506 consists of a factory-lasered registration
number that includes a unique 48-bit serial number, an 8-bit CRC, and an 8-bit Family Code (0FH) plus
64Kb of user-programmable EPROM. The power to program and read the DS2506 is derived entirely
from the 1-Wire communication line. Data is transferred serially via the 1-Wire protocol which requires
only a single data lead and a ground return. The entire device can be programmed and then write-
protected if desired. Alternatively, the part may be programmed multiple times with new data being
appended to, but not overwriting, existing data with each subsequent programming of the device. Note:
Individual bits can be changed only from a logical 1 to a logical 0, never from a logical 0 to a logical 1. A
provision is also included for indicating that a certain page or pages of data are no longer valid and have
been replaced with new or updated data that is now residing at an alternate page address. This page
address redirection allows software to patch data and enhance the flexibility of the device as a stand-alone
database. The 48-bit serial number that is factory-lasered into each DS2506 provides a guaranteed unique
identity which allows for absolute traceability. The PR35 and SOIC packages provide a compact
enclosure that allows standard assembly equipment to handle the device easily for attachment to printed
circuit boards or wiring. Typical applications include storage of calibration constants, maintenance
records, asset tracking, product revision status and access codes.
OVERVIEW
The block diagram in Figure 1 shows the relationships between the major control and memory sections of
the DS2506. The DS2506 has three main data components: 1) 64-bit lasered ROM, 2) 65536-bits
EPROM Data Memory, and 3) 2816-bits EPROM Status Memory. The device derives its power for read
operations entirely from the 1-Wire communication line by storing energy on an internal capacitor during
periods of time when the signal line is high and continues to operate off of this “parasite” power source
during the low times of the 1-Wire line until it returns high to replenish the parasite (capacitor) supply.
During programming, 1-Wire communication occurs at normal voltage levels and then is pulsed
momentarily to the programming voltage to cause the selected EPROM bits to be programmed. The
1-Wire line must be able to provide 12 volts and 10 milliamperes to adequately program the EPROM
portions of the part. Whenever programming voltages are present on the 1-Wire line a special high
voltage detect circuit within the DS2506 generates an internal logic signal to indicate this condition. The
hierarchical structure of the 1-Wire protocol is shown in Figure 2. The bus master must first provide one
of the six ROM Function Commands, 1) Read ROM, 2) Match ROM, 3) Search ROM, 4) Skip ROM, 5)
Overdrive-Skip ROM or 6) Overdrive-Match ROM. Upon completion of an Overdrive ROM command
byte executed at regular speed, the device will enter the Overdrive mode where all subsequent
communication occurs at a higher speed. These commands operate on the 64-bit lasered ROM portion of
each device and can singulate a specific device if many are present on the 1-Wire line as well as indicate
to the bus master how many and what types of devices are present. The protocol required for these ROM
Function Commands is described in Figure 8. After a ROM Function Command is successfully executed,
the memory functions that operate on the EPROM portions of the DS2506 become accessible and the bus
master may issue any one of the five Memory Function Commands specific to the DS2506 to read or
program the various data fields. The protocol for these Memory Function Commands is described in
Figure 5. All data is read and written least significant bit first.
64-BIT LASERED ROM
Each DS2506 contains a unique ROM code that is 64 bits long. The first 8 bits are a 1-Wire family code.
The next 48 bits are a unique serial number. The last 8 bits are a CRC of the first 56 bits. (See Figure 3).
The 64-bit ROM and ROM Function Control section allow the DS2506 to operate as a 1-Wire device and
2 of 25
DS2506
follow the 1-Wire protocol detailed in the section “1-Wire Bus System.” The memory functions required
to read and program the EPROM sections of the DS2506 are not accessible until the ROM function
protocol has been satisfied. This protocol is described in the ROM functions flow chart (Figure 8). The
1-Wire bus master must first provide one of six ROM function commands: 1) Read ROM, 2) Match
ROM, 3) Search ROM, 4) Skip ROM, 5) Overdrive-Skip ROM or 6) Overdrive-Match ROM. After a
ROM function sequence has been successfully executed, the bus master may then provide any one of the
memory function commands specific to the DS2506 (Figure 5).
The 1-Wire CRC of the lasered ROM is generated using the polynomial X
8
+ X
5
+ X
4
+ 1. Additional
information about the Dallas Semiconductor 1-Wire Cyclic Redundancy Check is available in the Book
of DS19xx iButton Standards. The shift register acting as the CRC accumulator is initialized to zero.
Then starting with the least significant bit of the family code, 1 bit at a time is shifted in. After the 8th bit
of the family code has been entered, then the serial number is entered. After the 48
th
bit of the serial
number has been entered, the shift register contains the CRC value. Shifting in the 8 bits of CRC should
return the shift register to all zeroes.
DS2506 BLOCK DIAGRAM
Figure 1
3 of 25
DS2506
HIERARCHICAL STRUCTURE FOR 1-WIRE PROTOCOL
Figure 2
64-BIT LASERED ROM
Figure 3
8-Bit CRC Code
MSB
LSB MSB
48-Bit Serial Number
8-Bit Family Code (0FH)
LSB MSB
LSB
65536-BITS EPROM
The memory map in Figure 4 shows the 65536-bit EPROM section of the DS2506 which is configured as
256 pages of 32 bytes each. The 8-bit scratchpad is an additional register that acts as a buffer when
programming the memory. Data is first written to the scratchpad and then verified by reading an 16-bit
CRC from the DS2506 that confirms proper receipt of the data and address. If the buffer contents are
correct, a programming voltage should be applied and the byte of data will be written into the selected
address in memory. This process insures data integrity when programming the memory. The details for
reading and programming the 65536-bit EPROM portion of the DS2506 are given in the Memory
Function Commands section.
EPROM STATUS BYTES
In addition to the 65536 bits of data memory the DS2506 provides 2816 bits of Status Memory accessible
with separate commands.
The EPROM Status Bytes can be read or programmed to indicate various conditions to the software
interrogating the DS2506. The first 32 bytes of the EPROM Status Memory (addresses 000 to 01FH)
contain the Write Protect Page bits which inhibit programming of the corresponding page in the 65536-bit
main memory area if the appropriate write protection bit is programmed. Once a bit has been
programmed in the Write Protect Page section of the Status Memory, the entire 32 byte page that
corresponds to that bit can no longer be altered but may still be read.
4 of 25
DS2506
The next 32 bytes of the EPROM Status Memory (addresses 020 to 03FH) contain the Write Protect bits
which inhibit altering the Page Address Redirection Byte corresponding to each page in the 65536-bit
main memory area.
The following 32 bytes within the EPROM Status Memory (addresses 040 to 05FH) are reserved for use
by the iButton operating software TMEX. Their purpose is to indicate which memory pages are already in
use. Originally, all of these bits are unprogrammed, indicating that the device does not store any data. As
soon as data is written to any page of the device under control of TMEX, the bit inside this bitmap
corresponding to that page will be programmed to 0, marking this page as used. These bits are application
flags only and have no impact on the internal logic of the DS2506.
The next 256 bytes of the EPROM Status Memory (addresses 100H to 1FFH) contain the Page Address
Redirection Bytes which indicate if one or more of the pages of data in the 65536-bit EPROM section
have been invalidated by software and redirected to the page address contained in the appropriate
redirection byte. The hardware of the DS2506 makes no decisions based on the contents of the Page
Address Redirection Bytes. Since with EPROM technology bits can only be changed from a logical 1 to
a logical 0 by programming, it is not possible to simply rewrite a page if the data requires changing or
updating. But with space permitting, an entire page of data can be redirected to another page within the
DS2506. Under TMEX a page is redirected by writing the one’s complement of the new page address
into the Page Address Redirection Byte that corresponds to the original (replaced) page. This architecture
allows the user’s software to make a “data patch” to the EPROM by indicating that a particular page or
pages should be replaced with those indicated in the Page Address Redirection Bytes. To leave an
authentic audit trail of data patches, it is recommended to also program the write protect bit of the Page
Address Redirection Byte, after the page redirection is programmed. Without this protection, it is still
possible to modify the Page Address Redirection Byte, making it point to a different memory page than
the true one.
If a Page Address Redirection Byte has a FFH value, the data in the main memory that corresponds to
that page is valid. If a Page Address Redirection Byte has some other hex value than FFH, the data in the
page corresponding to that redirection byte is invalid. According to the TMEX definitions the valid data
can now be found at the one’s complement of the page address indicated by the hex value stored in the
associated Page Address Redirection Byte. A value of FDH in the redirection byte for page 1, for
example, would indicate that the updated data is now in page 2. The status memory is programmed
similarly to the data memory. Details for reading and programming the EPROM status memory portion of
the DS2506 are given in the Memory Function Commands section.
The Status Memory address range of the DS2506 extends from 000 to 1FFH. The memory locations 60H
to 0FFH and 200H and higher are physically not implemented. Reading these locations will usually
result in FFH bytes. Attempts to write to these locations will be ignored.
5 of 25