13.07.2015 Views

MC8121 - abov.co.kr

MC8121 - abov.co.kr

MC8121 - abov.co.kr

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>MC8121</strong>S Slave Address 0 A Word Address A Write Data 1 A Write Data 2 A P52 H REG_ADDRMaster to SlaveSlave to MasterA ACK, NA NACK, S START, P STOPFigure 3-2 I2C write exampleWhen reading IIC Multi bytesS Slave Address 0 A Word Address A S Slave Address 1 A Read Data 1 A Read Data 2 NA P52 H REG_ADDR53 HMaster to SlaveSlave to MasterA ACK, NA NACK, S START, P STOP- Multi bytes reading:+Figure 3-3 I2C read exampleSTART(M)+SlaveAddress_W(0x52,M)+ACK(S)+REG_ADDR(0xxx,M)+ACK(S)+STARTSlaveAddress_R(0x53,M)+ACK(S)+READ_BYTE0(S)+ACK(M)…+NACK+STOP(M)For example) When ADDR pin is low, you want to read values of ADATA0Land ADATA0H (address 0E H ~0F H ) register. You should followthe below sequence.START+0x52+ACK+0x0E+ACK+START+0x53+ACK+??+ACK+…??+NACK+STOP- After sending IIC Read/Write Command, delay time needs about 2msec for proto<strong>co</strong>ltransferring and <strong>MC8121</strong> writing time)28 May 2013 REV1.61

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

Saved successfully!

Ooh no, something went wrong!