| 数据搜索系统,热门电子元器件搜索 |
|
MCP2221 数据表(PDF) 23 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP2221 数据表(HTML) 23 Page - Microchip Technology |
|
23 / 80 page ![]() 2015 Microchip Technology Inc. DS20005292B-page 23 MCP2221 3.0 USB HID COMMUNICATION Except for the USB CDC and UART modules, all the other modules in the MCP2221 use USB HID protocol for communication. The USB HID protocol uses 64-byte reports. A typical command exchange starts with a 64-byte packet that is written by the USB Host (i.e., the PC). Afterward, the USB Host reads the response from the device as a 64-byte packet. 3.1 USB HID Commands/Responses 3.1.1 STATUS/SET PARAMETERS This command offers many options for this device. It is used to poll for the status of the device. It is also used to establish certain I2C bus parameters/conditions. TABLE 3-1: COMMAND STRUCTURE Byte Index Function Description Value Effect 0 0x10 Status/Set Parameters – command code 1 Don’t care Any value 2 Cancel current I2C/SMBus transfer (sub-command) 0x10 When this value is put in this field, the device will cancel the current I2C/SMBus transfer and will attempt to free the I2C bus. This command is very useful since it can cancel a transfer and free the bus. An example would be when trying to communicate with a device using a wrong address. This will cause a timeout to occur. This timeout situation can be read using the “Status/Set Parameter” and the cancellation of the I2C/SMBus transfer can be achieved by this sub-command. Any other value No effect. 3Set I2C/SMBus communication speed (sub-command) 0x20 When this value is put in this field, the device will take the next command field and interpret it as the system clock divider that will give the I2C/SMBus communication clock. Any other value No effect. 4The I2C/SMBus system clock divider that will be used to establish the communication speed The value in this field is being taken into consideration only when the Byte Index 3 contains the code for establishing a new communication speed. In all the other cases, this field’s value won’t matter. 5-63 Don’t care Any value |
|
链接网址 |
| 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 |