Add USB and MCU

This commit is contained in:
Luca 2020-10-14 23:12:14 +02:00
parent c7f9282d83
commit c3af3549c1
2 changed files with 640 additions and 2 deletions

195
anykey-cache.lib Normal file
View File

@ -0,0 +1,195 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# Connector_USB_A
#
DEF Connector_USB_A J 0 40 Y Y 1 F N
F0 "J" -200 450 50 H V L CNN
F1 "Connector_USB_A" -200 350 50 H V L CNN
F2 "" 150 -50 50 H I C CNN
F3 "" 150 -50 50 H I C CNN
$FPLIST
USB*
$ENDFPLIST
DRAW
C -150 85 25 0 1 10 F
C -25 135 15 0 1 10 F
S -200 -300 200 300 0 1 10 f
S -60 190 -170 210 0 1 0 F
S -50 180 -180 230 0 1 0 N
S -5 -300 5 -270 0 1 0 N
S 10 50 -20 20 0 1 10 F
S 200 -105 170 -95 0 1 0 N
S 200 -5 170 5 0 1 0 N
S 200 195 170 205 0 1 0 N
P 4 0 1 10 -125 85 -100 85 -50 135 -25 135 N
P 4 0 1 10 -100 85 -75 85 -50 35 0 35 N
P 4 0 1 10 25 110 25 60 75 85 25 110 F
P 2 1 1 10 -75 85 25 85 N
X VBUS 1 300 200 100 L 50 50 1 1 W
X D- 2 300 -100 100 L 50 50 1 1 P
X D+ 3 300 0 100 L 50 50 1 1 P
X GND 4 0 -400 100 U 50 50 1 1 W
X Shield 5 -100 -400 100 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_C_Small
#
DEF Device_C_Small C 0 10 N N 1 F N
F0 "C" 10 70 50 H V L CNN
F1 "Device_C_Small" 10 -80 50 H V L CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
C_*
$ENDFPLIST
DRAW
P 2 0 1 13 -60 -20 60 -20 N
P 2 0 1 12 -60 20 60 20 N
X ~ 1 0 100 80 D 50 50 1 1 P
X ~ 2 0 -100 80 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_R_Small
#
DEF Device_R_Small R 0 10 N N 1 F N
F0 "R" 30 20 50 H V L CNN
F1 "Device_R_Small" 30 -40 50 H V L CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
$ENDFPLIST
DRAW
S -30 70 30 -70 0 1 8 N
X ~ 1 0 100 30 D 50 50 1 1 P
X ~ 2 0 -100 30 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# MCU_ST_STM32F0_STM32F072CBTx
#
DEF MCU_ST_STM32F0_STM32F072CBTx U 0 20 Y Y 1 F N
F0 "U" -600 1450 50 H V L CNN
F1 "MCU_ST_STM32F0_STM32F072CBTx" 300 1450 50 H V L CNN
F2 "Package_QFP:LQFP-48_7x7mm_P0.5mm" -600 -1400 50 H I R CNN
F3 "" 0 0 50 H I C CNN
ALIAS STM32F072CBTx
$FPLIST
LQFP*7x7mm*P0.5mm*
$ENDFPLIST
DRAW
S -600 -1400 500 1400 0 1 10 f
X VBAT 1 -200 1500 100 D 50 50 1 1 W
X PA0 10 600 200 100 L 50 50 1 1 B
X PA1 11 600 100 100 L 50 50 1 1 B
X PA2 12 600 0 100 L 50 50 1 1 B
X PA3 13 600 -100 100 L 50 50 1 1 B
X PA4 14 600 -200 100 L 50 50 1 1 B
X PA5 15 600 -300 100 L 50 50 1 1 B
X PA6 16 600 -400 100 L 50 50 1 1 B
X PA7 17 600 -500 100 L 50 50 1 1 B
X PB0 18 -700 200 100 R 50 50 1 1 B
X PB1 19 -700 100 100 R 50 50 1 1 B
X PC13 2 -700 600 100 R 50 50 1 1 B
X PB2 20 -700 0 100 R 50 50 1 1 B
X PB10 21 -700 -800 100 R 50 50 1 1 B
X PB11 22 -700 -900 100 R 50 50 1 1 B
X VSS 23 -200 -1500 100 U 50 50 1 1 W
X VDD 24 -100 1500 100 D 50 50 1 1 W
X PB12 25 -700 -1000 100 R 50 50 1 1 B
X PB13 26 -700 -1100 100 R 50 50 1 1 B
X PB14 27 -700 -1200 100 R 50 50 1 1 B
X PB15 28 -700 -1300 100 R 50 50 1 1 B
X PA8 29 600 -600 100 L 50 50 1 1 B
X PC14 3 -700 500 100 R 50 50 1 1 B
X PA9 30 600 -700 100 L 50 50 1 1 B
X PA10 31 600 -800 100 L 50 50 1 1 B
X PA11 32 600 -900 100 L 50 50 1 1 B
X PA12 33 600 -1000 100 L 50 50 1 1 B
X PA13 34 600 -1100 100 L 50 50 1 1 B
X VSS 35 -100 -1500 100 U 50 50 1 1 W
X VDDIO2 36 200 1500 100 D 50 50 1 1 W
X PA14 37 600 -1200 100 L 50 50 1 1 B
X PA15 38 600 -1300 100 L 50 50 1 1 B
X PB3 39 -700 -100 100 R 50 50 1 1 B
X PC15 4 -700 400 100 R 50 50 1 1 B
X PB4 40 -700 -200 100 R 50 50 1 1 B
X PB5 41 -700 -300 100 R 50 50 1 1 B
X PB6 42 -700 -400 100 R 50 50 1 1 B
X PB7 43 -700 -500 100 R 50 50 1 1 B
X BOOT0 44 -700 1100 100 R 50 50 1 1 I
X PB8 45 -700 -600 100 R 50 50 1 1 B
X PB9 46 -700 -700 100 R 50 50 1 1 B
X VSS 47 0 -1500 100 U 50 50 1 1 W
X VDD 48 0 1500 100 D 50 50 1 1 W
X PF0 5 -700 900 100 R 50 50 1 1 I
X PF1 6 -700 800 100 R 50 50 1 1 I
X NRST 7 -700 1300 100 R 50 50 1 1 I
X VSSA 8 100 -1500 100 U 50 50 1 1 W
X VDDA 9 100 1500 100 D 50 50 1 1 W
ENDDRAW
ENDDEF
#
# Switch_SW_Push
#
DEF Switch_SW_Push SW 0 40 N N 1 F N
F0 "SW" 50 100 50 H V L CNN
F1 "Switch_SW_Push" 0 -60 50 H V C CNN
F2 "" 0 200 50 H I C CNN
F3 "" 0 200 50 H I C CNN
DRAW
C -80 0 20 0 1 0 N
C 80 0 20 0 1 0 N
P 2 0 1 0 0 50 0 120 N
P 2 0 1 0 100 50 -100 50 N
X 1 1 -200 0 100 R 50 50 0 1 P
X 2 2 200 0 100 L 50 50 0 1 P
ENDDRAW
ENDDEF
#
# power_+3V3
#
DEF power_+3V3 #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "power_+3V3" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
ALIAS +3.3V
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X +3V3 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# power_GND
#
DEF power_GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "power_GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# power_PWR_FLAG
#
DEF power_PWR_FLAG #FLG 0 0 N N 1 F P
F0 "#FLG" 0 75 50 H I C CNN
F1 "power_PWR_FLAG" 0 150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 50 -40 75 0 100 40 75 0 50 N
X pwr 1 0 0 0 U 50 50 0 0 w
ENDDRAW
ENDDEF
#
#End Library

View File

@ -1,4 +1,447 @@
EESchema Schematic File Version 2
EELAYER 25 0
EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L Connector:USB_A J?
U 1 1 5F874047
P 1500 1500
F 0 "J?" H 1557 1967 50 0000 C CNN
F 1 "USB_A" H 1557 1876 50 0000 C CNN
F 2 "" H 1650 1450 50 0001 C CNN
F 3 " ~" H 1650 1450 50 0001 C CNN
1 1500 1500
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR?
U 1 1 5F877F81
P 1750 2000
F 0 "#PWR?" H 1750 1750 50 0001 C CNN
F 1 "GND" H 1755 1827 50 0000 C CNN
F 2 "" H 1750 2000 50 0001 C CNN
F 3 "" H 1750 2000 50 0001 C CNN
1 1750 2000
1 0 0 -1
$EndComp
Wire Wire Line
1400 1900 1400 2000
$Comp
L power:PWR_FLAG #FLG?
U 1 1 5F878854
P 2000 1250
F 0 "#FLG?" H 2000 1325 50 0001 C CNN
F 1 "PWR_FLAG" H 2000 1423 50 0000 C CNN
F 2 "" H 2000 1250 50 0001 C CNN
F 3 "~" H 2000 1250 50 0001 C CNN
1 2000 1250
1 0 0 -1
$EndComp
$Comp
L MCU_ST_STM32F0:STM32F072CBTx U?
U 1 1 5F878F8D
P 5500 3000
F 0 "U?" H 5450 1411 50 0000 C CNN
F 1 "STM32F072CBTx" H 5450 1320 50 0000 C CNN
F 2 "Package_QFP:LQFP-48_7x7mm_P0.5mm" H 4900 1600 50 0001 R CNN
F 3 "http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00090510.pdf" H 5500 3000 50 0001 C CNN
1 5500 3000
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR?
U 1 1 5F885927
P 5050 4600
F 0 "#PWR?" H 5050 4350 50 0001 C CNN
F 1 "GND" H 5055 4427 50 0000 C CNN
F 2 "" H 5050 4600 50 0001 C CNN
F 3 "" H 5050 4600 50 0001 C CNN
1 5050 4600
1 0 0 -1
$EndComp
Wire Wire Line
5050 4600 5050 4550
Wire Wire Line
5050 4550 5300 4550
Wire Wire Line
5600 4550 5600 4500
Wire Wire Line
5500 4500 5500 4550
Connection ~ 5500 4550
Wire Wire Line
5500 4550 5600 4550
Wire Wire Line
5400 4500 5400 4550
Connection ~ 5400 4550
Wire Wire Line
5400 4550 5500 4550
Wire Wire Line
5300 4500 5300 4550
Connection ~ 5300 4550
Wire Wire Line
5300 4550 5400 4550
$Comp
L power:+3V3 #PWR?
U 1 1 5F88771B
P 5300 1400
F 0 "#PWR?" H 5300 1250 50 0001 C CNN
F 1 "+3V3" H 5315 1573 50 0000 C CNN
F 2 "" H 5300 1400 50 0001 C CNN
F 3 "" H 5300 1400 50 0001 C CNN
1 5300 1400
1 0 0 -1
$EndComp
Wire Wire Line
5300 1400 5300 1450
Wire Wire Line
5300 1450 5400 1450
Wire Wire Line
5700 1450 5700 1500
Wire Wire Line
5300 1450 5300 1500
Connection ~ 5300 1450
Wire Wire Line
5400 1450 5400 1500
Connection ~ 5400 1450
Wire Wire Line
5400 1450 5500 1450
Wire Wire Line
5500 1450 5500 1500
Connection ~ 5500 1450
Wire Wire Line
5500 1450 5600 1450
Wire Wire Line
5600 1450 5600 1500
Connection ~ 5600 1450
Wire Wire Line
5600 1450 5700 1450
$Comp
L Device:C_Small C?
U 1 1 5F891F39
P 10500 1100
F 0 "C?" H 10592 1146 50 0000 L CNN
F 1 "100n" H 10592 1055 50 0000 L CNN
F 2 "" H 10500 1100 50 0001 C CNN
F 3 "~" H 10500 1100 50 0001 C CNN
1 10500 1100
1 0 0 -1
$EndComp
$Comp
L Device:C_Small C?
U 1 1 5F892CC5
P 10150 1100
F 0 "C?" H 10242 1146 50 0000 L CNN
F 1 "100n" H 10242 1055 50 0000 L CNN
F 2 "" H 10150 1100 50 0001 C CNN
F 3 "~" H 10150 1100 50 0001 C CNN
1 10150 1100
1 0 0 -1
$EndComp
$Comp
L Device:C_Small C?
U 1 1 5F893113
P 9800 1100
F 0 "C?" H 9892 1146 50 0000 L CNN
F 1 "100n" H 9892 1055 50 0000 L CNN
F 2 "" H 9800 1100 50 0001 C CNN
F 3 "~" H 9800 1100 50 0001 C CNN
1 9800 1100
1 0 0 -1
$EndComp
$Comp
L Device:C_Small C?
U 1 1 5F89352A
P 9450 1100
F 0 "C?" H 9542 1146 50 0000 L CNN
F 1 "100n" H 9542 1055 50 0000 L CNN
F 2 "" H 9450 1100 50 0001 C CNN
F 3 "~" H 9450 1100 50 0001 C CNN
1 9450 1100
1 0 0 -1
$EndComp
$Comp
L power:+3V3 #PWR?
U 1 1 5F893B24
P 10500 900
F 0 "#PWR?" H 10500 750 50 0001 C CNN
F 1 "+3V3" H 10515 1073 50 0000 C CNN
F 2 "" H 10500 900 50 0001 C CNN
F 3 "" H 10500 900 50 0001 C CNN
1 10500 900
1 0 0 -1
$EndComp
Wire Wire Line
10500 900 10500 950
Wire Wire Line
10150 1000 10150 950
Wire Wire Line
10150 950 10500 950
Connection ~ 10500 950
Wire Wire Line
10500 950 10500 1000
Wire Wire Line
9800 1000 9800 950
Wire Wire Line
9800 950 10150 950
Connection ~ 10150 950
Wire Wire Line
9450 1000 9450 950
Wire Wire Line
9450 950 9800 950
Connection ~ 9800 950
$Comp
L power:GND #PWR?
U 1 1 5F895DED
P 10500 1300
F 0 "#PWR?" H 10500 1050 50 0001 C CNN
F 1 "GND" H 10505 1127 50 0000 C CNN
F 2 "" H 10500 1300 50 0001 C CNN
F 3 "" H 10500 1300 50 0001 C CNN
1 10500 1300
1 0 0 -1
$EndComp
Wire Wire Line
10500 1200 10500 1250
Wire Wire Line
10150 1200 10150 1250
Wire Wire Line
10150 1250 10500 1250
Connection ~ 10500 1250
Wire Wire Line
10500 1250 10500 1300
Wire Wire Line
9800 1200 9800 1250
Wire Wire Line
9800 1250 10150 1250
Connection ~ 10150 1250
Wire Wire Line
9450 1200 9450 1250
Wire Wire Line
9450 1250 9800 1250
Connection ~ 9800 1250
$Comp
L Device:C_Small C?
U 1 1 5F8978DB
P 9100 1100
F 0 "C?" H 9192 1146 50 0000 L CNN
F 1 "4.7u" H 9192 1055 50 0000 L CNN
F 2 "" H 9100 1100 50 0001 C CNN
F 3 "~" H 9100 1100 50 0001 C CNN
1 9100 1100
1 0 0 -1
$EndComp
$Comp
L Device:C_Small C?
U 1 1 5F89851C
P 8750 1100
F 0 "C?" H 8842 1146 50 0000 L CNN
F 1 "4.7u" H 8842 1055 50 0000 L CNN
F 2 "" H 8750 1100 50 0001 C CNN
F 3 "~" H 8750 1100 50 0001 C CNN
1 8750 1100
1 0 0 -1
$EndComp
$Comp
L Device:C_Small C?
U 1 1 5F8989CC
P 8400 1100
F 0 "C?" H 8492 1146 50 0000 L CNN
F 1 "10n" H 8492 1055 50 0000 L CNN
F 2 "" H 8400 1100 50 0001 C CNN
F 3 "~" H 8400 1100 50 0001 C CNN
1 8400 1100
1 0 0 -1
$EndComp
$Comp
L Device:C_Small C?
U 1 1 5F898D1B
P 8100 1100
F 0 "C?" H 8192 1146 50 0000 L CNN
F 1 "1u" H 8192 1055 50 0000 L CNN
F 2 "" H 8100 1100 50 0001 C CNN
F 3 "~" H 8100 1100 50 0001 C CNN
1 8100 1100
1 0 0 -1
$EndComp
Wire Wire Line
8100 1000 8100 950
Wire Wire Line
8100 950 8400 950
Connection ~ 9450 950
Wire Wire Line
8100 1200 8100 1250
Wire Wire Line
8100 1250 8400 1250
Connection ~ 9450 1250
Wire Wire Line
8400 1000 8400 950
Connection ~ 8400 950
Wire Wire Line
8400 950 8750 950
Wire Wire Line
8400 1200 8400 1250
Connection ~ 8400 1250
Wire Wire Line
8400 1250 8750 1250
Wire Wire Line
8750 1000 8750 950
Connection ~ 8750 950
Wire Wire Line
8750 950 9100 950
Wire Wire Line
8750 1200 8750 1250
Connection ~ 8750 1250
Wire Wire Line
8750 1250 9100 1250
Wire Wire Line
9100 1000 9100 950
Connection ~ 9100 950
Wire Wire Line
9100 950 9450 950
Wire Wire Line
9100 1200 9100 1250
Connection ~ 9100 1250
Wire Wire Line
9100 1250 9450 1250
Text Label 2000 1600 2 50 ~ 0
D-
Text Label 2000 1500 2 50 ~ 0
D+
Text Label 6350 3900 2 50 ~ 0
D-
Text Label 6350 4000 2 50 ~ 0
D+
Wire Wire Line
6100 3900 6350 3900
Wire Wire Line
6100 4000 6350 4000
$Comp
L power:+3V3 #PWR?
U 1 1 5F8BF530
P 2300 1250
F 0 "#PWR?" H 2300 1100 50 0001 C CNN
F 1 "+3V3" H 2315 1423 50 0000 C CNN
F 2 "" H 2300 1250 50 0001 C CNN
F 3 "" H 2300 1250 50 0001 C CNN
1 2300 1250
1 0 0 -1
$EndComp
Wire Wire Line
1800 1300 2000 1300
Wire Wire Line
2300 1300 2300 1250
Wire Wire Line
2000 1250 2000 1300
Connection ~ 2000 1300
Wire Wire Line
2000 1300 2300 1300
Wire Wire Line
1800 1500 2000 1500
Wire Wire Line
1800 1600 2000 1600
$Comp
L power:PWR_FLAG #FLG?
U 1 1 5F8EC2DD
P 2000 1900
F 0 "#FLG?" H 2000 1975 50 0001 C CNN
F 1 "PWR_FLAG" H 2000 2073 50 0000 C CNN
F 2 "" H 2000 1900 50 0001 C CNN
F 3 "~" H 2000 1900 50 0001 C CNN
1 2000 1900
1 0 0 -1
$EndComp
Wire Wire Line
1750 2000 1750 1950
Wire Wire Line
1500 1900 1500 1950
Wire Wire Line
1500 1950 1750 1950
Wire Wire Line
2000 1900 2000 1950
Wire Wire Line
2000 1950 1750 1950
Connection ~ 1750 1950
$Comp
L power:GND #PWR?
U 1 1 5F8FB997
P 1400 2000
F 0 "#PWR?" H 1400 1750 50 0001 C CNN
F 1 "GND" H 1405 1827 50 0000 C CNN
F 2 "" H 1400 2000 50 0001 C CNN
F 3 "" H 1400 2000 50 0001 C CNN
1 1400 2000
1 0 0 -1
$EndComp
$Comp
L Device:R_Small R?
U 1 1 5F905B31
P 4450 2050
F 0 "R?" H 4509 2096 50 0000 L CNN
F 1 "10k" H 4509 2005 50 0000 L CNN
F 2 "" H 4450 2050 50 0001 C CNN
F 3 "~" H 4450 2050 50 0001 C CNN
1 4450 2050
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR?
U 1 1 5F9081DB
P 4450 2200
F 0 "#PWR?" H 4450 1950 50 0001 C CNN
F 1 "GND" H 4455 2027 50 0000 C CNN
F 2 "" H 4450 2200 50 0001 C CNN
F 3 "" H 4450 2200 50 0001 C CNN
1 4450 2200
1 0 0 -1
$EndComp
Wire Wire Line
4450 1900 4800 1900
Wire Wire Line
4450 2200 4450 2150
NoConn ~ 4800 1700
NoConn ~ 4800 2100
NoConn ~ 4800 2200
NoConn ~ 4800 2400
NoConn ~ 4800 2500
NoConn ~ 4800 2600
$Comp
L Switch:SW_Push SW?
U 1 1 5F925207
P 4450 1650
F 0 "SW?" V 4496 1602 50 0000 R CNN
F 1 "MX" V 4405 1602 50 0000 R CNN
F 2 "" H 4450 1850 50 0001 C CNN
F 3 "~" H 4450 1850 50 0001 C CNN
1 4450 1650
0 -1 -1 0
$EndComp
$Comp
L power:+3V3 #PWR?
U 1 1 5F92756B
P 4450 1400
F 0 "#PWR?" H 4450 1250 50 0001 C CNN
F 1 "+3V3" H 4465 1573 50 0000 C CNN
F 2 "" H 4450 1400 50 0001 C CNN
F 3 "" H 4450 1400 50 0001 C CNN
1 4450 1400
1 0 0 -1
$EndComp
Wire Wire Line
4450 1400 4450 1450
Wire Wire Line
4450 1850 4450 1900
Connection ~ 4450 1900
Wire Wire Line
4450 1900 4450 1950
$EndSCHEMATC