| 数据搜索系统,热门电子元器件搜索 |
|
AD5251EVAL 数据表(PDF) 15 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD5251EVAL 数据表(HTML) 15 Page - Analog Devices |
|
15 / 28 page ![]() AD5251/AD5252 Rev.0 | Page 15 of 28 I2C COMPATIBLE 2-WIRE SERIAL BUS SDA FRAME 1 SLAVE ADDRESS BYTE FRAME 2 INSTRUCTION BYTE SCL ACK. BY AD525x ACK. BY AD525x ACK. BY AD525x FRAME 1 DATA BYTE STOP BY MASTER START BY MASTER 0 1 1 0 11 AD1 AD0 R/W X X X X X X X X D7 D6 D5 D4 D3 D2 D1 D0 9 1 9 1 9 Figure 13. General I2C Write Pattern SDA FRAME 1 SLAVE ADDRESS BYTE FRAME 2 RDAC REGISTER SCL ACK. BY AD525x NO ACK. BY MASTER STOP BY MASTER START BY MASTER 0 1 1 0 11 AD1 AD0 D7 D6 D5 D4 D3 D2 D1 D0 91 9 R/W Figure 14. General I2C Read Pattern The first byte of the AD5251/AD5252 is a slave address byte (see Figure 12 and Figure 13). It has a 7-bit slave address and an R/W bit. The 5 MSBs of the slave address are 01011, and the following 2 LSBs are determined by the states of the AD1 and AD0 pins. AD1 and AD0 allow the user to place up to four parts on one bus. AD5251/AD5252 can be controlled via an I2C compatible serial bus, and are connected to this bus as slave devices. The 2-wire I2C serial bus protocol (see Figure 13 and Figure 14) follows: 1. The master initiates a data transfer by establishing a start condition, such that SDA goes from high to low while SCL is high (see Figure 13). The following byte is the slave address byte, which consists of the 5 MSBs of a slave address defined as 01011. The next two bits are AD1 and AD0, I2C device address bits. Depending on the states of their AD1 and AD0 bits, four parts can be addressed on the same bus. The last LSB, the R/W bit, determines whether data is read from or written to the slave device. The slave whose address corresponds to the transmitted address responds by pulling the SDA line low during the ninth clock pulse (this is called an acknowledge bit). At this stage, all other devices on the bus remain idle while the selected device waits for data to be written to or read from its serial register. 2. In the write mode (except when restoring EEMEM to the RDAC register), there is an instruction byte that follows the slave address byte. The MSB of the instruction byte is labeled CMD/REG. MSB = 1 enables CMD, the command instruction byte; MSB = 0 enables general register writing. The third MSB in the instruction byte, labeled EE/RDAC, is true only when MSB = 0 or is in general writing mode. EE enables the EEMEM register and REG enables the RDAC register. The 5 LSBs, A4 to A0, designate the addresses of the EEMEM and RDAC registers, (see Figure 7 and Figure 8). When MSB = 1 or when in CMD mode, the four bits following MSB are C3 to C1, which correspond to 12 predefined EEMEM controls and quick commands; there also are four factory reserved commands. The 3 LSBs—A2, A1, and A0—are four addresses, but only 001 and 011 are used for RDAC1 and RDAC3, respectively (see Figure 10). After acknowledging the instruction byte, the last byte in the write mode is the data byte. Data is transmitted over the serial bus in sequences of nine clock pulses (eight data bits followed by an acknowledge bit). The transitions on the SDA line must occur during the low period of SCL and remain stable during the high period of SCL (see Figure 13). 3. In current read mode, the RDAC0 data byte immediately follows the acknowledgment of the slave address byte. After an acknowledgement, RDAC1 follows, then RDAC2, and so on (there is a slight difference in write mode, where the last eight data bits representing RDAC3 data are followed by a no acknowledge bit). Similarly, the transitions on the SDA line must occur during the low period of SCL and remain stable during the high period of SCL (see Figure 14). Another reading method, random read method, is shown in Figure 10. 4. When all data bits have been read or written, a stop condition is established by the master. A stop condition is defined as a low-to-high transition on the SDA line while SCL is high. In write mode, the master pulls the SDA line high during the 10th clock pulse to establish a stop condition (see Figure 13). In read mode, the master issues a no acknowledge for the ninth clock pulse, i.e., the SDA line remains high. The master then brings the SDA line low before the 10th clock pulse, which goes high to establish a stop condition (see Figure 14). |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |