Compare commits

...

6 Commits

Author SHA1 Message Date
King Kévin 9b071b47a7 add side button 2024-03-29 00:03:12 +01:00
King Kévin 973054051f add 5032 crystal 2024-03-29 00:02:49 +01:00
King Kévin 8c476f88dd add stm32f042 2024-03-29 00:02:28 +01:00
King Kévin 50bfd3247a add USB-A board plug 2024-03-29 00:02:06 +01:00
King Kévin cf9cdb5116 ch32v203 fix QFN symbol and footprint 2024-03-29 00:01:42 +01:00
King Kévin f78f2dbb49 stm32f103 improve symbol 2024-03-29 00:00:45 +01:00
8 changed files with 5373 additions and 7 deletions

40
connector/usb-a-plug.yaml Normal file
View File

@ -0,0 +1,40 @@
name: USB-A-PLUG
description: connector, USB, type-A, board as plug
datasheet: https://www.usb.org/document-library/usb-20-specification page 99
pinout:
USB:
VBUS: 1
D-: 2
D+: 3
GND: 4
properties:
passive: USB
schematic:
symbol: connector
housing:
pattern: custom
bodyWidth: 12.0
bodyLength: 11.75
height: 2.0
# power
numbers: 1,4
padWidth: 1.0
padHeight: 7.41
rowCount: 1
columnCount: 2
pitch: 7.0
rowDY: 0.93 # 11.75/2-8.65+7.41/2
# data
numbers1: 2,3
padWidth1: 1.0
padHeight1: 6.41
rowCount1: 1
columnCount1: 2
pitch1: 2.0
rowDY1: 0.43 # 11.75/2-8.65+6.41/2

247
mcu/st_stm32f042.yaml Normal file
View File

@ -0,0 +1,247 @@
name: STM32F042
# not all variations added, just as needed
variations: FxP, GxU
# not verified: CxT, CxU
# STM32F042xyz
# x = pin count: F=20, G=28, K=32, T=36, C=48
# y = flash size: 4=16KB, 6=32KB
# z = package: R=TSSOP, T=LQFP, U=UFQFPN, Y=WLCSP
description: Cortex-M0 USB line MCU
keywords: MCU, micro-controller
datasheet: https://www.st.com/resource/en/datasheet/stm32f042g6.pdf
pinout@FxP: # TSSOP20
PORTA:
PA0: 6
PA1: 7
PA2: 8
PA3: 9
PA4: 10
PA5: 11
PA6: 12
PA7: 13
PA9-PA11: 17
PA10-PA12: 18
PA13-SWDIO: 19
PA14-SWCLK: 20
PORTB:
PB1: 14
PB8-BOOT0: 1
PORTF:
PF0-OSC_IN: 2
PF1-OSC_OUT: 3
CTRL:
NRST: 4
GROUND:
VSS: 15
POWER:
VDD-VDDIO2: 16
VDDA: 5
pinout@GxU: # QFN28
PORTA:
PA0: 6
PA1: 7
PA2: 8
PA3: 9
PA4: 10
PA5: 11
PA6: 12
PA7: 13
PA9-PA11: 19
PA10-PA12: 20
PA13-SWDIO: 21
PA14-SWCLK: 22
PA15: 23
PORTB:
PB0: 14
PB1: 15
PB3: 24
PB4: 25
PB5: 26
PB6: 27
PB7: 28
PB8-BOOT0: 1
PORTF:
PF0-OSC_IN: 2
PF1-OSC_OUT: 3
CTRL:
NRST: 4
GROUND:
VSS: 16
POWER:
VDD: 17
VDDIO2: 18
VDDA: 5
pinout@CxT: # LQFP48
PORTA:
PA0-WKUP: 10
PA1: 11
PA2: 12
PA3: 13
PA4: 14
PA5: 15
PA6: 16
PA7: 17
PA8: 29
PA9: 30
PA10: 31
PA11: 32
PA12: 33
PA13: 34
PA14: 37
PA15: 38
PORTB:
PB0: 18
PB1: 19
PB2: 20
PB3: 39
PB4: 40
PB5: 41
PB6: 42
PB7: 43
PB8: 45
PB9: 46
PB10: 21
PB11: 22
PB12: 25
PB13: 26
PB14: 27
PB15: 28
PORTC:
PC13-TAMPER-RTC: 2
PC14-OSC32_IN: 3
PC15-OSC32_OUT: 4
CTRL:
BOOT0: 44
OSC_IN: 5
OSC_OUT: 6
NRST: 7
GROUND:
VSS: 23, 35, 47
VSSA: 8
POWER:
VDD: 24, 36, 48
VDDA: 9
VBAT: 1
pinout@CxU: # QFN48
PORTA:
PA0-WKUP: 10
PA1: 11
PA2: 12
PA3: 13
PA4: 14
PA5: 15
PA6: 16
PA7: 17
PA8: 29
PA9: 30
PA10: 31
PA11: 32
PA12: 33
PA13: 34
PA14: 37
PA15: 38
PORTB:
PB0: 18
PB1: 19
PB2: 20
PB3: 39
PB4: 40
PB5: 41
PB6: 42
PB7: 43
PB8: 45
PB9: 46
PB10: 21
PB11: 22
PB12: 25
PB13: 26
PB14: 27
PB15: 28
PORTC:
PC13-TAMPER-RTC: 2
PC14-OSC32_IN: 3
PC15-OSC32_OUT: 4
CTRL:
BOOT0: 44
OSC_IN: 5
OSC_OUT: 6
NRST: 7
GROUND:
VSS: 23, 35, 47, 49
VSSA: 8
POWER:
VDD: 24, 36, 48
VDDA: 9
VBAT: 1
properties:
in: NRST, BOOT0
bidir: PORTA, PORTB, PORTC, PORTF
power: VDD, VDDA, VDDIO2, VBAT
ground: VSS, VSSA
inverted: NRST
schematic:
symbol: IC
left: PORTA, PORTF
right: PORTB, PORTC, CTRL
top: POWER
bottom: GROUND
housing@FxP: # TSSOP20
suffix: FxP
pattern: SOP
bodyWidth: 4.3-4.5 # E1
bodyLength: 6.4-6.6 # D
height: 1.2 # A
leadWidth: 0.19-0.30 # b
leadLength: 0.45-0.75 # L
leadSpan: 6.2-6.6 # E
pitch: 0.65 # e
leadCount: 20
housing@GxU: # QFN28
suffix: GxU
pattern: QFN
bodyWidth: 3.9-4.1 # D
bodyLength: 3.9-4.1 # E
height: 0.5-0.6 # A
leadWidth: 0.2-0.3 # b
leadLength: 0.3-0.5 # L
pitch: 0.5 # e
leadCount: 28
rowCount: 7
columnCount: 7
# no tab
housing@CxU: # QFN48
suffix: CxU
pattern: QFN
bodyWidth: 7.0
bodyLength: 7.0
height: 0.85
leadWidth: 0.25
leadLength: 0.4
pitch: 0.5
leadCount: 48
tabWidth: 5.5
tabLength: 5.5
tabPosition: 0.0, 0.0
housing@CxT: # LQFP48
suffix: CxT
pattern: QFP
bodyWidth: 7.0
bodyLength: 7.0
height: 1.5
leadWidth: 0.2
leadLength: 0.6
leadSpan: 9.0
pitch: 0.5
leadCount: 48
rowCount: 12
columnCount: 12

View File

@ -600,8 +600,8 @@ properties:
schematic:
symbol: IC
left: PORTA, PORTB, CTRL
right: PORTC, PORTD, PORTE
left: PORTA, PORTD, CTRL
right: PORTB, PORTC, PORTE
top: POWER
bottom: GROUND

View File

@ -102,8 +102,7 @@ pinout@G6U: # QFN28
PA6: 12
PA7: 13
PA9: 18
PA10: 19
PA11: 19
PA10/PA11: 19
PA12: 20
PA13: 21
PA14: 22
@ -123,7 +122,7 @@ pinout@G6U: # QFN28
OSC_OUT: 3
NRST: 4
GROUND:
VSS: 16, 21 # pad
VSS: 16, 29 # pad
POWER:
VDD: 17
VDDA: 5
@ -437,6 +436,8 @@ housing@F8U: # QFN20
leadLength: 0.4
pitch: 0.4
leadCount: 20
rowCount: 5
columnCount: 5
tabWidth: 1.7
tabLength: 1.7
tabPosition: 0.0, 0.0
@ -451,8 +452,10 @@ housing@G6U: # QFN28
leadLength: 0.4
pitch: 0.4
leadCount: 28
tabWidth: 2.8
tabLength: 2.8
rowCount: 7
columnCount: 7
tabWidth: 2.7
tabLength: 2.7
tabPosition: 0.0, 0.0
housing@CxU: # QFN48

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,38 @@
name: 1TS003B
description: SPST tactical momentary switch, SMD 2*4*3.5mm, side
datasheet: https://www.tophyp.com/products_detail/1TS003B.html
pinout:
1: 1
2: 2
schematic:
symbol: connector
left: 1
right: 2
housing:
pattern: custom
bodyLength: 3.4-3.6
bodyWidth: 4.5-4.7
height: 1.82
silkscreen: M -0.9,-0.6 0.9,-0.6 # button, -3.5/2+2.3
model: # modified from JLC
file: "library/mechanical/smd-button_hyp_1ts003b.step"
rotation: 0,0,180
position: 0,-0.15,0
# pins
padWidth: 0.9 # (4.3-2.5)/2
padHeight: 0.8 # 1.8-1.0
padPosition: -1.7, 1.75, 1.7, 1.75 # 2.5/2+0.9/2, 3.5/2-2.1-1-0.4
# case
padWidth1: 0.6 # (5.2-4)/2
padHeight1: 1.2
padPosition1: -2.3, -0.25, 2.3, -0.25 # 2.5/2+0.9/2, 3.5/2-2.1-1.2/2
# mounting holes
holeDiameter2: 0.7
padDiameter2: 0.0
padPosition2: -0.85, 0.35, 0.85, 0.35 # 1.7/2, 3.5/2-2.1

25
oscillator/x5032.yaml Normal file
View File

@ -0,0 +1,25 @@
name: X5032
description: 2-pin crystal oscillator, SMD, 5.0x3.2 mm
keywords: oscillator, crystal, SMD, 2-pin
pinout:
X1: 1
X2: 2
properties:
passive: X1-2
schematic:
symbol: crystal
housing:
pattern: custom
bodyWidth: 4.8-5.2
bodyLength: 3.0-3.4
height: 1.3
padWidth: 1.7
padHeight: 2.4
columnCount: 2
rowCount: 1
pitch: 3.7