13.07.2015 Views

MC8121 - abov.co.kr

MC8121 - abov.co.kr

MC8121 - abov.co.kr

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>MC8121</strong>SDASTARTSLAVE ADDRESS W A REGISTER ADDRESS A WRITE BYTE 0 A WRITE BYTE N A STOPSDA INSDA OUTSCL1 9 1 9 1 9 19Figure 2-5 I2C Write Proto<strong>co</strong>l2.1.6.2 READ PROTOCOL (MASTER RECEIVER)The master transmits a start <strong>co</strong>ndition(S), slave address and Write bit. If the high 7-bits of addresspacket equal to the device’s slave address, the <strong>MC8121</strong> acknowledges by pulling down the SDA lineat the 9 th SCL clock period. After address packet and acknowledge bit, the master transmits a datawhich is used for base address accessing internal memory or register of the device. To initiate readoperations, the master sends repeated start <strong>co</strong>ndition and slave address with Read bit. After thisaddress packet, the master reads data bytes until it does not acknowledges. Note that to send a stop<strong>co</strong>ndition after receiving last data byte, the master must generate a NACK(not acknowledging) on thelast data byte received. Like Write Proto<strong>co</strong>l, the read address increases by 1 after every read byte.Note that the transfer direction changes in this proto<strong>co</strong>l.SDASSLAVE ADDRESS W A REGISTER ADDRESS A SrSLAVE ADDRESS R A READ BYTE 0 A BYTE 1SDA INSDA OUTSCL1 9 1 9 1 9 1 9 1Figure 2-6 I2C Read Proto<strong>co</strong>l2.2 REGISTERS2.2.1 OVERVIEWThe <strong>MC8121</strong> is <strong>co</strong>ntrolled and monitored by 17 registers. These registers provide a variety of <strong>co</strong>ntrolfunctions and can be read to determine results of the ADC <strong>co</strong>nversions.16 May 2013 REV1.61

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

Saved successfully!

Ooh no, something went wrong!