Isd5100 – series – Rainbow Electronics ISD5100 User Manual

Page 36

Advertising
background image

ISD5100 – SERIES

- 36 -

7.5. D

IGITAL

M

ODE

7.5.1. Erasing Digital Data

The Digital Erase command can only erase an entire page at a time. This means that the D1
command only needs to include the 11-bit page address; the 5-bit for block address are left at 00000.

Once a page has been erased, each block may be written separately, 64 bits at a time. But, if a block
has been previously written then the entire page of 2048 bits must be erased in order to re-write (or
change) a block.

A sequence might be look like:

- read the entire page
- store it in RAM
- change the desired bit(s)
- erase the page
- write the new data from RAM to the entire page

7.5.2. Writing Digital Data

The Digital Write function allows the user to select a portion of the array to be used as digital memory.
The partition between analog and digital memory is left up to the user. A page can only be either
Digital or Analog, but not both. The minimum addressable block of memory in the digital mode is one
block or 64 bits, when reading or writing. The address sent to the device is the 11-bit row (or page)
address with the 5-bit scan (or block) address. However, one must send a Digital Erase before
attempting to change digital data on a page. This means that even when changing only one of the 32
blocks, all 32 blocks will need to be rewritten to the page. Command Sequence: The chip enters
digital mode by sending the ENTER DIGITAL MODE command from power down. Send the
DIGITAL WRITE @ ADDR command with the row address. After the address is entered, the data is
sent in one-byte packets followed by an I

2

C acknowledge generated by the chip. Data for each block

is sent MSB first. The data transfer is ended when the master generates an I

2

C STOP condition. If

only a partial block of data is sent before the STOP condition, “zero” is written in the remaining bytes;
that is, they are left at the erase level. An erased page (row) will be read as all zeros. The device can
buffer up to two blocks of data. If the device is unable to accept more data due to the internal write
process, the SCL line will be held LOW indicating to the master to halt data transfer. If the device
encounters an overflow condition, it will respond by generating an interrupt condition and an I

2

C Not

Acknowledge signal after the last valid byte of data. Once data transfer is terminated, the device
needs up to two cycles (64 us) to complete its internal write cycle before another command is sent. If
an active command is sent before the internal cycle is finished, the part will hold SCL LOW until the
current command is finished. After writing is complete, send the EXIT DIGITAL MODE command.

Advertising