13.07.2015 Views

24AA32A/24LC32A - Parallax Inc

24AA32A/24LC32A - Parallax Inc

24AA32A/24LC32A - Parallax Inc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>24AA32A</strong>/<strong>24LC32A</strong>3.6 Device AddressingFIGURE 3-2:CONTROL BYTE FORMATA control byte is the first byte received following theStart condition from the master device (Figure 3-2).The control byte consists of a four-bit control code. Forthe 24XX32A, this is set as ‘1010’ binary for read andwrite operations. The next three bits of the control byteare the Chip Select bits (A2, A1, A0). The Chip Selectbits allow the use of up to eight 24XX32A devices onthe same bus and are used to select which device isaccessed. The Chip Select bits in the control byte mustcorrespond to the logic levels on the corresponding A2,A1 and A0 pins for the device to respond. These bitsare in effect the three Most Significant bits of the wordaddress.The last bit of the control byte defines the operation tobe performed. When set to a ‘1’, a read operation isselected. When set to a zero, a write operation isselected. The next two bytes received define theaddress of the first data byte (Figure 3-3). Becauseonly A11 to A0 are used, the upper four address bits are“don’t care” bits. The upper address bits are transferredfirst, followed by the Less Significant bits.Following the Start condition, the 24XX32A monitorsthe SDA bus checking the device type identifier beingtransmitted and, upon receiving a ‘1010’ code andappropriate device select bits, the slave device outputsan Acknowledge signal on the SDA line. Depending onthe state of the R/W bit, the 24XX32A will select a reador write operation.SStart BitControl Code1 0 1 0 A2 A1 A0Slave AddressRead/Write BitChip SelectBitsR/WAcknowledge Bit3.7 Contiguous Addressing AcrossMultiple DevicesACKThe Chip Select bits A2, A1 and A0 can be used toexpand the contiguous address space for up to 256Kbits by adding up to eight 24XX32A devices on thesame bus. In this case, software can use A0 of the controlbyte as address bit A12; A1 as address bit A13; andA2 as address bit A14. It is not possible to sequentiallyread across device boundaries.FIGURE 3-3:ADDRESS SEQUENCE BIT ASSIGNMENTSControl Byte Address High Byte Address Low Byte1 0 1 0A2A1A0 R/W x x x xA11A10 A 9A A A8 7• • • • • • 0ControlCodeChipSelectBitsx = “don’t care” bitDS21713F-page 6© 2005 Microchip Technology <strong>Inc</strong>.

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

Saved successfully!

Ooh no, something went wrong!