DS28E01-100有四個存儲區:資料存儲器(EEPROM)(共分4頁,每頁32個位元組)、密鑰存儲器(secret)(8位元組)、含有特定功能和使用者位元組的寄存器頁(register page)和易失性暫存器(scratchpad)(8位元組)。
向資料存儲器寫資料、載入初始密鑰或者向寄存器頁寫資料時,暫存器作為緩存使用。
The DS28E01-100 has four memory areas: data memo-
ry, secrets memory, register page with special function
registers and user bytes, and a volatile scratchpad. The
data memory is organized as four pages of 32 bytes.
Secret and scratchpad are 8 bytes each. The scratch-
pad acts as a buffer when writing to the data memory,
loading the initial secret, or when writing to the register
page.
資料存儲器、密鑰存儲器和寄存器頁位于一個線性位址空間中(暫存器不在這裡)。向資料存儲器和寄存器頁寫資料需要知
道密鑰。
位址0088h至009Fh也被稱為寄存器頁,含有特定功能寄存器、使用者位元組以及工廠位元組。一旦程式設計為AAh 或55h,這
些位元組中的大多數将被寫保護而不能再更改。程式設計為任何其它代碼既不會對該位址加寫保護,也不會激活與該特定
位元組相應的特殊功能。位址0090h至0097h記憶體儲的是器件ROM注冊碼的備份,家族碼存放在較低位址,随後是48位序列号和8位CRC校驗
碼(存放在位址0097h)。從位址0090h至0097h讀取資料時,總線主機接收到的注冊碼每一位的順序都與使用ROM
功能指令得到的相同。
位址寄存器和傳輸狀态

三個寄存器: TA1(目标位址寄存器) TA2(用于擴充 , 現在未用) E/S(狀态寄存器, 0101,1111=OK)
寫入及驗證 在向DS28E01-100寫資料時,必須把暫存器用作中間存儲器。首先,主要制器發Write Scratchpad指令并指定目标地
址,然後将資料寫入暫存器。注意,資料必須寫入存儲器的8 位元組邊界(因為暫存器隻有8位元組)内,也就是說,目标位址的三個最低有效位
T2–T0 必須等于000b。
The DS28E01-100 employs three address registers:
TA1, TA2, and E/S (Figure 7). These registers are com-
mon to many other 1-Wire devices, but operate slightly
differently with the DS28E01-100. Registers TA1 and
TA2 must be loaded with the target address to which
the data is written or from which data is read. Register
E/S is a read-only transfer-status register used to verify
data integrity with write commands. Since the scratch-
pad of the DS28E01-100 is designed to accept data in
blocks of 8 bytes only, the lower 3 bits of TA1 are
forced to 0 and the lower 3 bits of the E/S register (end-
ing offset) always read 1. This indicates that all the data
in the scratchpad is used for a subsequent copying into
main memory or secret. Bit 5 of the E/S register, called
PF or partial byte flag, is a logic 1 if the number of data
bits sent by the master is not an integer multiple of
eight or if the data in the scratchpad is not valid due to
a loss of power. A valid write to the scratchpad clears
the PF bit. Bits 3, 4, and 6 have no function; they always
read 1. The partial flag supports the master checking
the data integrity after a write command. The highest
valued bit of the E/S register, called authorization
accepted (AA), acts as a flag to indicate that the data
stored in the scratchpad has already been copied to
the target memory address. Writing data to the scratch-
pad clears this flag.
DS28E01-100 使用三個位址寄存器:TA1、TA2和E/S(圖7)。這些寄存器普遍用于許多其它1-Wire器件,但在
DS28E01-100中的工作略有不同。寄存器TA1和TA2存放的是寫入資料或讀取資料的目标位址。寄存器E/S 是一個隻
讀的傳輸狀态寄存器,用于驗證寫指令的資料完整性。因為DS28E01-100的暫存器隻接收8位元組的資料塊,是以TA1
的低三位總為0,E/S 寄存器的低三位(結束偏移量)總是1。這意味着暫存器中的所有資料随後都要複制到主存儲
器或密鑰存儲器中。E/S寄存器的第5位稱為PF 或位元組不全标志,該位如果為邏輯1,則意味着主機發送的資料位數
不是8的整數倍,或者暫存器中的資料由于掉電的關系而成為無效資料。有效的寫暫存器操作将清除PF 位。第3、
4、6位沒有功能;讀出時總為1。利用PF标志,主機可以在寫指令之後檢驗資料的完整性。E/S寄存器的最高位稱為
AA 或授權許可标記,用以訓示暫存器中的資料已複制到目标存儲器位址。向暫存器中寫入資料将清除該标志。