Electronic Components Datasheet Search
  English  ▼

X  

CP2103 Datasheet(PDF) 25 Page - Silicon Laboratories

Part # CP2103
Description  PROGRAMMERS GUIDE
PDF  36 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SILABS [Silicon Laboratories]
Direct Link  http://www.silabs.com
Logo SILABS - Silicon Laboratories

CP2103 Datasheet(HTML) 25 Page - Silicon Laboratories

Back Button CP2103 Datasheet HTML 21Page - Silicon Laboratories CP2103 Datasheet HTML 22Page - Silicon Laboratories CP2103 Datasheet HTML 23Page - Silicon Laboratories CP2103 Datasheet HTML 24Page - Silicon Laboratories CP2103 Datasheet HTML 25Page - Silicon Laboratories CP2103 Datasheet HTML 26Page - Silicon Laboratories CP2103 Datasheet HTML 27Page - Silicon Laboratories CP2103 Datasheet HTML 28Page - Silicon Laboratories CP2103 Datasheet HTML 29Page - Silicon Laboratories Next Button
Zoom Inzoom in Zoom Outzoom out
 25 / 36 page
background image
AN169
Rev. 2.3
25
A PPE N DI X B—F ORMAT OF U SER -D EFINED P RO DU CT
D ESCRIPT ION AND S ERIAL N UMBE R STRINGS
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
It is possible for the API to use strings defined and allocated in user firmware instead of the API default strings. The
syntax for defining and using custom strings is:
unsigned char CustomString[]={number of string elements,0x03,'A',0,'B',0,'C',0...'Z',0};
The number of string elements = number of letters x 2 + 2, since every letter needs to be separated from the next
by zeros, and USB requires that the first element be the length, and the second element is 0x03, meaning string
descriptor type. This sounds harder than it is, for example:
//ABC Inc
unsigned char CustomString1[]={16,0x03,'A',0,'B',0,'C',0,' ',0,'I',0,'n',0,'c',0};
//Widget
unsigned char CustomString2[]={14,0x03,'W',0,'i',0,'d',0,'g',0,'e',0,'t',0};
//12345
unsigned char CustomString3[]={12,0x03,'1',0,'2',0,'3',0,'4',0,'5',0};
Then, if the Vendor ID and Product ID were 0xABCD and 0x1123, the call to USB_Init would be
USB_Init (0xABCD, 0x1123, CustomString1, CustomString2, CustomString3);
Note: It is useful to use the code keyword preceding the CustomString definitions, so that the strings are located in
code space.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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