USB پین
USB 2.0، 3.0 او 3.1 (USB-C) کنکټرونو تامه مینځنه "په هر وړ USB کنکټرونو ډولونو کې د پیناوتوبو موخو شمېر او فنی وړاندیزونه، شامله د Standard-A، B، Mini، Micro او USB-C." دا وب مبنای مرجع د USB کنکټر پین کنفیګوریشنونو ، سیګنال وظیفو، ولټیجو سطحو او رنګ کډونو لپاره یو جزئی جلاړه ورکوي: USB 2.0، USB 3.0 او USB 3.1 (Type-C) . د هغه معلومات ټول د USB Implementers Forum (USB-IF) لخوا د رسمی وړاندیزو په پام کې نیول شوي دي. دا د انجینرۍ، تکنیسیانونو، هابیستونو او طلبونو لپاره مناسب دی چې د متهیج سیسټمونو، DIY الکترونیکي یا د دیوسې مینځنې کې کار کوي. USB څه دی؟ Universal Serial Bus (USB) د کمپیوټرونو او موبایل دیوسې سره د اطرافو لنډول لپاره د یو معیاري انټرفیس دی. دا پشتونه کوي: ډیټا واټلو پاور وړاندیز (USB PD کې تر 240W پورې) ډیوسې وړاندیز هوټ-سوپینګ هر یو USB ورژن نوی ویشنيو خصوصیتونه ورکوي: USB 2.0 : تر 480 Mbps پورې USB 3.0 : تر 5 Gbps پورې USB 3.1 Gen 2 : تر 10 Gbps پورې USB 3.2 / USB4 : تر 40 Gbps پورې فیزیکي کنکټرونو د ډول او ورژن لرونکې توپیر لري، که ټول د غیر قابل تبادلې پین وړاندیزونه پالي کوي. USB کنکټرونو ډولونه خلاصه کنکټر پینونه کارولو کېس USB 2.0 A/B ۴ پینونه هاستونه، پرنټرونه، کیبورډونه میني/مايكرو USB 2.0 ۵ پینونه پرانۍ تلوفرنونه، کیمرې USB 3.0 A/B ۹/۱۱ پینونه سرعتواله داټا، بیرونی درایوها مايكرو USB 3.0 ۱۰ پینونه سمارټ فونونه، تبلیتونه USB 3.1 C (USB-C) ۲۴ پینونه واپړل، لو سره اوږد، زموږ داټا Note: USB-C supports reversibility , dual-role operation , and Power Delivery (PD) . USB 2.0 – Standard A & B Connectors Standard A: Standard B: ┌─────────┐ ┌─────────┐ │ 4 3 2 1 │ │ 1 2 │ └─────────┘ └─────────┘ ↑ ↑ Plug View Plug View Pin Configuration (4-Pin) Pin Signal Color Code Function 1 VCC (+5V) Red Power supply (up to 500mA) 2 Data - (D-) White Differential data pair (-) 3 Data + (D+) Green Differential data pair (+) 4 Ground Black Signal and power return Full-duplex communication using differential signaling No ESD protection on host side? Use TVS diodes! Mini/Micro USB 2.0 – Standard A & B Standard A: Standard B: ┌───────┐ ┌───────┐ │ 1 2 3 4 5 │ │ 1 2 3 4 5 │ └───────┘ └───────┘ Pin Configuration (5-Pin) Pin Signal Function 1 VCC (+5V) Power supply 2 Data - (D-) USB 2.0 data negative 3 Data + (D+) USB 2.0 data positive 4 None Host detection: connected to ground in hosts, open in devices 5 Ground Common ground Pin 4 enables automatic detection of host vs. slave Used in older smartphones, GPS units, and digital cameras USB 3.0 – Standard A & B Connectors USB 3.0 A (9-Pin) Plug View: ┌─────────────┐ │ 5 6 7 8 9 │ │ 4 3 2 1 │ └─────────────┘ Pin Signal Function 1 VCC (+5V) Power supply 2 D- USB 2.0 data negative 3 D+ USB 2.0 data positive 4 GND Power ground 5 RX2- USB 3.0 receive line (-) 6 RX2+ USB 3.0 receive line (+) 7 GND Signal ground 8 TX2- USB 3.0 transmit line (-) 9 TX2+ USB 3.0 transmit line (+) Backward compatible with USB 2.0 Speed: Up to 5 Gbps (SuperSpeed) USB 3.0 B (11-Pin) Plug View: ┌─────────────┐ │ 9 8 7 6 5 │ │ 10 11 │ │ 4 3 │ └─────────────┘ Pin Signal Function 1 VCC (+5V) Power supply 2 D- USB 2.0 data negative 3 D+ USB 2.0 data positive 4 GND Power ground 5 TX2- USB 3.0 transmit line (-) 6 TX2+ USB 3.0 transmit line (+) 7 GND Signal ground 8 RX2- USB 3.0 receive line (-) 9 RX2+ USB 3.0 receive line (+) 10 DPWR Power provided by device (e.g., bus-powered hub) 11 GND Return for DPWR Rarely used; replaced by USB-C in modern devices Micro USB 3.0 (10-Pin) Plug View: ┌─────────────────────┐ │ 1 0 9 8 7 6 │ │ 5 4 3 2 1 │ └─────────────────────┘ Pin Signal Function 1 VCC (+5V) Power supply 2 D- USB 2.0 data negative 3 D+ USB 2.0 data positive 4 ID OTG identification (host/device role) 5 GND Power ground 6 TX2- USB 3.0 transmit line (-) 7 TX2+ USB 3.0 transmit line (+) 8 GND Signal ground 9 RX2- USB 3.0 receive line (-) 10 RX2+ USB 3.0 receive line (+) Used in early smartphones and tablets before USB-C adoption Supports On-The-Go (OTG) mode USB 3.1 Type-C (24-Pin) – Reversible Connector Plug View (Top Side): ┌────────────────────────────┐ │ 1 2 3 4 5 6 7 8 9 10 11 12 │ └────────────────────────────┘ │ 13 14 15 16 17 18 19 20 21 22 23 24 │ └────────────────────────────┘ Pin Configuration (24-Pin) Pin Signal Function 1 GND (A1) Ground 2 TX1+ (A2) SuperSpeed transmit (+) 3 TX1- (A3) SuperSpeed transmit (-) 4 Vbus (A4) +5V power supply 5 CC1 (A5) Configuration Channel (detects orientation, power roles) 6 D+ (A6) USB 2.0 data positive 7 D- (A7) USB 2.0 data negative 8 SBU1 (A8) Sideband use (for video/audio, alternate modes) 9 Vbus (A9) +5V power supply (second path) 10 RX2- (A10) SuperSpeed receive (-) 11 RX2+ (A11) SuperSpeed receive (+) 12 GND (A12) Ground 13 GND (B12) Ground (symmetric side) 14 RX1+ (B11) SuperSpeed receive (+) 15 RX1- (B10) SuperSpeed receive (-) 16 Vbus (B9) +5V power supply 17 SBU2 (B8) Sideband use 18 D- (B7) USB 2.0 data negative 19 D+ (B6) USB 2.0 data positive 20 CC2 (B5) Configuration Channel (backup) 21 Vbus (B4) +5V power supply 22 TX2- (B3) SuperSpeed transmit (-) 23 TX2+ (B2) SuperSpeed transmit (+) 24 GND (B1) Ground Fully reversible plug Dual-role data flow (host/device) Supports USB Power Delivery (up to 240W) Supports DisplayPort and HDMI via Alternate Mode Design Tips for Engineers هڅو د D+/D- پر یوځای کنټرول شوي امپدانس (~90Ω) سره دیفرانسیال جوړونه وګورئ د Vbus تریس کوتې او چاپیریتوب کړئ تر څو خورا بېلابېلو لپاره د ESD پروتیکشن لپاره د D+/D- لینو ترمنځ د TVS دیودز کارولو د مناسب مذاکره لپاره د CC پینو ترمنځ د پول آپ ریزیستانسونه اضافه کړئ د سرتیفوکیشن لپاره د USB-IF کمپلاینس ګایډلاینز پیل کړئ معیارونه کمپلاینس USB 2.0 : USB-IF Specification 2.0 USB 3.0 : USB 3.0 Specification (Rev. 1.0) USB 3.1 : USB 3.1 Specification (Rev. 1.0) USB-C : USB Type-C Specification (Rev. 2.1) ټول نوی دیویسونه باید د دوهطرفه کارولو لپاره د دې معیارونو سره سمون لري.