DS28DG02: 2Kb SPI EEPROM with PIO, RTC, Reset, Battery Monitor, and Watchdog
Principles of Operation
The first byte that the DS28DG02 receives from the master after a falling edge on CSZ is interpreted as an instruc-
tion. The DS28DG02 supports a set of seven instructions, which are summarized in Figure 11. The protocol uses
only a single address byte. The 9th address bit necessary to access addresses of 100h and higher is included in
the instruction code, marked as "X".
Figure 11. SPI Instruction Set
INSTRUCTION NAME
WREN
Write Enable
WRDI
Write Disable
WRSR
Write Status Register
RDSR
Read Status Register
INSTRUCTION
CODE
0000 0110b
0000 0100b
0000 0001b
0000 0101b
PROTOCOL
Tx Instruction Code
Tx Instruction Code
Tx Instruction Code
Tx SPI Status Byte
Tx Instruction Code
Rx SPI Status Byte
PURPOSE
To set the WEN bit in the SPI Status
register. (Enable Writes to Memory)
To clear the WEN bit in the SPI Status
register. (Disable Writes to Memory)
To update the SPI Status register.
To read SPI Status register; to detect the
end of an EEPROM write cycle.
To update the SRAM registers at
RFSH
Refresh Registers
0000 0111b
Tx Instruction Code
addresses 120h to 125h with their
power-on default values without power-
cycling.
WRITE
Write to Memory
READ
Read Memory
0000 X010b
0000 X011b
Tx Instruction Code
Tx Address Byte
Tx Data Byte(s)
Tx Instruction Code
Tx Address Byte
Rx Data Byte(s)
To write to the memory, register, PIOs,
or the RTC , depending on the specified
address.
To read from the memory, register, PIOs,
or the RTC , depending on the specified
address.
The first four instructions relate to the SPI Status register, which contains control bits and a status bit. The SPI
Status register is not memory-mapped and can only be updated through SPI instructions. It holds several bits that
control an elaborate scheme to prevent inadvertent changes of data stored in the device:
?
?
?
A write-enable bit WEN that needs to be set through a write-enable instruction WREN before a write instruction
is accepted. The WEN bit is automatically cleared after successful execution of a write instruction.
Hardware write-protection of b7:b2 (nonvolatile bits) of the SPI Status register through the write-protect enable
bit WPEN in conjunction with the logic state at the WPZ pin.
Write-Protect bits for memory blocks and the registers from address 120h and higher.
The combined effect of WEN, WPEN, and WPZ is summarized in Table 2. The full description of the SPI Status
register bit functions is found in Figure 12.
Table 2. Write Protection Summary
WEN
BIT
0
1
1
1
WPEN
BIT
x
0
1
1
WPZ
PIN
x
x
0
1
SPI STATUS REGISTER
Write-protected (because WEN = 0).
Writeable (because WPEN = 0).
Write-protected (because WPEN = 1
AND the WPZ pin is at logic 0).
Writable (because WPEN = 1 AND the
WPZ pin is at logic 1).
MEMORY
Write-protected (because WEN = 0).
Conditional write access:
BP1:BP0 control protection of
addresses 00h to FFh.
RPROT controls protection of
addresses 120h and higher.
19 of 34
相关PDF资料
DS28E04S-100+T IC EEPROM 4KBIT 16SOIC
DS28EC20+T IC EEPROM 20KBIT TO92-3
DS301X KWIK-CHG DESIGNATION STRIP SGL
DS3030W-100# IC NVSRAM 256KBIT 100NS 256BGA
DS3045W-100# IC NVSRAM 1MBIT 100NS 256BGA
DS3050W-100# IC NVSRAM 4MBIT 100NS 256BGA
DS3065W-100# IC NVSRAM 8MBIT 100NS 256BGA
DS3065WP-100IND+ IC SRAM 3.3V 8MB 34POWERCAP MOD
相关代理商/技术参数
DS28DG02EVKIT 功能描述:存储器 IC 开发工具 RoHS:否 制造商:STMicroelectronics 产品:Reference Boards 工具用于评估:M24LR64-R 存储容量:64 kbit 存储类型:EEPROM 工作电源电压:1.8 V to 5.5 V
DS28DG02G-3C+ 功能描述:电可擦除可编程只读存储器 2Kb SPI 电可擦除可编程只读存储器 w/PIO RTC/Rst/Bat Mtr/Wtdg RoHS:否 制造商:Atmel 存储容量:2 Kbit 组织:256 B x 8 数据保留:100 yr 最大时钟频率:1000 KHz 最大工作电流:6 uA 工作电源电压:1.7 V to 5.5 V 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:SOIC-8
DS28DG02G-3C+T 功能描述:电可擦除可编程只读存储器 2Kb SPI 电可擦除可编程只读存储器 w/PIO RTC/Rst/Bat Mtr/Wtdg RoHS:否 制造商:Atmel 存储容量:2 Kbit 组织:256 B x 8 数据保留:100 yr 最大时钟频率:1000 KHz 最大工作电流:6 uA 工作电源电压:1.7 V to 5.5 V 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:SOIC-8
DS28E01-100 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:带SHA-1引擎保护的1K位1-Wire EEPROM
DS28E01-100_12 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:1Kb Protected 1-Wire EEPROM with SHA-1 Engine
DS28E01-100+ 功能描述:电可擦除可编程只读存储器 RoHS:否 制造商:Atmel 存储容量:2 Kbit 组织:256 B x 8 数据保留:100 yr 最大时钟频率:1000 KHz 最大工作电流:6 uA 工作电源电压:1.7 V to 5.5 V 最大工作温度:+ 85 C 安装风格:SMD/SMT 封装 / 箱体:SOIC-8
DS28E01G-100+R 制造商:DALLAS 制造商全称:Dallas Semiconductor 功能描述:1K-Bit Protected 1-Wire EEPROM with SHA-1 Engine
DS28E01G-100+T 制造商:DALLAS 制造商全称:Dallas Semiconductor 功能描述:1K-Bit Protected 1-Wire EEPROM with SHA-1 Engine