| Electronic Components Datasheet Search |
|
CP2103 Datasheet(PDF) 19 Page - Silicon Laboratories |
|
|
|||||||||||||||||||||||||||||
CP2103 Datasheet(HTML) 19 Page - Silicon Laboratories |
|
19 / 36 page ![]() AN169 Rev. 2.3 19 4.2. USB_Init Description: Enables the USB interface, the USB clock recovery feature, and the use of Device Interface Functions. On return, the USB interface is configured, and C8051F32x interrupts are globally enabled. User software should not globally disable interrupts (set EA = 0), but should enable or disable user configured interrupts individually using the interrupt's source interrupt enable flag present in the IE, EIE1, or EIE2 SFRs. Before calling USB_Init, a call to USB_Clock_Start should be made to configure the USB clock. See "Appendix A—SFRs that Should Not be Modified After Calling USB_Clock_Start and USB_Init” for more details. This function allows the user to specify the Vendor and Product IDs as well as Manufacturer, Product Description, and Serial Number strings that are sent to the host as part of the device's USB descriptor during the USB enumeration (device connection). Supported Devices: C8051F320/1/6/7, C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D, C8051F380/1/2/3/4/5/6/7, C8051T320/1/2/3/6/7, C8051T620/1/2/3 Prototype: void USB_Init (UINT VendorID, UINT ProductID, BYTE *ManufacturerStr, BYTE *ProductStr, BYTE *SerialNumberStr, BYTE MaxPower, BYTE PwAttributes, UINT bcdDevice) Parameters: 1. VendorID—16-bit Vendor ID to be returned to the host's Operating System during USB enumeration. Set to 0x10C4 to use the default Silicon Laboratories Vendor ID. 2. ProductID—16-bit Product ID to be returned to the host's Operating System during USB enumeration. Set to 0xEA61 to associate with the default USBXpress driver. 3. ManufacturerStr—Pointer to a character string. See Appendix B for formatting. NULL pointer should not be used because the library does not contain a default value for this string. 4. ProductStr—Pointer to a character string. See Appendix B for formatting. NULL pointer should not be used because the library does not contain a default value for this string. 5. SerialNumberStr—Pointer to a character string. See Appendix B for formatting. NULL pointer should not be used because the library does not contain a default value for this string. 6. MaxPower—Specifies how much bus current a device requires. Set to one half the number of milliamperes required. The maximum allowed current is 500 milliamperes, and hence any value above 0xFA will be automatically set to 0xFA. Example: Set to 0x32 to request 100 mA. 7. PwAttributes—Set bit 6 to 1 if the device is self-powered and to 0 if it is bus-powered. Set bit 5 to 1 if the device supports the remote wakeup feature. Bits 0 through 4 must be 0 and bit 7 must be 1. Example: Set to 0x80 to specify a bus-powered device that does not support remote wakeup. 8. bcdDevice—The device's release number in BCD (binary-coded decimal) format. In BCD, the upper byte represents the integer, the next four bits are tenths, and the final four bits are hundredths. Example: 2.13 is denoted by 0x0213. Return Value: None |
|
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 |