| 数据搜索系统,热门电子元器件搜索 |
|
MPR083 数据表(PDF) 7 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
MPR083 数据表(HTML) 7 Page - Freescale Semiconductor, Inc |
|
7 / 35 page ![]() MPR083 Sensors Freescale Semiconductor 7 Preliminary 2.3.5 The Slave Address The MPR083 has a 7-bit long slave address (Figure 9). The bit following the 7-bit slave address (bit eight) is the R/W bit, which is low for a write command and high for a read command. Figure 9. Slave Address The MPR083 monitors the bus continuously, waiting for a START condition followed by its slave address. When a MPR083 recognizes its slave address, it acknowledges and is then ready for continued communication. 2.3.6 Message Format for Writing the MPR083 A write to the MPR083 comprises the transmission of the MPR083’s keyscan slave address with the R/W bit set to 0, followed by at least one byte of information. The first byte of information is the command byte. The command byte determines which register of the MPR083 is to be written by the next byte, if received. If a STOP condition is detected after the command byte is received, then the MPR083 takes no further action (Figure 10) beyond storing the command byte. Any bytes received after the command byte are data bytes. Figure 10. Command Byte Received Any bytes received after the command byte are data bytes. The first data byte goes into the internal register of the MPR083 selected by the command byte (Figure 11). Figure 11. Command and Single Data Byte Received If multiple data bytes are transmitted before a STOP condition is detected, these bytes are generally stored in subsequent MPR083 internal registers because the command byte address generally auto-increments (Section 2.4). 2.3.7 Message Format for Reading the MPR083 The MPR083 is read using the MPR083’s internally stored command byte as address pointer, the same way the stored command byte is used as address pointer for a write. The pointer generally auto-increments after each data byte is read using the same rules as for a write (Section 6.4.1). Thus, a read is initiated by first configuring the MPR083’s command byte by performing a write (Figure 12). The master can now read ‘n’ consecutive bytes from the MPR083, with the first data byte being read from the register addressed by the initialized command byte. SDA 1 R/W ACK MSB SCL 01 01 0 0 SAA P 0 SLAVE ADDRESS COMMAND BYTE acknowledge from MPR083 R/W acknowledge from MPR083 D7 D6 D5 D4 D3 D2 D1 D0 Commandbyte is storedonreceipt ofSTOP condition SA AA P 0 SLAVE ADDRESS COMMAND BYTE DATA BYTE acknowledge from MPR083 R/W 1byte auto-increment memory word address D15 D14 D13 D12 D11 D10 D9 D8 D1 D0 D3 D2 D5 D4 D7 D6 Howcommand byte and data byte map into MPR083's registers acknowledge from MPR083 acknowledge from MPR083 |
|
链接网址 |
| 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 |