Datasheet
DS28E05 1-Wire EEPROM
www.maximintegrated.com
Maxim Integrated
│
9
Write Memory [55h]
The Write Memory command is used to program one or more contiguous 2-byte segments of a memory page. This com-
mand is applicable only to memory locations that are not write protected. The parameter byte specifies the page and
segmentnumberwherethewritingbegins.ThenewsegmentdataistransmittedinthesequenceB0,B1.Table 2 shows
the how these bytes map to the addressed memory page. The command flow allows writing one or multiple adjacent
segmentswithinapage.Tosafeguardagainsttransmissionerrors,theDS28E05supportsread-after-writeverification.
Incaseofdataerror,themasterabortsthecommandbyissuinga1-Wirereset.TostartthetransfertoEEPROMthe
mastermusttransmitareleasebyte(FFh).Aftertheprogrammingtimeisover,theDS28E05transmitsaCSbyte.Ifa
pageisinEPROMemulationmode,thenewsegmentdataisthebitwiseANDofthesegmentdatainmemoryandthe
new data provided with the command.
Bits 6:4: Memory Page Selection (PAGE #).
Thesebitsspecifythememorypagethatistobewrittento.Validmemory
page numbers are 000b (page 0) to 111b (page 7).
Bits 3:1: Starting Segment Selection (SEG #). These bits specify the location within the selected memory page where
thewritingbegins.Forpages0to6validsegmentnumbersare000b(startofmemorypage)to111b(lastsegmentof
memorypage).Validsegmentnumbersforpage7are000b,001b,and010b.
Table 3. Parameter Byte Bitmap
Note: The bits marked as 0 must be transmitted as 0 for the parameter byte to be valid.
Write Memory
CommandCode 55h
ParameterByte Targetpageselection,startingsegmentnumber(Table3).
Restrictions The memory page must not be write protected.
ProtocolVariations
Writing within a page.
Writing through the end of the page.
Error conditions
Invalid parameter byte.
The memory page is write protected.
CSByte
AAh=success.
33h=Thecommandfailedbecausethepageiswriteprotected.
BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
0
PAGE# SEG# 0










