| 数据搜索系统,热门电子元器件搜索 |
|
MXT1664T3-ATESSQTP 数据表(PDF) 42 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MXT1664T3-ATESSQTP 数据表(HTML) 42 Page - Microchip Technology |
|
42 / 98 page ![]() MXT1664T3 2.0 DS40002054A-page 42 2018 Microchip Technology Inc. FIGURE 9-3: READ/WRITE MEMORY MAP – RESPONSE PACKET FORMAT In Figure 9-3: • Rpt ID is the HID-I2C report ID used for Object Protocol commands and responses (see Table 9-2 on page 40). • Status indicates the result of the command: - 0x00 = read and write completed; read data returned - 0x04 = write completed; no read data requested • NumRx is the number of bytes following that have been read from the memory map (in the case of a read). This will be the same value as NumRx in the command packet. • Data 0 to Data 14 are the data bytes read from the memory map. 9.5.1.2 Writing To the Device A write operation cycle to the device consists of sending a packet that contains six header bytes. These specify the HID- I2C report ID, the Command ID, the number of bytes to read, the number of bytes to write, and the 16-bit address pointer. Subsequent bytes in a multi-byte transfer form the actual data. These are written to the location of the address pointer, location of the address pointer +1, location of the address pointer + 2, and so on. Figure 9-4 shows an example command packet to write four bytes of data to contiguous addresses starting at 0x1234. FIGURE 9-4: EXAMPLE OF A FOUR-BYTE WRITE COMMAND STARTING AT ADDRESS 0x1234 In Figure 9-4: • Rpt ID is the HID-I2C report ID used for Object Protocol commands and responses (see Table 9-2 on page 40). • Number of Bytes to Read is set to zero as this is a write-only operation. • Number of Bytes to Write is six (that is, four data bytes plus the two address pointer bytes). Figure 9-5 shows the response to this command. In this case, the result status returned is 0x04 (that is, the write operation was completed but no read data was requested). Note that the report ID will be the same one used in the command packet. FIGURE 9-5: RESPONSE TO EXAMPLE FOUR-BYTE WRITE 9.5.1.3 Reading From the Device A read operation consists of sending a packet that contains the six header bytes only and no write data. Figure 9-6 on page 43 shows an example command packet to read four bytes starting at address 0x1234. Note that the address pointer is included in the number of bytes to write, so the number of bytes to write is set to 2 as there are no other data bytes to be written. Read Data Data 14 Rpt ID Status Number of Bytes Read Success/ Failure NumRx Data 0 ... Write Data (4 Bytes) 0x51 0x06 Number of Bytes to Write 0x00 0x34 0x12 0x96 0x9B 0xA0 0xA5 Address Pointer (LSByte, MSByte) Number of Bytes to Read Command ID Rpt ID Unused Bytes (8 bytes) 0x00 0x00 ... Result 0x04 Rpt ID Unused Bytes (16 Bytes) 0x00 0x00 ... |
|
链接网址 |
| 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 |