| Electronic Components Datasheet Search |
|
STPD01 Datasheet(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STPD01 Datasheet(HTML) 23 Page - STMicroelectronics |
|
23 / 43 page ![]() The master then generates further SCL cycles to either transmit data to the slave or receive data from the slave. At the end of the data transfer, the master generates the stop command and the bus is released and all devices wait for a new start command. 7.12.1 Read and write commands The format of I2C commands is described below. All figures use common format and symbols. Every data word consists of eight bits with most significant bit first and least significant bit last. Write command to the transceiver device is described by the following figure. It is possible to write to several consecutive registers during one write command. Figure 39. Write command Slave Address S R/W A A A P Register Address Data 7 bits 1 1 1 1 1 1 8 bits 8 bits “0” Write From Master to Slave From Slave to Master A = acknowledge (SDA LOW) S = START condition P = STOP condition Read command consists of dummy write to set the proper address of a register followed by a real read sequence. Figure 40. Read command Slave Address S R/W A A Register Address Slave Address 7 bits 1 1 1 1 1 8 bits 1 “0” Write From Master to Slave From Slave to Master A = acknowledge (SDA LOW) S = START condition P = STOP condition Sr = Repeated Start 1 1 R/W A A P Register Address Sr 7 bits 8 bits “1” Write 1 The master sends a “Repeated Start” after sending the register address and before resending the slave address. The “Repeated Start” is defined as SDA transition from 1 to 0 with SCL high. 7.12.2 I2C address selection The I2C address can be selected using the ADD pin to allow multiple devices to be connected on the same bus. The address is composed as below: Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 0 0 0 0 1 ADD1 ADD0 R/W STPD01 Bus timing DS13473 - Rev 1 page 23/43 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |