16 of 30 July 17, 2012
Setting the Write Protection
Reading Write Protection Status
The status of software write protection can be determined using these instructions:
Read SWP: Read Write Protection Status
Read PSWP: Read Permanently Set Write Protection Status
Read SWP
The controller issues a Read SWP command. If Software Write Protection has not been set, the device replies to the data byte with an Ack. If Soft-
ware Write Protection has been set, the device replies to the data byte with a NoAck.
Read PSWP
The controller issues a Read PSWP command. If Permanent Software Write Protection has not been set, the device replies to the data byte with
an Ack. If Permanent Software Write Protection has been set, the device replies to the data byte with a NoAck
Write Operations
Following a Start condition the bus master sends a Device Select Code with the R/W# bit reset to 0. The device acknowledges this, as shown in
the Write Mode Sequence in a Non-Write Protected Area figure, and waits for an address byte. The device responds to the address byte with an
acknowledge bit, and then waits for the data byte.
When the bus master generates a Stop condition immediately after the Ack bit (in the “10th bit” time slot), either at the end of a Byte Write or a
Page Write, the internal memory Write cycle is triggered. A Stop condition at any other time slot does not trigger the internal Write cycle.
During the internal Write cycle, Serial Data (SDA) and Serial Clock (SCL) are ignored, and the device does not respond to any requests.
17 of 30 July 17, 2012
Write Mode Sequences in a Non-Write Protected Area
Byte Write
After the Device Select Code and the address byte, the bus master sends one data byte. If the addressed location is write-protected, the device
replies to the data byte with NoAck, and the location is not modified. If, instead, the addressed location is not Write-protected, the device replies with
Ack. The bus master terminates the transfer by generating a Stop condition, as shown in the Write Mode Sequence in a Non-Write Protected Area
figure above.
Page Write
The Page Write mode allows up to 16 bytes to be written in a single Write cycle, provided that they are all located in the same page in the memory:
that is, the most significant memory address bits are the same. If more bytes are sent than will fit up to the end of the page, a condition known as
“roll-over” occurs. This should be avoided, as data starts to be over-written in an implementation dependent fashion.
The bus master sends from 1 to 16 bytes of data, each of which is acknowledged by the device. If the addressed location is write-protected, the
device replies to the data byte with NoAck, and the locations are not modified. After each byte is transferred, the internal byte address counter is incre-
mented. The transfer is terminated by the bus master generating a Stop condition.
Write Cycle Polling Using ACK
During the internal Write cycle, the device disconnects itself from the bus, and writes a copy of the data from its internal latches to the memory
cells. The maximum Write time (t
W)
is shown in the AC Characteristic for TSE2002GB2A1 table, but the typical time is shorter. To make use of this, a
polling sequence can be used by the bus master.
The polling sequence is shown in the following figure:
Initial condition: a Write cycle is in progress.
Step 1: the bus master issues a Start condition followed by a Device Select Code (the first byte of the new instruction).
Step 2: if the device is busy with the internal Write cycle, no Ack will be returned and the bus master goes back to Step 1. If the device has
terminated the internal Write cycle, it responds with an Ack, indicating that the device is ready to receive the second part of the instruction (the
first byte of this instruction having been sent during Step 1).
18 of 30 July 17, 2012
Write Cycle Polling Flowchart Using ACK
Read Operations
Read operations are performed independent of the software protection state. The device has an internal address counter which is incremented
each time a byte is read.

TSE2002GB2A1NCG

Mfr. #:
Manufacturer:
IDT
Description:
Board Mount Temperature Sensors Temp Sensor with Integrated EEPROM for Memory
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union