mirror of
git://projects.qi-hardware.com/f32xbase.git
synced 2025-04-21 12:27:27 +03:00
Firmware-free C2 programmer, with USB interface.
This commit is contained in:
5
hw/modules/INFO
Normal file
5
hw/modules/INFO
Normal file
@@ -0,0 +1,5 @@
|
||||
# http://www.nxp.com/#/page/content=[f=/packages/SOT341-1.xml]
|
||||
F: ssop
|
||||
|
||||
# USB 2.0 from usb_20_040908, page 99
|
||||
F: usb-a-pcb
|
||||
13
hw/modules/Makefile
Normal file
13
hw/modules/Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
MODULES=pads ssop usb-a-pcb
|
||||
|
||||
.SUFFIXES: .fpd .mod
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(MODULES:%=%.mod)
|
||||
|
||||
clean:
|
||||
rm -f *~*.fpd
|
||||
rm -f $(MODULES:%=%.mod)
|
||||
|
||||
.fpd.mod:
|
||||
fped -k $< $@
|
||||
18
hw/modules/pads.fpd
Normal file
18
hw/modules/pads.fpd
Normal file
@@ -0,0 +1,18 @@
|
||||
/* MACHINE-GENERATED ! */
|
||||
|
||||
frame pad {
|
||||
__0: vec @(x/2, y/2)
|
||||
__1: vec @(-x/2, -y/2)
|
||||
rpad "1" . __0
|
||||
}
|
||||
|
||||
package "PAD_$name"
|
||||
unit mm
|
||||
|
||||
table
|
||||
{ name, x, y }
|
||||
{ "2mm", 2mm, 0.5mm }
|
||||
{ "60x60", 60mil, 60mil }
|
||||
{ "120x60", 120mil, 60mil }
|
||||
|
||||
frame pad @
|
||||
74
hw/modules/ssop.fpd
Normal file
74
hw/modules/ssop.fpd
Normal file
@@ -0,0 +1,74 @@
|
||||
/* MACHINE-GENERATED ! */
|
||||
|
||||
frame pin {
|
||||
__0: vec @(D/2, C/2)
|
||||
__1: vec @(-D/2, -C/2)
|
||||
pad "$n" . __0
|
||||
}
|
||||
|
||||
frame pins_top {
|
||||
set n = N-i
|
||||
|
||||
__0: vec @(x, 0mm)
|
||||
frame pin .
|
||||
}
|
||||
|
||||
frame pins_bottom {
|
||||
set n = i+1
|
||||
|
||||
__0: vec @(x, 0mm)
|
||||
frame pin .
|
||||
}
|
||||
|
||||
frame pins {
|
||||
set y = (A+B)/4
|
||||
|
||||
set x = (i-(N/2-1)/2)*P
|
||||
|
||||
loop i = 0, N/2-1
|
||||
|
||||
__0: vec @(0mm, y)
|
||||
frame pins_top .
|
||||
__1: vec @(0mm, -y)
|
||||
frame pins_bottom .
|
||||
}
|
||||
|
||||
frame outline {
|
||||
set w = 5mil
|
||||
|
||||
table
|
||||
{ r, d }
|
||||
{ 0.5mm, 2*r }
|
||||
|
||||
__0: vec @(H/2, F/2)
|
||||
__1: vec @(-H/2, -F/2)
|
||||
rect . __0 w
|
||||
__2: vec @(d-H/2, d-B/2)
|
||||
__3: vec .(r, 0mm)
|
||||
circ __2 . w
|
||||
}
|
||||
|
||||
package "SSOP-$N"
|
||||
unit mm
|
||||
|
||||
set P = 0.65mm
|
||||
|
||||
set D = 0.4mm
|
||||
|
||||
table
|
||||
{ N, A, B, C, F, H }
|
||||
{ 14, 8.1mm, 5.7mm, 1.2mm, 8.35mm, 4.55mm }
|
||||
{ 16, 8.1mm, 5.7mm, 1.2mm, 8.35mm, 5.2mm }
|
||||
{ 20, 8.1mm, 5.9mm, 1.1mm, 8.35mm, 6.5mm }
|
||||
{ 24, 8.1mm, 5.9mm, 1.1mm, 8.35mm, 7.8mm }
|
||||
{ 28, 8.1mm, 5.9mm, 1.1mm, 8.35mm, 9.1mm }
|
||||
|
||||
frame outline @
|
||||
frame pins @
|
||||
measy outline.__1 >> outline.__0 1.5mm
|
||||
measx outline.__1 >> outline.__0 F+1mm
|
||||
measy pin.__1 -> pin.__0 1mm
|
||||
measy pin.__1 >> pin.__0 -H-1mm
|
||||
measy pin.__0 >> pin.__1 -H
|
||||
measx pin.__1 -> pin.__0 -1mm
|
||||
measx pins_top.__0 -> pins_top.__0 -2mm
|
||||
58
hw/modules/usb-a-pcb.fpd
Normal file
58
hw/modules/usb-a-pcb.fpd
Normal file
@@ -0,0 +1,58 @@
|
||||
/* MACHINE-GENERATED ! */
|
||||
|
||||
frame contacts {
|
||||
table
|
||||
{ n, x, y, h }
|
||||
{ 1, c1, yl, hl }
|
||||
{ 2, c2, ys, hs }
|
||||
{ 3, -c2, ys, hs }
|
||||
{ 4, -c1, yl, hl }
|
||||
|
||||
table
|
||||
{ ys, yl }
|
||||
{ (b+bs)/2, (b+bl)/2 }
|
||||
|
||||
table
|
||||
{ hs, hl }
|
||||
{ b-bs, b-bl }
|
||||
|
||||
__0: vec @(x, y)
|
||||
__1: vec .(s/2, h/2)
|
||||
__2: vec __0(-s/2, -h/2)
|
||||
pad "$n" . __1
|
||||
}
|
||||
|
||||
frame outline {
|
||||
set width = 5mil
|
||||
|
||||
__0: vec @(w/2, d/2)
|
||||
__1: vec @(-w/2, -d/2)
|
||||
__2: vec @(w/2, -d/2)
|
||||
line __1 . width
|
||||
line . __0 width
|
||||
__3: vec @(-w/2, d/2)
|
||||
line __1 . width
|
||||
}
|
||||
|
||||
package "USB-A-PCB"
|
||||
unit mm
|
||||
|
||||
table
|
||||
{ w, d }
|
||||
{ 12mm, 11.75mm }
|
||||
|
||||
table
|
||||
{ s, c1, c2, b, bl, bs }
|
||||
{ 1mm, 3.5mm, 1mm, 8.65mm, b-7.41mm, b-6.41mm }
|
||||
|
||||
__0: vec @(0mm, -d/2)
|
||||
frame contacts .
|
||||
frame outline @
|
||||
measy outline.__1 >> outline.__3 1mm
|
||||
measx outline.__3 >> outline.__0 1mm
|
||||
measx __0 -> contacts.__0 -1mm
|
||||
measx __0 >> contacts.__0 -2mm
|
||||
measy outline.__2 -> contacts.__2 -1mm
|
||||
measy outline.__2 >> contacts.__2 -2mm
|
||||
measx contacts.__2 -> contacts.__1 -1mm
|
||||
measy outline.__2 >> contacts.__1 -3mm
|
||||
Reference in New Issue
Block a user