| поискавой системы для электроныых деталей |
|
XR18910 датащи(PDF) 13 Page - Exar Corporation |
|
|
|||||||||||||||||||||||||||||
XR18910 датащи(HTML) 13 Page - Exar Corporation |
|
13 / 19 page ![]() 13/19 REV1A Application Information (Continued) I2C Bus Interface The I2C-bus interface consists of two lines: serial data (SDA) and serial clock (SCL). The XR18910 works as a slave and supports both standard mode transfer rates (100 kbps) and fast mode transfer rates (400 kbps) as defined in the I2C- Bus specification. The I2C-bus interface follows all standard I2C protocols. Some information is provided below, for additional information, refer to the I2C-bus specifications. Figure 21. I2C Start and Stop Conditions The basic I2C access cycle for the XR18910 consists of: ■ ■ A start condition ■ ■ A slave address cycle ■ ■ Zero, one, or two data cycles - depending on the XR18910 register accessed ■ ■ A stop condition Start Condition The master initiates data transfer by generating a start condition. The start condition is when a high-to-low transition occurs on the SDA line while SCL is high, as shown in Figure 21. Slave Address Cycle After the start condition, the first byte sent by the master is the 7-bit address and the read/write direction bit R/W on the SDA line. If the address matches the XR18910’s internal fixed address, the XR18910 will respond with an acknowledge by pulling the SDA line low for one clock cycle while SCL is high. Data Cycle After the master detects this acknowledge, the next byte transmitted by the master is the sub-address. This 8-bit sub-address contains the address of the register to access. The XR18910 Register List is shown in Table 1. Depending on the register accessed, there will be up to two additional data bytes transmitted by the master. Refer to the “Byte of Parameter” column in the Register Table. The XR18910 will respond to each write with an acknowledge. Stop Condition To signal the end of the data transfer, the master generates a stop condition by pulling the SDA line from low to high while the SCL line is high, as shown in Figure 21. Figures 22 and 23 illustrate a write and a read cycle. For complete details, see the I2C-bus specifications. S SLAVE ADDRESS W A REGISTER ADDRESS A nDATA A P NOTES: White Block = host to XR18910, Orange Block = XR18910 to host. Figure 22. Master Writes to Slave (XR18910) S SLAVE ADDRESS W A REGISTER ADDRESS A S SLAVE ADDRESS R A nDATA A LAST DATA NA P NOTES: White Block = host to XR18910, Orange Block = XR18910 to host. Figure 23. Master Reads from Slave (XR18910) I2C Bus Addressing The XR18910 uses a 7-bit address space. For the standard XR18910, the default address is 0x67 (0110 111). There are three alternative addresses available to help insure that the XR18910 can be identified from the other devices on the I2C-bus. Table 4 shows the different addresses that are available. Table 4. XR18910 I2C Address Map I2C Address Orderable Part Number 0x67 (0110 111x) XR18910IL-67 0x66 (0110 110x) XR18910IL-66 0x65 (0110 101x) XR18910IL-65 0x64 (0110 100x) XR18910IL-64 A read or write transaction is determined by bit-0 of the slave address, (shown as an “x” in the table above). If bit-0 is ’0’, then it is a write transaction. If bit-0 is ’1’, then it is a read transaction. An I2C sub-address is sent by the I2C master following the slave address. The sub-address contains the XR18910 register address being accessed. Table 1 illustrates the available XR18910 register addresses. After the last read or write transaction, the I2C-bus master will set the SCL signal back to its idle state (HIGH). XR20M1280 7 REV. 1.0.0 I2C/SPI UART WITH 128-BYTE FIFO AND INTEGRATED LEVEL SHIFTERS 1.0 FUNCTIONAL DESCRIPTIONS 1.1 CPU Interface The XR20M1280 can operate with either an I2C-bus interface or an SPI interface. The CPU interface is selected via the I2C/SPI# input pin. 1.1.1 I2C-bus Interface The I2C-bus interface is compliant with the Standard-mode and Fast-mode I2C-bus specifications. The I2C-bus interface consists of two lines: serial data (SDA) and serial clock (SCL). In the Standard-mode, the serial clock and serial data can go up to 100 kbps and in the Fast-mode, the serial clock and serial data can go up to 400 kbps. The first byte sent by an I2C-bus master contains a start bit (SDA transition from HIGH to LOW when SCL is HIGH), 7-bit slave address and whether it is a read or write transaction. The next byte is the sub- address that contains the address of the register to access. The XR20M1280 responds to each write with an acknowledge (SDA driven LOW by XR20M1280 for one clock cycle when SCL is HIGH). If the TX FIFO is full, the XR20M1280 will respond with a negative acknowledge (SDA driven HIGH by XR20M1280 for one clock cycle when SCL is HIGH) when the CPU tries to write to the TX FIFO. The last byte sent by an I2C-bus master contains a stop bit (SDA transition from LOW to HIGH when SCL is HIGH). See Figures 3 - 5 below. For complete details, see the I2C-bus specifications. FIGURE 3. I C START AND STOP CONDITIONS SDA SCL S P START condition STOP condition FIGURE 4. MASTER WRITES TO SLAVE (XR20M1280) SW A A AP SLAVE ADDRESS REGISTER ADDRESS nDATA White block: host to UART Grey block: UART to host FIGURE 5. MASTER READS FROM SLAVE (XR20M1280) SW A AR SLAVE ADDRESS REGISTER ADDRESS White block: host to UART Grey block: UART to host A S SLAVE ADDRESS nDATA A NA P LAST DATA 2 XR 18910 |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |