01.11.2012 Views

Specification of RTRM08 Transceiver Module Easywave I2C - ELDAT

Specification of RTRM08 Transceiver Module Easywave I2C - ELDAT

Specification of RTRM08 Transceiver Module Easywave I2C - ELDAT

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>Specification</strong><br />

Index 1.01<br />

Project No.<br />

RF-Products, Controller <strong>RTRM08</strong> <strong>Transceiver</strong> <strong>Module</strong> Easw I 2 C Page 9<br />

Development<br />

Production S. Schreiber 2007-08-24<br />

addressing a slave write transfer<br />

7-bit 0 0 8-bit 0 8-bit 0/1<br />

free S address RW A+ data byte A+ data byte A<br />

addressing a slave read transfer<br />

7-bit 1 0 8-bit 0 8-bit 1<br />

Sr address RW A+ data byte A+ data byte A- P free<br />

from master to slave<br />

from slave to master<br />

Figure 5 Combined write and read transfer using a 7-bit address<br />

S start condition<br />

Sr repeated start condition<br />

RW R/W direction bit<br />

A+ acknowledge-bit (SDA line is low)<br />

A- acknowledge-bit (SDA line is high)<br />

A acknowledge-bit (SDA line is low or high)<br />

P stop condition<br />

Often a master wants to perform a read transfer immediately after a write transfer (Figure 5). The master can<br />

use a repeated start condition Sr in place <strong>of</strong> a separated stop condition P and a start condition S after the<br />

write transfer and before the read transfer.<br />

Some 7-bit addresses are reserved and are not allowed to be used as slave-address. The 7-bit addresses<br />

11110xx (binary) are not allowed to be used as 7-bit slave address, because they initiate 10-bit addressing,<br />

see below. (Please refer to Philips' I 2 C specification for further information about reserved addresses.)<br />

10-bit addressing<br />

If a master wants to transfer any data to (write) or from (read) a slave that has a 10-bit address, the master<br />

generates a start condition S (or a repeated start condition Sr) to acquire the free bus first (Figure 6). At next<br />

the master transmits the bit pattern 11110 and the two most significant bits <strong>of</strong> the 10-bit address (most<br />

significant bit at first), which are followed by one R/W-bit. The R/W-bit must be always 0 (means write<br />

transfer) for compatibility with 7-bit addressing, even though there is a read transfer desired. The mentioned<br />

bit pattern, 2 bits <strong>of</strong> the address, and the R/W-bit are 8 data bits (one byte), which the master transmits.<br />

Each slave has to recognize the start condition S and has to receive the subsequent byte. A slave will check<br />

the bit pattern 11110, compare the received 2-bit part <strong>of</strong> the address with its own unique address, and check<br />

the R/W-bit. If the two address bits match and R/W is 0, a slave continues receiving the addressing <strong>of</strong> the<br />

master. Other slaves, which are not addressed, will continue waiting for another start condition S (or a<br />

repeated start condition Sr) including all slaves which have a 7-bit address. Since the 7-bit address 11110xx<br />

is reserved, not any 7-bit slave has a matching address.<br />

With the nineth bit transfer an acknowledge bit A is transferred from a slave to the master (in the opposite<br />

direction to the transfer <strong>of</strong> the preceding byte). Any addressed slave has to transfer a low acknowledge-bit A+<br />

(means acknowledge). If the master receives a low acknowledge-bit A+, communication will proceed; when<br />

the acknowledge-bit is high (A-), the master has to generate a stop condition P, and the I 2 C-bus enters its<br />

free state.<br />

7007

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

Saved successfully!

Ooh no, something went wrong!