13.07.2015 Views

24AA32A/24LC32A - Parallax Inc

24AA32A/24LC32A - Parallax Inc

24AA32A/24LC32A - Parallax Inc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>24AA32A</strong>/<strong>24LC32A</strong>6.0 READ OPERATIONRead operations are initiated in the same way as writeoperations, with the exception that the R/W bit of thecontrol byte is set to ‘1’. There are three basic types ofread operations: current address read, random readand sequential read.6.1 Current Address ReadThe 24XX32A contains an address counter that maintainsthe address of the last word accessed, internallyincremented by ‘1’. Therefore, if the previous readaccess was to address ‘n’ (n is any legal address), thenext current address read operation would access datafrom address n + 1.Upon receipt of the control byte with R/W bit set to ‘1’,the 24XX32A issues an acknowledge and transmits the8-bit data word. The master will not acknowledge thetransfer, but does generate a Stop condition and the24XX32A discontinues transmission (Figure 6-1).6.3 Sequential ReadSequential reads are initiated in the same way as arandom read, except that once the 24XX32A transmitsthe first data byte, the master issues an acknowledgeas opposed to the Stop condition used in a randomread. This acknowledge directs the 24XX32A totransmit the next sequentially addressed 8-bit word(Figure 6-3). Following the final byte transmitted to themaster, the master will NOT generate an acknowledge,but will generate a Stop condition. To provide sequentialreads, the 24XX32A contains an internal AddressPointer which is incremented by ‘1’ upon completion ofeach operation. This Address Pointer allows the entirememory contents to be serially read during oneoperation. The internal Address Pointer will automaticallyroll over from address FFF to address 000 if themaster acknowledges the byte received from the arrayaddress FFF.6.2 Random ReadRandom read operations allow the master to accessany memory location in a random manner. To performthis type of read operation, the word address mustfirst be set. This is accomplished by sending the wordaddress to the 24XX32A as part of a write operation(R/W bit set to ‘0’). Once the word address is sent, themaster generates a Start condition following theacknowledge. This terminates the write operation, butnot before the internal Address Pointer is set. Themaster issues the control byte again, but with the R/Wbit set to a ‘1’. The 24XX32A will then issue anacknowledge and transmit the 8-bit data word. Themaster will not acknowledge the transfer, but doesgenerate a Stop condition which causes the 24XX32Ato discontinue transmission (Figure 6-2). After arandom Read command, the internal address counterwill point to the address location following the one thatwas just read.FIGURE 6-1:CURRENT ADDRESS READBus ActivityMasterSTARTControlByteData (n)STOPSDA LineSPBus ActivityACKNOACKDS21713F-page 10© 2005 Microchip Technology <strong>Inc</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!