| Motore di ricerca datesheet componenti elettronici |
|
ST1VAFE3BX Scheda tecnica(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST1VAFE3BX Scheda tecnica(HTML) 18 Page - STMicroelectronics |
|
18 / 102 page ![]() 4.1.1 I²C operation The transaction on the bus is started through a start (ST) signal. A start condition is defined as a high to low transition on the data line while the SCL line is held high. After this has been transmitted by the controller, the bus is considered busy. The next byte of data transmitted after the start condition contains the address of the target in the first 7 bits and the eighth bit tells whether the controller is receiving data from the target or transmitting data to the target. When an address is sent, each device in the system compares the first seven bits after a start condition with its address. If they match, the device considers itself addressed by the controller. The target address (TAD) associated to the ST1VAFE3BX is 001100xb where the x bit is modified by the TA0/SDO pin in order to modify the device address. If the TA0/SDO pin is connected to the supply voltage, the address is 0011001b, otherwise if the TA0/SDO pin is connected to ground, the address is 0011000b. This solution permits to connect and address two different accelerometers to the same I²C lines. Data transfer with acknowledge is mandatory. The transmitter must release the SDA line during the acknowledge pulse. The receiver must then pull the data line low so that it remains stable low during the high period of the acknowledge clock pulse. A receiver that has been addressed is obliged to generate an acknowledge after each byte of data received. The I²C embedded inside the ST1VAFE3BX behaves like a target device and the following protocol must be adhered to. After the start condition (ST) a target address is sent. Once a target acknowledge (TAK) has been returned, an 8-bit subaddress (SUB) is transmitted: the 7 LSb represents the actual register address while the CTRL1 (10h) (IF_ADD_INC) bit defines the address increment. The target address is completed with a read/write bit. If the bit is 1 (read), a repeated start (SR) condition must be issued after the two subaddress bytes. If the bit is 0 (write) the controller transmits to the target with direction unchanged. Table 11 explains how the TAD+read/write bit pattern is composed, listing all the possible configurations. Table 11. TAD+read/write patterns Command TAD[6:1] TAD[0] = TA0 R/W TAD+R/W Read 010000 0 1 01000001 (41h) Write 010000 0 0 01000000 (40h) Read 010000 1 1 01000011 (43h) Write 010000 1 0 01000010 (42h) Table 12. Transfer when controller is writing one byte to target Controller ST TAD + W SUB DATA SP Target TAK TAK TAK Table 13. Transfer when controller is writing multiple bytes to target Controller ST TAD + W SUB DATA DATA SP Target TAK TAK TAK TAK Table 14. Transfer when controller is receiving (reading) one byte of data from target Controller ST TAD + W SUB SR TAD + R NCAK SP Target TAK TAK TAK DATA Table 15. Transfer when controller is receiving (reading) multiple bytes of data from target Controller ST TAD+W SUB SR TAD+R CAK CAK NCAK SP Target TAK TAK TAK DATA DATA DATA ST1VAFE3BX Digital interfaces DS14646 - Rev 3 page 18/102 |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |