DS28DG02: 2Kb SPI EEPROM with PIO, RTC, Reset, Battery Monitor, and Watchdog
31 of 34
Command-Specific Communication—Color Codes
Master-to-Slave Slave-to-Master Programming
Communication Examples
Set the WEN Bit in the SPI Status Register (Write Enable)
SEL WREN DSEL
Clear the WEN Bit in the SPI Status Register (Write Disable)
SEL WRDI DSEL
Write to the SPI Status Register Sequence
SEL WREN DSEL SEL WRSR <byte> DSEL Programming
Note: It is advisable to execute a WRDI command right after the WRSR sequence is completed to ensure read
access to the user memory.
Read Status Register (e.g., to Detect the End of a Write Cycle)
SEL RDSR <byte> <byte> <byte> DSEL
Refresh PIOs with Power-On Defaults
SEL RFSH DSEL
Write 3 Bytes to User Memory Sequence, Starting Address = 067h
SEL WREN DSEL SEL WRITEL <67h> <byte> <byte> <byte> DSEL Programming
See Read Status register example to test for the end of the write cycle.
Set RTC and Calendar, Starting Address = 129h
SEL WREN DSEL SEL WRITEH <29h> <7 bytes RTC data> DSEL
SRAM, no programming time.
Read User Memory Block 1, Starting Address = 040h, 64 Bytes
SEL READL <40h> <64 bytes memory data> DSEL
Read all PIOs 3 Times, Starting Address = 126, 6 Bytes
SEL READH <26h> <6 bytes PIO data> DSEL
Continue reading until RDYZ bit is is 0
DS28DG02: 2Kb SPI EEPROM with PIO, RTC, Reset, Battery Monitor, and Watchdog
32 of 34
Figure 24. Crystal Placement on PCB
Local ground
plane beneath
signal plane or on
other side of pcb
Guard ring on
signal plane
Crystal
Pad
Crystal
Pad
VIA to ground plane
X1
X2
RSTZ
NC
X2
X1
NC
Crystal Pads
Local ground plane
beneath signal plane
or on other side of pcb
VIA to ground plane
Guard ring on
signal plane
TSSOP TQFN
Typical Operating Circuit
R
P
R
P
V
CC
MOSI
MISO
SC
K
µC
PX.1
PX.0
INT
RST
GND
V
CC
SI
PIO0-7
SO
PIO8
SCK
CSZ
PIO9-11
DS28DG02
WPZ
WDI
WDOZ X1
A
LMZ
X2
RSTZ
V
BAT
GND
V
CC
32KHz
3V
R1
Manual
Reset
R2
12.5pF load,
ESR 45k
R1, R2 4.7k
LED
Piezo
Beeper
Push
Buttons
R
L
DS28DG02: 2Kb SPI EEPROM with PIO, RTC, Reset, Battery Monitor, and Watchdog
33 of 34
Pin Configurations
28
27
26
25
24
23
22
21
20
19
18
17
16
15
V
BAT
CSZ
SCK
SI
SO
A
LMZ
PIO1
PIO5
PIO9
GND
PIO11
PIO7
PIO3
V
CC
X1
X2
RSTZ
WDI
WDOZ
WPZ
PIO0
PIO4
PIO8
GND
PIO10
PIO6
PIO2
V
CC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
36
RSTZ
35
34
33
32
31 30 29 28
N.C.
X2
X1
N.C.
V
BAT
CSZ
N.C.
SCK
27
26
25
24
23
22
21
20
19
N.C.
SI
SO
ALMZ
PIO1
PIO5
PIO9
N.C.
GND
10
11
12
13
14
15 16 17 18
PIO10
PIO6
PIO2
V
CC
N.C.
V
CC
PIO3
PIO7
PIO11
1
2
3
4
5
6
7
8
9
N.C.
WDI
WDOZ
WPZ
PIO0
PIO4
PIO8
N.C.
GND
4.4mm 28-Lead TSSOP (Top View) Thin 36-Lead 6mm × 6mm QFN (Top View)
PACKAGE INFORMATION
For the latest package outline information and land patterns, go to www.maxim-ic.com/packages. Note that a "+",
"#", or "-" in the package code indicates RoHS status only. Package drawings may show a different suffix
character, but the drawing pertains to the package regardless of RoHS status.
PACKAGE TYPE PACKAGE CODE DOCUMENT NO.
28 TSSOP 21-0108
36 TQFN 21-0141
28DG0
2
DS28DG0
2

DS28DG02E-3C+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
EEPROM 2Kb SPI EEPROM w/PIO RTC/Rst/Bat Mtr/Wtdg
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet