| Electronic Components Datasheet Search |
|
CP2103 Datasheet(PDF) 26 Page - Silicon Laboratories |
|
|
|||||||||||||||||||||||||||||
CP2103 Datasheet(HTML) 26 Page - Silicon Laboratories |
|
26 / 36 page ![]() AN169 26 Rev. 2.3 A PPE N DI X C—F IRMWARE L IBRARY N OTES 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 Tool Chain The USBXpress Firmware Library has been developed with the Keil C51 Tool Chain, and is distributed as a pre- compiled library. Hence the user project should be built using the Keil C51 tool chain, with the USB_API.LIB included as an external library. A header file USB_API.h with macro definitions and function prototypes is also provided. Memory-Model Concerns The firmware API library was created using the small memory model. Using this library in a project with a default memory model of large or compact can cause warnings to occur, depending on warning level settings. To avoid this, set the default memory model to small, and override this setting wherever necessary by defining each function with the large compiler keyword. The “using” Keyword The “using” keyword should not be used with the USB API ISR. This compile-time optimization is not supported by the USBXpress library code that is used to create the virtual USB API interrupt (interrupt # 16). Internal Functions and Variables All internal function names and global variable names in the USBXpress firmware library begin with the prefix “USBXcore”. To avoid conflict with these PUBLIC symbols that will, if duplicated, result in “MULTIPLE PUBLIC DEFINITIONS” errors, global variables and function names in user firmware should not begin with this prefix. Using External Oscillator or Clock By default, USBXpress uses the internal 12 MHz oscillator along with the 4x Clock Multiplier as the USB Clock. To override this, the user firmware can provide its own USB_Clock_Start function. The Keil linker will then override the library function with the user-supplied function. If a high precision external crystal or clock is used, you may want to turn off the USB clock recovery feature. To do this, user firmware code should include a dummy function definition as shown below. This will override the corresponding internal function in the library. void USBXcore_ClkRec(void) large { } Saving XDATA Space The USB_Init function parameters are passed in direct memory locations in user XDATA space determined by the linker. If user firmware needs this contiguous space, these 17 bytes can be relocated to unused XDATA space within the USBXpress reserved area. To do this, the following should be added to the command line while invoking the linker (the value for “address” is shown in Table 1): XDATA(?XD?_USB_INIT?USB_API(<address>)) Example: BL51.exe file1.obj,file2.obj,fileN.obj,USB_API.LIB TO prj1 RS(256) PL(68) PW(78)XDATA(?XD?_USB_INIT?USB_API(0x03EF)) |
|
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 |