Compare commits

...

6 Commits

Author SHA1 Message Date
King Kévin 0028ca2570 add USB micro-B 3.0 2022-10-22 16:47:57 +02:00
King Kévin 4fd58815a0 add GD32F303Z MCU 2022-10-22 16:47:57 +02:00
King Kévin a64d98a6ee add LCD TFT display 2022-10-22 16:47:57 +02:00
King Kévin d15367aa57 add LCD TFT display module 2022-10-22 16:47:57 +02:00
King Kévin 32fcee82af add USB distributors 2022-10-22 16:47:57 +02:00
King Kévin c45b637459 simplified USB names 2022-10-22 16:47:57 +02:00
6 changed files with 358 additions and 3 deletions

View File

@ -3,6 +3,7 @@ description: USB 3.0, type B
# they all have a similar footprint
datasheet: http://www.amphenol-icc.com/media/wysiwyg/files/drawing/gsb4211xxxweu.pdf
keywords: connector, USB
distributor: LCSC C105423, LCSC C2895032
pinout:
USB:

View File

@ -0,0 +1,75 @@
name: HRO_U-F-10SW-Y-1
description: USB, micro-C, 3.0, receptacle, SMT
datasheet: https://datasheet.lcsc.com/lcsc/2108132030_Korean-Hroparts-Elec-U-F-10SW-Y-1_C2689945.pdf # datasheet not found on krhro.com
distributor: LCSC C2689945
pinout:
USB:
VBUS: 1
D-: 2
D+: 3
ID: 4
GND: 5
USB3.0:
SSTX-: 6
SSTX+: 7
GND_DRAIN: 8
SSRX-: 9
SSRX+: 10
SHELL: 11-16
properties:
power: VBUS
ground: GND, GND_DRAIN
bidir: D-, D+
in: ID, SSRX-, SSRX+
out: SSTX-, SSTX+
passive: SHELL
schematic:
symbol: connector
right: USB, USB3.0
bottom: SHELL
housing:
pattern: custom
bodyWidth: 12.85
bodyLength: 5.5
bodyPosition: 0, 0.1 # use tab center line as center (4.80+0.7)/2-(0.7+2.15)
height: 2.45
silkscreen: M -6.425 2.05 6.425 2.05 # PCB edge (includes body position)
# USB 2.0 left pins
padWidth: 0.4
padHeight: 1.35
pitch: 0.65 # 1.30 / 2
rowCount: 1
columnCount: 5
rowDX: -2.675 # 12.25/2-3.45
rowDY: -2.70
# USB 3.0 right pins
padWidth1: 0.4
padHeight1: 1.35
pitch1: 0.65
rowCount1: 1
columnCount1: 5
rowDX1: 4.025 # 12.25/2-3.45-6.7
rowDY1: -2.70
# shell
padWidth2: 1.8 # 4.9-3.1
padHeight2: 1.9
padPosition2: -6.675, -0 # 12.25/2-3.45+3.10+1.8/2
padWidth3: 1.9 # 2.15-0.25
padHeight3: 1.9
padPosition3: -3.875, 0, -1.475, 0 # 12.25/2-3.45+3.10+1.8/2 12.25/2-3.45+0.25+1.9/2
padWidth4: 1.8 # 4.9-3.1
padHeight4: 1.9
padPosition4: 1.325, 0, 3.825, 0 # 12.25/2-3.45-3.1-1.8/2 12.25/2-3.45-5.6-1.8/2
padWidth5: 2.3 # 10.25-7.95
padHeight5: 1.9
padPosition5: 6.425, 0 # 12.25/2-3.45-7.95-2.3/2

View File

@ -1,7 +1,8 @@
name: USB_mini-B
description: USB 2.0 receptacle, type mini-B
datasheet: http://files.edac.net/690-005-299-043.pdf
description: connector, USB, mini-B, 2.0, receptacle, SMT
datasheet: http://files.edac.net/690-005-299-043.pdf # generic footprint
keywords: connector, USB
distributor: LCSC C105424, LCSC C2681563 # last has slightly diff dimensions
pinout:
VBUS: 1
@ -47,4 +48,3 @@ housing:
# mounting hole
holeDiameter2: 0.90
padPosition2: -2.20, 0, 2.20, 0

View File

@ -0,0 +1,62 @@
name: MSP18003
description: LCD TFT module, 1.8 inch, 128x160, ST7735S driver
pinout:
GND: 7
VCC: 8
TFT:
LED: 1
SCK: 2
SDA: 3
AO: 4
RESET: 5
CS: 6
SD:
SD_CS: 9
SD_MOSI: 10
SD_MISO: 11
SD_SCK: 12
properties:
power: VCC, LED # anode
ground: GND
bidir: SDA
in: SCK, AO, RESET, CS, SD_CS, SD_MOSI, SD_SCK
inverted: RESET, CS, SD_CS
out: SD_MISO
schematic:
symbol: ic
left: TFT
right: SD
top: VCC
bottom: GND
housing:
pattern: custom
bodyWidth: 58.0
bodyLength: 34.5
height: 5.08 # unknown
# TFT
holeDiameter: 1.0
padDiameter: 1.8
pitch: 2.54
rowCount: 8
columnCount: 1
rowDX: -26.5 # 58.0 / 2 - 2.5
rowDY: 0
# SD
holeDiameter1: 1.0
padDiameter1: 1.8
pitch1: -2.54
rowCount1: 4
columnCount1: 1
rowDX1: 26.5 # 58.0 / 2 - 2.5
rowDY1: 0
# mounting hole
holeDiameter2: 2.8
padPosition2: -26.0, -14.25, 26.0, -14.25, 26.0, 14.25, -26.0, 14.25
padDiameter2: 0

View File

@ -0,0 +1,49 @@
name: N177-1216TCWPG01-H14
description: LCD TFT, 1.77 inch, 128x160, ST7735 driver
distributor: LCSC C5123575
pinout:
NC: 1,14
GND: 2,5,13
LED:
LED+: 4
LED-: 3
SPI:
RES: 6
AO: 7
SDA: 8
SCK: 9
CS: 12
VCC: 10
IOVCC: 11
properties:
power: VCC, IOVCC
ground: GND
bidir: SDA
in: SCK, AO, RES, CS
inverted: RES, CS
out: SD_MISO
passive: LED+, LED-
nc: NC
schematic:
symbol: ic
left: LED, SPI
right: SD
top: VCC, IOVCC
bottom: GND
housing:
pattern: custom
bodyWidth: 45.83
bodyLength: 34.0
height: 2.20
padWidth: 2.5 # 2.2 + 0.3
padHeight: 0.5 # 0.4 + 0.1
pitch: 0.8
rowCount: 14
columnCount: 1
rowDX: 16.0 # 45.83/2 - 11.90 + 2.2 + 2.2/2 + some margin
rowDY: 0

168
mcu/gd_gd32f303z.yaml Normal file
View File

@ -0,0 +1,168 @@
name: GD32F303Z
description: micro-controller, GigaDevice, ARM, LQFP144
datasheet: https://gd32mcu.com/download/down/document_id/240/path_type/1
pinout:
PORTA:
PA0-WKUP: 34
PA1: 35
PA2: 36
PA3: 37
PA4: 40
PA5: 41
PA6: 42
PA7: 43
PA8: 100
PA9: 101
PA10: 102
PA11: 103
PA12: 104
PA13: 105
PA14: 109
PA15: 110
PORTB:
PB0: 46
PB1: 47
PB2: 48
PB3: 133
PB4: 134
PB5: 135
PB6: 136
PB7: 137
PB8: 139
PB9: 140
PB10: 69
PB11: 70
PB12: 73
PB13: 74
PB14: 75
PB15: 76
PORTC:
PC0: 26
PC1: 27
PC2: 28
PC3: 29
PC4: 44
PC5: 45
PC6: 96
PC7: 97
PC8: 98
PC9: 99
PC10: 111
PC11: 112
PC12: 113
PC13-TAMPER-RTC: 7
PC14-OSC32_IN: 8
PC15-OSC32_OUT: 9
PORTD:
PD0: 114
PD1: 115
PD2: 116
PD3: 117
PD4: 118
PD5: 119
PD6: 122
PD7: 123
PD8: 77
PD9: 78
PD10: 79
PD11: 80
PD12: 81
PD13: 82
PD14: 85
PD15: 86
PORTE:
PE0: 141
PE1: 142
PE2: 1
PE3: 2
PE4: 3
PE5: 4
PE6: 5
PE7: 58
PE8: 59
PE9: 60
PE10: 63
PE11: 64
PE12: 65
PE13: 66
PE14: 67
PE15: 68
PORTF:
PF0: 10
PF1: 11
PF2: 12
PF3: 13
PF4: 14
PF5: 15
PF6: 18
PF7: 19
PF8: 20
PF9: 21
PF10: 22
PF11: 49
PF12: 50
PF13: 53
PF14: 54
PF15: 55
PORTG:
PG0: 56
PG1: 57
PG2: 87
PG3: 88
PG4: 89
PG5: 90
PG6: 91
PG7: 92
PG8: 93
PG9: 124
PG10: 125
PG11: 126
PG12: 127
PG13: 128
PG14: 129
PG15: 132
CTRL:
OSC_IN: 23
OSC_OUT: 24
NRST: 25
BOOT0: 138
GROUND:
VSS: 71, 107, 143, 38, 16, 51, 61, 83, 94, 120, 130
VSSA: 30
VREF-: 31
POWER:
VDD: 72, 108, 144, 39, 17, 52, 62, 84, 95, 121, 131
VDDA: 33
VBAT: 6
VREF+: 32
NC: 106
properties:
in: NRST, BOOT0
bidir: PA0-WKUP, PA1-15, PB0-15, PC0-12, PC13-TAMPER-RTC, PC14-OSC32_IN, PC15-OSC32_OUT, PD0-15, PE0-15, PF0-15, PG0-15
passive: OSC_IN, OSC_OUT, VREF+, VREF-
power: VDD, VDDA, VBAT
nc: NC
ground: VSS, VSSA
inverted: NRST
schematic:
symbol: IC
left: CTRL, PORTA, PORTB, PORTC
right: PORTD, PORTE, PORTF, PORTG
top: POWER
bottom: GROUND
housing:
pattern: QFP
bodyWidth: 19.90-20.10 # D1
bodyLength: 19.90-20.10 # E1
height: 1.60 # A
leadWidth: 0.18-0.26 # b
leadLength: 0.45-0.75 # L
leadSpan: 21.80-22.20 # D
pitch: 0.5 # e
leadCount: 144
rowCount: 36
columnCount: 36