Ht24lc16 – Rainbow Electronics HT24LC16 User Manual

Page 5

Advertising
background image

HT24LC16

Rev. 1.20

5

November 4, 2002

·

Write protect
The HT24LC16 can be used as a serial ROM when
the WP pin is connected to VCC . Programming will be
i n h i b i t e d a n d t h e e n t i r e m e m o r y w i l l b e
write-protected.

·

Read operations
Read operations are initiated in the same way as write
operations with the exception that the read/write se-
lect bit in the device address word is set to one. There
are three read operations: current address read, ran-
dom address read and sequential read.

·

Current address read
The internal data word address counter maintains the
last address accessed during the last read or write op-
eration, incremented by one. This address stays valid
between operations as long as the chip power is main-
tained. The address roll over during read from the last
byte of the last memory page to the first byte of the first
page. The address roll over during write from the last
byte of the current page to the first byte of the same
page. Once the device address with the read/write se-
lect bit set to one is clocked in and acknowledged by
the EEPROM, the current address data word is seri-
ally clocked out. The microcontroller does not respond
with an input zero but does generate a following stop
condition (refer to Current read timing).

·

Random read
A random read requires a dummy byte write sequence
to load in the data word address which is then clocked
in and acknowledged by the EEPROM. The
microcontroller must then generate another start con-
dition. The microcontroller now initiates a current ad-
dress read by sending a device address with the
read/write select bit high. The EEPROM acknowl-
edges the device address and serially clocks out the
data word. The microcontroller does not respond with
a zero but does generate a following stop condition
(refer to Random read timing).

·

Sequential read
Sequential reads are initiated by either a current ad-
dress read or a random address read. After the
microcontroller receives a data word, it responds with
an acknowledgment. As long as the EEPROM re-
ceives an acknowledgment, it will continue to incre-
ment the data word address and serially clock out
sequential data words. When the memory address
limit is reached, the data word address will roll over
and the sequential read continues. The sequential
read operation is terminated when the microcontroller
does not respond with a zero but does generate a fol-
lowing stop condition.

P

D e v i c e a d d r e s s

W o r d a d d r e s s

A C K

S t o p

S t a r t

S D A

A C K

N o A C K

S

A C K

D A T A

S

A 2 A 1 A 0

D e v i c e a d d r e s s

S t a r t

Random read timing

A 2 A 1 A 0

S

P

D e v i c e a d d r e s s

D A T A

A C K

S t o p

S t a r t

S D A

N o A C K

Current read timing

P

D e v i c e a d d r e s s

D A T A n

S t o p

S t a r t

S D A

A C K

A C K

S

A C K

D A T A n + 1

D A T A n + x

Sequential read timing

Advertising