AN721-usbxpress-device-config-programming-guide.pdf

所需积分/C币:19 2019-10-24 13:50:51 1.71MB PDF
50
收藏 收藏
举报

AN721-usbxpress-device-config-programming-guide.pdf CP2130-EK 开发板, usb转SPI,速度12Ms
AN721: USBXpressTM Device Configuration and Programming Guide Basic device customization 2. Basic Device Customization Each family of devices has slightly different requirements for configuration. The CP210x devices require a virtual Com Port driver, pro vided by Silicon Labs, to be installed on the host machine before they can be detected and programmed. The CP2130 devices similarly require a separate USB-to-SPI driver. The CP211x devices do not require drivers since they are hid class devices, which are natively supported by most operating systems. The next three sections describe the recommended steps for customizing the device based on the famil 2.1 Customizing the CP210x Non- HID USB Devices The steps to customize the cp2 10x USBXpress devices are as follows 1.RequestauniquepidfromSiliconLabsforyournewproductdesignhttp://www.silabs.com/requestpid,orobtainavid/pidfrom usb. org 2.DownloadtheVcpdriverappropriateforyouroperatingsystemhere:http://www.silabs.com/products/mcu/pages/usbtouartbridg evcpdrivers aspx The stock vcp driver from the website should match the default Vid and pid on the CP210x device. The VCP driver must be installed with matching Vid and Pid to communicate to the device 3. Use 3. 1 Xpress Configurator to change the descriptors in the programmable memory of the device 4.(usbxPressDriverUsersOnly):IFthedesireddriverisuSbxprEss,itcanbedownloadherehttp://www.silabs.com/usbxpress This driver allows direct access using Silicon Labs aPI commands to control the device, rather than having to operate on the de vice as if it were a com port. this driver by default, does not match the default Vid/Pid of the cP210x devices. In order to use this driver, the devices or driver (or both )must be customized to have a matching VID/PID combination. See the tables at the end of this section for the default driver and device vid/pids 5.UsetheUsbDrivercuStomizationWizardandinstructionsinAn220SwandAn220.:UsbDriverCustomizationhttp:// www.silabs.com/products/interface/pages/interface-appLication-notes.aspxtoupdatethedriverforthenewPidandanyotherde scriptors that have been changed from Step 3 6.Microsoft Windows Only): The customized driver is eligible for WHQL re-seller submissions to certify the driver. These submis sions do not have the high cost and testing requirements of an original driver submission. To certify a customized WinUSB driver, registerattheWinQualsite:(https://sysdevmicrosoft.com)toobtainaWinQualaccountwithyourcompany.InternetExploreristhe only web browser that can be used with the WhQl web site. A Verisign id is needed to register an account (instructions for obtain ingoneareavailableatthemicrosoftwebsitehttp://msdn.microsoft.com/en-us/library/windows/hardware/hh801887?ppud=4.The correctVerisignIdistheCodeSignerStandard:http://www.verisign.com/code-signing/microsoft-authenticode/index.html?sl=head- 7.MicrosoftWindowsOnly):AfterobtainingaWinQualaccountnotifytheSiliconLabssupportteam(http://www.silabs.com/contact support)(click on"Open a support request )to be added as a registered Reseller. Provide the driver type(CP2130 WinUSB) and version(e.g, 1.0)when requesting Reseller status 8. Microsoft Windows Only Silicon Labs will add your company as a registered reseller. Your company must complete the provided directions to finish the recertification process Note: For further detailed instructions on Microsoft's submission process for recertification for a customized driver, please view applica- tionnoteAn807:RecertifyingaCustomizedwindowsHckDriverPackageherehttp://www.silabs.com/products/interface/pages/inter- face-application-notes aspx The CP2 10x family of devices provides communication from USB to UART. These devices require drivers on the host machine in order to interface with the device. Silicon Labs provides two sets of drivers to interface with the device 1.virtuAlComPort(vcp)drivers(htTp://www.silabs.com/vcpdrivers)-thisdriverallowsthedevicetoappeartothePcsapplica tion software as a COM port 2.uSbxprEssDrivers(http://www.silabs.com/usbxpress)-thisdriverprovidesaproprietaryaplinorderforapplicationstocommu- nicate to the device without appearing as a CoM port Only one driver can be associated with a particular device at a time. Drivers are associated with devices based on matching vid an PID combinations. The vcp drivers must generally be installed on a machine if interfacing with or configuring a CP210x device that programmed with factory default settings. This is required since the vcp drivers, by default, match the default Vid and Pid combination of cP2 1ox devices In order to use a particular driver with a device, either the driver or the device must be customized so that the ViD/PID combination matches on both the device and the driver. For example, if a device is to be used with the default USBXpress driver, its vid and PID must be changed to 0x10C4 and oxEA61, respectively, since these are the defaults for the USBXpress driver silabs. com Smart Connected. Energy-friendly Rev. 1.4 I AN721: USBXpressTM Device Configuration and Programming Guide Basic device customization The tables below show the default vid and pid values for the device and drivers to establish communication with the driver the vid and pid of the device must match the driver notice that the default cp2 1 ox device vid and pid match the default vcp driver vid and PID numbers Table 2.1. Default Device VID/PID Settings Device Default VID Default PiD CP2101-CP2104 0X10C4 OXEA60 CP2105 0x10c4 OxEAZ0 CP2108 0X10C4 OxEA71 Table 2.2. Default VcP Driver VID/PID Settings Device Default VID Default PID CP2101-CP2104 0x10C4 OXEA6O cP2105 0X10C4 OxEA7O CP2108 0x10C4 OxEA7 1 Table 2.3. Default USBXpress Driver VID/PID Settings Device Default VID Default PiD CP2101-CP2104 0x10C4 OxEA61 Note: CP2105 and cP2108 device can be used with the USBXpress driver, but these devices must be added by customizing the driver usingAn220:UsbDriverCustomizationSoftwarefoundherehttp://www.silabs.com/products/interface/pages/interface-appLication notes. aspx 2.2 Customizing the CP211x HID USB Devices The following are the steps to follow to customize CP21 1X HID USBXpress devices to ensure a unique VID/PID combination 1.RequestauniquePidfromSiliconLabsforanewdesign:http://www.silabs.com/requestpid 2. Use 3. 1 Xpress Configurator (or 3.2 CP21XX Device Customization Software for CP2114 devicesto change the descriptors in the firmware of the device The CP21 1x family does not require a driver because it is automatically recognized as part of the Hid class, which most operating sys- tems recognize with generic, native drivers. However, the CP21 1x does not appear as a standard hid device type such as a keyboard or mouse. Any CP211x PC application will need to use the specific CP21 1x HID specification to communicate with it. This low-level HID specification is documented and provided by silicon Labs in the form of a DLL. Please see AN433: CP2110/4 HiD-to-UAR T AP/ Specifi- cation and AN496: CP2112 HID USB-to-SMBus AP/ Specification for more information silabs. com Smart Connected Energy-friendly Rev.1.4|3 AN721: USBXpressTM Device Configuration and Programming Guide Basic device customization 2.3 Customizing CP2130 USB-to-SPI Devices Perform the following steps to customize the CP2130 USBXpress device 1.RequestauniquePidfromSiliconLabsforyournewproductdesignhttp://www.silabs.com/requestpid,orobtainaVid/PiDfrom http:/www.usb.org/ 2.DownloadtheWinusbdriverappropriateforyouroperatingsystemfromherehttp:/www.silabs.com/cp2130ek.ThestockWi- nUSB driver from the website should match the default Vid and pid in the Cp2130. the driver must be installed with matching Vid and pid to communicate to the device 3. Use 3. 1 Xpress Configurator to change the descriptors in the firmware of the device 4. Modify a copy of the stock WinUSB driver hardware installation file( inf)for the new PID and any other descriptors that have been changed from Step 3. Take care to verify that these customized drivers are completely correct, as none of the files in the driver package can change in any way once the driver has been certified. The strings contained in the inf file affect what is displayed in the [Found New Hardware Wizard dialogs, Device Manager, and the registry. any changes to the windows installation inf files will require new Windows Hardware Quality Labs(whQl)tests 5. Microsoft Windows Only): The customized driver is eligible for WHQL re-seller submissions to certify the driver. These submis- sions do not have the high cost and testing requirements of an original driver submission To certify a customized winusB driver registerattheWinQualsite:(https://sysdev.microsoftcom)toobtainaWinQualaccountwithyourcompanyInternetExploreristhe only web browser that can be used with the WhQL web site. a Verisign id is needed to register an account (instructions for obtain- goneareavailableatthemicrosoftwebsite:http://msdn.microsoftcom/en-us/ibrary/windows/hardware/hh801887?ppud=4.the correctVerisignIdistheCodeSignerStandardhttp://www.verisign.com/code-signing/microsoft-authenticode/index.html?sl=head 6.microSoftWindowsOnly:AfterobtainingawInQualaccountnotifytheSiliconLabssupportteam(http://www.silabs.com/contact- support)(click on Open a support request )to be added as a registered Reseller. Provide the driver type(CP2130 WinUSB) and version(e.g, 1.0)when requesting Reseller status 7.(Microsoft Windows Only Silicon Labs will add your company as a registered reseller. Your company must complete the provided directions to finish the recertification process Note: For further detailed instructions on Microsoft s submission process for recertification for a customized driver, please view applica tionnoteAn807:RecertifyingaCustomizedwindowshcKDriverPackageherehttp://www.silabs.com/products/interface/pages/inter- face-application-notes aspx The CP2130 family of devices provides communication from USB to SPl. This requires a driver to interface to the device. In most ca ses, a generic USB driver, such a Microsoft's WinUSB or the open source libUSB driver, can be used with the CP2130. All that is re quired is to generate a proper driver iNF file that associates a CP2 130 with a specific USB VID/PId with the generic USB driver. The CP2130 evaluation kit ships with a WinUsB driver and inf file that includes support for the default CP2130 VID/PID. In order to cus tomize the cp2130 the user must install this stock driver in order for the cp2 lxx customization software to communicate with the device. Once the CP2130 has been customized and the vid and/or Pid have changed, the user must customize the driver to recognize the new Vid/Pid The CP2130 data sheet lists WinUSB drivers for various Windows operating systems. The steps described below must be followed each time a new operating system is to be supported. If the driver has been certified for Windows 7 32-bit and it becomes necessary to support Windows 7 64-bit, then the driver must be recertified The microsoft certification process must be initiated again, and the resell- er fee must be paid to microsoft for the 64-bit version of the driver. Microsoft requires this certification process, which involves Windows hardware quality labs testing(WHQL). It certifies that the hardware or software has been tested by Microsoft to ensure compatibility Device drivers that pass the WHQL tests are given a digitally-signed certification file, which prevents Windows from displaying a warn ing message that the driver has not been certified by Microsoft silabs.comSmartConnectedEnergy-friendly. Rev.1.4|4 AN721: USBXpressTM Device Configuration and Programming Guide Basic device customization The tables below shows the default vid and pid values for the device and drivers to establish communication with the driver the vid and pid of the device must match the driver notice that the default cp2 130 device vid and pid match the default winusb driver Vid and pid numbers Table 2.4. Default Device VID/PID Settings Device Default VID Default PiD CP2130 0X10C4 0X87A0 Table 2.5. Default WinUSB Driver VID/PID Settings Device Default VID Default pId CP2130 Ox10C4 0X87AO silabs.comSmartConnectedEnergy-friendly. Rev.1.4|5 AN721: USBXpressTM Device Configuration and Programming Guide Device Customization software 3. Device customization software Two utilities are provided by Silicon Labs to customize USBXpress devices: Xpress Configurator within Simplicity Studio, and the lega- cyCp21xXDeviceCustomizationSoftwarebundledwiththisapplicationnoteSimplicityStudiocanbefoundandinstalledfromhttp:// www.silabs.com/simplicity for the CP2114. CP2114 support will be added to Xpress Configurator in a future release can program all USBXpress devices, except Xpress Configurator supports all major operating systems through Simplicity Studio, and The legacy CP2 1xx Device Customization Software is a Windows-only application, and is generally not recommended for devices other than the cp21 14 3.1 Xpress Configurator Simplicity Studio supports device configuration through [Xpress Configurator]. For all USBXpress devices, device USB attributes can be configured · Vendor|D/ Product|D Device Strings: Serial, Product, Manufacturer Release version · USB Power mode In addition most devices have other options that can be configured Modem Signals Special Functions GPIOs Interface Options Eie Edi Navigate Search Projet Rin Test Config Window Help m:cp2103document x CONFIGURATION GROUPINGS CunficuraLiur ' er Mode o 0x0(4 0a0 100 Man facturer string o Port Configuration: UART Baud Rete Alias Configuration DOCUMENTATION PRODLEMS STATUS RESET SAVE PROGRAM TO DEVCE HPORT FROM DEVICE REQUEST PARTS J2]M ot 4 No tev ces active(click to select) Figure 3.1. Xpress Configurator silabs.comSmartConnectedEnergy-friendly. Rev.1.4|6 AN721: USBXpressTM Device Configuration and Programming Guide Device Customization software The tool validates all changes to a configuration and alerts the user to any problems or potential issues with a configuration in a [Prob lems] list toward the bottom of the view. Once the user has developed a configuration that is valid, the user can download the configu ration to a device by clicking [Program to Device Xpress Configurator-cp2103/c32103 document- Simplicity Studio Eile Edit Navigat: Search project Run Test Config Window Help cp2103 document &x CONFIGURATION GROUPINGS Device Confiquration endor|◎ Product id o Mdx Puwer(nA]o Fower Mode o 0x10c4 Bus Powered Manufacturer string o ck Device Silicon labs Prod ct string DOCUMENTATION STATUS e Max Power User value 1,000 out of range [0 to 5001 RESET SAVE PROGRAN TD DEVICE IMPORT FROM DEVICE REQUEST PARTS(→ No devices active (click to select) Figure 3.2. Xpress Configurator Problems view silabs.comSmartConnectedEnergy-friendly. Rev.1.4|7 AN721: USBXpressTM Device Configuration and Programming Guide Device Customization software The tool will also read back the configuration from the device to ensure that the requested values were programmed correctly. In some cases, such as if a device is locked or if a device is one-time-programmable and has been programmed already, the user requested values will not be programmed to the device. In this case, the values that are stored on the device that do not match the requested values will be highlighted s Xpress Configurator -cp2103/cp2103. do:ument- Simplicity Stucia 巴x File Edt Navigate Search Project Run Test Config Window Help t-、画93每 的画回非 cp210Bdocument x CONFIGURATION GROUPINGS Device Configuration Vax 0 0x10c4 100 Bus Powered Manufacturer str ck Device Slicon lab Product string o NEw Product String Minor DOCUMENTAIION PROBLEMS STAT s Failec to program"Product String(cp2-0x_baseset_ics. productString)! Programmed: New Product String Device Returned: CP2lC3 USB to UART Bridge Controller ⑨RsEr PROGRAM TO DEVICE REQUEST PARTS 247Mcf4q0M面 No devices artive (rlirk tn <Elect) Figure 3. 3. Xpress Configurator Programming validation silabs.comSmartConnectedEnergy-friendly. Rev.14|8 AN721: USBXpressTM Device Configuration and Programming Guide Device Customization software The tool also includes data sheet-derived information about each configurable parameter. This information can be accessed by clicking on the small [u buttons next to each parameter. The data sheet text will then appear in the documentation pane toward the bottom of the screen press Ccnfigurator-co2103/=p2103. document- Simp licity Studio 巴回感 file[dit Search Project Run Test Config Window Ilelp 哈国非草 cp2103document x CONFIGURATION GROUPINGS Device Configuration Poyer Made 0x0c4 MEnufacturer string① □ Prod」cf CF2103 USB to UART Bridge 0001 Release ersion o 0080 DOCUMEN TATON STATUS PID he Piuuucl ID is a our uigil hiexauecimlal nunBer ll ral idenTifies tIe ve durs device. OXEA60, Tu exar iple, is thie Pioducl ID [UI SiliconI Lats CP210X USB to UAR Bridge devices RESET SAVE PROGRAM TO DEVIGE MPORT FROM DEVICE REQUEST PARTS 326M0432M山日 N devices active(click to select) Figure 3. 4. Xpress Configurator Parameter Documentation silabs.comSmartConnectedEnergy-friendly. Rev.1.4|9

...展开详情
试读 37P AN721-usbxpress-device-config-programming-guide.pdf
立即下载
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
上传资源赚钱or赚积分
最新推荐
AN721-usbxpress-device-config-programming-guide.pdf 19积分/C币 立即下载
1/37
AN721-usbxpress-device-config-programming-guide.pdf第1页
AN721-usbxpress-device-config-programming-guide.pdf第2页
AN721-usbxpress-device-config-programming-guide.pdf第3页
AN721-usbxpress-device-config-programming-guide.pdf第4页
AN721-usbxpress-device-config-programming-guide.pdf第5页
AN721-usbxpress-device-config-programming-guide.pdf第6页
AN721-usbxpress-device-config-programming-guide.pdf第7页
AN721-usbxpress-device-config-programming-guide.pdf第8页

试读结束, 可继续读4页

19积分/C币 立即下载