09.08.2013 Views

MCP23008/MCP23S08 - Microchip

MCP23008/MCP23S08 - Microchip

MCP23008/MCP23S08 - Microchip

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>MCP23008</strong>/<strong>MCP23S08</strong><br />

1.4.1 ADDRESSING I 2 C DEVICES<br />

(<strong>MCP23008</strong>)<br />

The <strong>MCP23008</strong> is a slave I 2 C device that supports 7-bit<br />

slave addressing, with the read/write bit filling out the<br />

control byte. The slave address contains four fixed bits<br />

and three user-defined hardware address bits (pins A2,<br />

A1 and A0). Figure 1-2 shows the control byte format.<br />

1.4.2 ADDRESSING SPI DEVICES<br />

(<strong>MCP23S08</strong>)<br />

The <strong>MCP23S08</strong> is a slave SPI device. The slave<br />

address contains five fixed bits and two user-defined<br />

hardware address bits (pins A1 and A0), with the read/<br />

write bit filling out the control byte. Figure 1-3 shows<br />

the control byte format.<br />

FIGURE 1-4: I 2 C ADDRESSING REGISTERS<br />

FIGURE 1-5: SPI ADDRESSING REGISTERS<br />

CS<br />

FIGURE 1-2: I 2 C CONTROL BYTE<br />

FORMAT<br />

S 0 1 0 0 A2 A1 A0 R/W ACK<br />

FIGURE 1-3: SPI CONTROL BYTE<br />

FORMAT<br />

DS21919E-page 8 © 2007 <strong>Microchip</strong> Technology Inc.<br />

Start<br />

bit<br />

CS<br />

Control Byte<br />

Slave Address<br />

R/W = 0 = write<br />

R/W = 1 = read<br />

Control Byte<br />

R/W bit<br />

ACK bit<br />

0 1 0 0 0 A1 A0 R/W<br />

Slave Address<br />

R/W = 0 = write<br />

R/W = 1 = read<br />

R/W bit<br />

S 0 1 0 0 A2 A1 A0 0 ACK A7 A6 A5 A4 A3 A2 A1 A0 ACK<br />

R/W = 0<br />

Device Opcode Register Address<br />

The ACKs are provided by the <strong>MCP23008</strong>.<br />

0 1 0 0 0 A1 A0 R/W A7 A6 A5 A4 A3 A2 A1 A0<br />

Device Opcode Register Address

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

Saved successfully!

Ooh no, something went wrong!