From 88f3dcc8ab76407b8fb661f7ba9b52711187fe9b Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 3 Oct 2010 03:06:30 -0300 Subject: [PATCH] Firmware-free C2 programmer, with USB interface. --- hw/Makefile | 18 + hw/c2usb.brd | 849 ++++++++++++++++++++++++++++++++++++++ hw/c2usb.cmp | 94 +++++ hw/c2usb.pro | 77 ++++ hw/c2usb.sch | 381 +++++++++++++++++ hw/components/ft232rl.lib | 39 ++ hw/modules/INFO | 5 + hw/modules/Makefile | 13 + hw/modules/pads.fpd | 18 + hw/modules/ssop.fpd | 74 ++++ hw/modules/usb-a-pcb.fpd | 58 +++ 11 files changed, 1626 insertions(+) create mode 100644 hw/Makefile create mode 100644 hw/c2usb.brd create mode 100644 hw/c2usb.cmp create mode 100644 hw/c2usb.pro create mode 100644 hw/c2usb.sch create mode 100644 hw/components/ft232rl.lib create mode 100644 hw/modules/INFO create mode 100644 hw/modules/Makefile create mode 100644 hw/modules/pads.fpd create mode 100644 hw/modules/ssop.fpd create mode 100644 hw/modules/usb-a-pcb.fpd diff --git a/hw/Makefile b/hw/Makefile new file mode 100644 index 0000000..86382b9 --- /dev/null +++ b/hw/Makefile @@ -0,0 +1,18 @@ +.PHONY: all gen generate sch brd xpdf + +all: + @echo "make what ? target: gen sch brd xpdf" + @exit 1 + +gen generate: + eeschema --plot `pwd`/c2usb.sch + # need scripts + +sch: + eeschema `pwd`/c2usb.sch + +brd: + pcbnew `pwd`/c2usb.brd + +xpdf: + xpdf c2usb.pdf diff --git a/hw/c2usb.brd b/hw/c2usb.brd new file mode 100644 index 0000000..24e977e --- /dev/null +++ b/hw/c2usb.brd @@ -0,0 +1,849 @@ +PCBNEW-BOARD Version 1 date Sun Oct 3 03:05:21 2010 + +# Created by Pcbnew(2010-08-11 BZR 2448)-unstable + +$GENERAL +LayerCount 2 +Ly 1FFF8001 +EnabledLayers 10AA8001 +Links 24 +NoConn 0 +Di 39812 26574 45688 37453 +Ndraw 8 +Ntrack 84 +Nzone 0 +BoardThickness 630 +Nmodule 13 +Nnets 11 +$EndGENERAL + +$SHEETDESCR +Sheet A4 11700 8267 +Title "C2 USB Dongle" +Date "3 oct 2010" +Rev "0" +Comp "Werner Almesberger" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndSHEETDESCR + +$SETUP +InternalUnit 0.000100 INCH +ZoneGridSize 250 +Layers 2 +Layer[0] Back signal +Layer[15] Front signal +TrackWidth 100 +TrackClearence 90 +ZoneClearence 200 +TrackMinWidth 80 +DrawSegmWidth 150 +EdgeSegmWidth 50 +ViaSize 350 +ViaDrill 250 +ViaMinSize 350 +ViaMinDrill 200 +MicroViaSize 200 +MicroViaDrill 50 +MicroViasAllowed 0 +MicroViaMinSize 200 +MicroViaMinDrill 50 +TextPcbWidth 120 +TextPcbSize 600 800 +EdgeModWidth 150 +TextModSize 600 600 +TextModWidth 120 +PadSize 600 600 +PadDrill 320 +Pad2MaskClearance 100 +AuxiliaryAxisOrg 0 0 +$EndSETUP + +$EQUIPOT +Na 0 "" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 1 "+3.3V" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 2 "/C2CK" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 3 "/C2D" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 4 "/D+" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 5 "/D-" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 6 "/VBUS" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 7 "/VDD" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 8 "GND" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 9 "N-000008" +St ~ +$EndEQUIPOT +$EQUIPOT +Na 10 "N-000024" +St ~ +$EndEQUIPOT +$NCLASS +Name "Default" +Desc "This is the default net class." +Clearance 90 +TrackWidth 100 +ViaDia 350 +ViaDrill 250 +uViaDia 200 +uViaDrill 50 +AddNet "" +AddNet "+3.3V" +AddNet "/C2CK" +AddNet "/C2D" +AddNet "/D+" +AddNet "/D-" +AddNet "/VBUS" +AddNet "/VDD" +AddNet "GND" +AddNet "N-000008" +AddNet "N-000024" +$EndNCLASS +$MODULE 0603-M +Po 44600 32900 900 15 4C7EC74B 4CA80C51 ~~ +Li 0603-M +Sc 4CA80C51 +AR /4CA7FEF5 +Op 0 0 0 +At SMD +T0 0 -150 200 200 900 40 N V 25 N"FB1" +T1 0 150 200 200 900 40 N I 25 N"FILTER" +DS -463 227 -463 -227 50 21 +DS -463 -227 463 -227 50 21 +DS 463 -227 463 227 50 21 +DS 463 227 -463 227 50 21 +$PAD +Sh "1" R 217 354 0 0 900 +Dr 0 0 0 +At SMD N 00888000 +Ne 6 "/VBUS" +Po -304 0 +$EndPAD +$PAD +Sh "2" R 217 354 0 0 900 +Dr 0 0 0 +At SMD N 00888000 +Ne 10 "N-000024" +Po 304 0 +$EndPAD +$EndMODULE 0603-M +$MODULE 0603-M +Po 42000 32900 2700 15 4C7EC74B 4CA80C53 ~~ +Li 0603-M +Sc 4CA80C53 +AR /4CA7FD5D +Op 0 0 0 +At SMD +T0 0 -150 200 200 2700 40 N V 25 N"C4" +T1 0 150 200 200 2700 40 N I 25 N"100nF" +DS -463 227 -463 -227 50 21 +DS -463 -227 463 -227 50 21 +DS 463 -227 463 227 50 21 +DS 463 227 -463 227 50 21 +$PAD +Sh "1" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 9 "N-000008" +Po -304 0 +$EndPAD +$PAD +Sh "2" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po 304 0 +$EndPAD +$EndMODULE 0603-M +$MODULE 0603-M +Po 43300 32900 2700 15 4C7EC74B 4CA80C55 ~~ +Li 0603-M +Sc 4CA80C55 +AR /4CA7FEE3 +Op 0 0 0 +At SMD +T0 0 -150 200 200 2700 40 N V 25 N"C3" +T1 0 150 200 200 2700 40 N I 25 N"4.7uF" +DS -463 227 -463 -227 50 21 +DS -463 -227 463 -227 50 21 +DS 463 -227 463 227 50 21 +DS 463 227 -463 227 50 21 +$PAD +Sh "1" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 10 "N-000024" +Po -304 0 +$EndPAD +$PAD +Sh "2" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po 304 0 +$EndPAD +$EndMODULE 0603-M +$MODULE 0603-M +Po 42800 32900 2700 15 4C7EC74B 4CA80C57 ~~ +Li 0603-M +Sc 4CA80C57 +AR /4CA7FEE4 +Op 0 0 0 +At SMD +T0 0 -150 200 200 2700 40 N V 25 N"C2" +T1 0 150 200 200 2700 40 N I 25 N"100nF" +DS -463 227 -463 -227 50 21 +DS -463 -227 463 -227 50 21 +DS 463 -227 463 227 50 21 +DS 463 227 -463 227 50 21 +$PAD +Sh "1" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 10 "N-000024" +Po -304 0 +$EndPAD +$PAD +Sh "2" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po 304 0 +$EndPAD +$EndMODULE 0603-M +$MODULE 0603-M +Po 43800 32900 2700 15 4C7EC74B 4CA80C59 ~~ +Li 0603-M +Sc 4CA80C59 +AR /4CA7FEE6 +Op 0 0 0 +At SMD +T0 0 -150 200 200 2700 40 N V 25 N"C1" +T1 0 150 200 200 2700 40 N I 25 N"10nF" +DS -463 227 -463 -227 50 21 +DS -463 -227 463 -227 50 21 +DS 463 -227 463 227 50 21 +DS 463 227 -463 227 50 21 +$PAD +Sh "1" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 6 "/VBUS" +Po -304 0 +$EndPAD +$PAD +Sh "2" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po 304 0 +$EndPAD +$EndMODULE 0603-M +$MODULE SSOP-28 +Po 43100 30400 1800 15 4CA7FA87 4CA80C5B ~~ +Li SSOP-28 +Sc 4CA80C5B +AR /4CA7FC36 +Op 0 0 0 +At SMD +T0 0 -150 200 200 1800 40 N V 25 N"U1" +T1 0 150 200 200 1800 40 N I 25 N"FT232RL" +DC -1397 767 -1397 570 50 21 +DS -1791 1643 -1791 -1643 50 21 +DS -1791 -1643 1791 -1643 50 21 +DS 1791 -1643 1791 1643 50 21 +DS 1791 1643 -1791 1643 50 21 +$PAD +Sh "28" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -1663 -1377 +$EndPAD +$PAD +Sh "1" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -1663 1377 +$EndPAD +$PAD +Sh "27" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -1407 -1377 +$EndPAD +$PAD +Sh "2" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -1407 1377 +$EndPAD +$PAD +Sh "26" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po -1151 -1377 +$EndPAD +$PAD +Sh "3" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -1151 1377 +$EndPAD +$PAD +Sh "25" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po -895 -1377 +$EndPAD +$PAD +Sh "4" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 1 "+3.3V" +Po -895 1377 +$EndPAD +$PAD +Sh "24" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -639 -1377 +$EndPAD +$PAD +Sh "5" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -639 1377 +$EndPAD +$PAD +Sh "23" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -383 -1377 +$EndPAD +$PAD +Sh "6" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -383 1377 +$EndPAD +$PAD +Sh "22" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po -127 -1377 +$EndPAD +$PAD +Sh "7" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po -127 1377 +$EndPAD +$PAD +Sh "21" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po 127 -1377 +$EndPAD +$PAD +Sh "8" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 127 1377 +$EndPAD +$PAD +Sh "20" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 10 "N-000024" +Po 383 -1377 +$EndPAD +$PAD +Sh "9" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 383 1377 +$EndPAD +$PAD +Sh "19" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 639 -1377 +$EndPAD +$PAD +Sh "10" R 157 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 639 1377 +$EndPAD +$PAD +Sh "18" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po 895 -1377 +$EndPAD +$PAD +Sh "11" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 895 1377 +$EndPAD +$PAD +Sh "17" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 9 "N-000008" +Po 1151 -1377 +$EndPAD +$PAD +Sh "12" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 3 "/C2D" +Po 1151 1377 +$EndPAD +$PAD +Sh "16" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 5 "/D-" +Po 1407 -1377 +$EndPAD +$PAD +Sh "13" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 2 "/C2CK" +Po 1407 1377 +$EndPAD +$PAD +Sh "15" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 4 "/D+" +Po 1663 -1377 +$EndPAD +$PAD +Sh "14" R 158 433 0 0 1800 +Dr 0 0 0 +At SMD N 00888000 +Ne 0 "" +Po 1663 1377 +$EndPAD +$EndMODULE SSOP-28 +$MODULE USB-A-PCB +Po 42750 35000 0 15 4CA7FA87 4CA80C5C ~~ +Li USB-A-PCB +Sc 4CA80C5C +AR /4CA7F4A0 +Op 0 0 0 +At SMD +T0 0 -150 200 200 0 40 N V 25 N"P1" +T1 0 150 200 200 0 40 N I 25 N"CONN_4" +DS -2362 2312 2362 2312 50 21 +DS 2362 2312 2362 -2312 50 21 +DS -2362 2312 -2362 -2312 50 21 +$PAD +Sh "1" R 393 2916 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 6 "/VBUS" +Po 1377 366 +$EndPAD +$PAD +Sh "2" R 394 2523 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 5 "/D-" +Po 393 169 +$EndPAD +$PAD +Sh "3" R 394 2523 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 4 "/D+" +Po -393 169 +$EndPAD +$PAD +Sh "4" R 393 2916 0 0 0 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po -1377 366 +$EndPAD +$EndMODULE USB-A-PCB +$MODULE PAD_120x60 +Po 41300 27500 900 15 4CA81403 4CA81458 ~~ +Li PAD_120x60 +Sc 4CA81458 +AR /4CA8122B +Op 0 0 0 +At SMD +T0 0 -150 200 200 900 40 N V 25 N"P5" +T1 0 150 200 200 900 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 1200 600 0 0 900 +Dr 0 0 0 +At SMD N 00888000 +Ne 8 "GND" +Po 0 0 +$EndPAD +$EndMODULE PAD_120x60 +$MODULE PAD_120x60 +Po 43300 27500 900 15 4CA81403 4CA8145A ~~ +Li PAD_120x60 +Sc 4CA8145A +AR /4CA8122D +Op 0 0 0 +At SMD +T0 0 -150 200 200 900 40 N V 25 N"P4" +T1 0 150 200 200 900 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 1200 600 0 0 900 +Dr 0 0 0 +At SMD N 00888000 +Ne 2 "/C2CK" +Po 0 0 +$EndPAD +$EndMODULE PAD_120x60 +$MODULE PAD_120x60 +Po 44300 27500 900 15 4CA81403 4CA8145C ~~ +Li PAD_120x60 +Sc 4CA8145C +AR /4CA81229 +Op 0 0 0 +At SMD +T0 0 -150 200 200 900 40 N V 25 N"P3" +T1 0 150 200 200 900 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 1200 600 0 0 900 +Dr 0 0 0 +At SMD N 00888000 +Ne 3 "/C2D" +Po 0 0 +$EndPAD +$EndMODULE PAD_120x60 +$MODULE PAD_120x60 +Po 42300 27500 900 15 4CA81403 4CA8145E ~~ +Li PAD_120x60 +Sc 4CA8145E +AR /4CA81226 +Op 0 0 0 +At SMD +T0 0 -150 200 200 900 40 N V 25 N"P2" +T1 0 150 200 200 900 40 N I 25 N"CONN_1" +$PAD +Sh "1" O 1200 600 0 0 900 +Dr 0 0 0 +At SMD N 00888000 +Ne 7 "/VDD" +Po 0 0 +$EndPAD +$EndMODULE PAD_120x60 +$MODULE 0603-M +Po 41000 31000 2700 15 4C7EC74B 4CA8166B ~~ +Li 0603-M +Sc 4CA8166B +AR /4CA8161C +Op 0 0 0 +At SMD +T0 0 -150 200 200 2700 40 N V 25 N"R1" +T1 0 150 200 200 2700 40 N I 25 N"0" +DS -463 227 -463 -227 50 21 +DS -463 -227 463 -227 50 21 +DS 463 -227 463 227 50 21 +DS 463 227 -463 227 50 21 +$PAD +Sh "1" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 1 "+3.3V" +Po -304 0 +$EndPAD +$PAD +Sh "2" R 217 354 0 0 2700 +Dr 0 0 0 +At SMD N 00888000 +Ne 9 "N-000008" +Po 304 0 +$EndPAD +$EndMODULE 0603-M +$MODULE 0603-M +Po 41000 29700 900 15 4C7EC74B 4CA818DA ~~ +Li 0603-M +Sc 4CA818DA +AR /4CA8189A +Op 0 0 0 +At SMD +T0 0 -150 200 200 900 40 N V 25 N"R2" +T1 0 150 200 200 900 40 N I 25 N"0" +DS -463 227 -463 -227 50 21 +DS -463 -227 463 -227 50 21 +DS 463 -227 463 227 50 21 +DS 463 227 -463 227 50 21 +$PAD +Sh "1" R 217 354 0 0 900 +Dr 0 0 0 +At SMD N 00888000 +Ne 1 "+3.3V" +Po -304 0 +$EndPAD +$PAD +Sh "2" R 217 354 0 0 900 +Dr 0 0 0 +At SMD N 00888000 +Ne 7 "/VDD" +Po 304 0 +$EndPAD +$EndMODULE 0603-M +$DRAWSEGMENT +Po 0 45300 26600 45300 32500 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 40200 26600 45300 26600 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 40200 32500 40200 26600 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 45100 32700 45100 37300 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 45300 32500 45100 32700 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 40400 32700 40200 32500 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 40400 37300 40400 32700 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$DRAWSEGMENT +Po 0 45100 37300 40400 37300 50 +De 28 0 900 0 0 +$EndDRAWSEGMENT +$TRACK +Po 0 44500 29600 44800 29600 100 -1 +De 15 0 0 0 0 +Po 0 44800 29600 44800 29900 100 -1 +De 15 0 0 0 0 +Po 0 41000 30696 41000 30004 100 -1 +De 15 0 1 0 C00 +Po 0 43995 29023 43995 29405 100 -1 +De 15 0 1 0 800 +Po 0 43396 30004 41000 30004 100 -1 +De 15 0 1 0 400 +Po 0 43995 29405 43396 30004 100 -1 +De 15 0 1 0 0 +Po 0 41693 29023 41693 28707 100 -1 +De 15 0 2 0 800 +Po 0 43300 27800 43300 27500 100 -1 +De 15 0 2 0 400 +Po 0 42700 28400 43300 27800 100 -1 +De 15 0 2 0 0 +Po 0 42000 28400 42700 28400 100 -1 +De 15 0 2 0 0 +Po 0 41693 28707 42000 28400 100 -1 +De 15 0 2 0 0 +Po 0 41949 29023 41949 28751 100 -1 +De 15 0 3 0 800 +Po 0 44300 27600 44300 27500 100 -1 +De 15 0 3 0 400 +Po 0 43300 28600 44300 27600 100 -1 +De 15 0 3 0 0 +Po 0 42100 28600 43300 28600 100 -1 +De 15 0 3 0 0 +Po 0 41949 28751 42100 28600 100 -1 +De 15 0 3 0 0 +Po 0 42357 35169 42357 33957 100 -1 +De 15 0 4 0 800 +Po 0 41437 32263 41437 31777 100 -1 +De 15 0 4 0 400 +Po 0 41400 32300 41437 32263 100 -1 +De 15 0 4 0 0 +Po 0 41400 33400 41400 32300 100 -1 +De 15 0 4 0 0 +Po 0 41700 33700 41400 33400 100 -1 +De 15 0 4 0 0 +Po 0 42100 33700 41700 33700 100 -1 +De 15 0 4 0 0 +Po 0 42357 33957 42100 33700 100 -1 +De 15 0 4 0 0 +Po 0 43143 35169 43143 34043 100 -1 +De 15 0 5 0 800 +Po 0 41693 32307 41693 31777 100 -1 +De 15 0 5 0 400 +Po 0 41600 32400 41693 32307 100 -1 +De 15 0 5 0 0 +Po 0 41600 33300 41600 32400 100 -1 +De 15 0 5 0 0 +Po 0 41800 33500 41600 33300 100 -1 +De 15 0 5 0 0 +Po 0 42600 33500 41800 33500 100 -1 +De 15 0 5 0 0 +Po 0 43143 34043 42600 33500 100 -1 +De 15 0 5 0 0 +Po 0 44600 33204 44200 33204 100 -1 +De 15 0 6 0 800 +Po 0 44127 35366 44127 33573 100 -1 +De 15 0 6 0 800 +Po 0 44096 32596 43800 32596 100 -1 +De 15 0 6 0 400 +Po 0 44200 32700 44096 32596 100 -1 +De 15 0 6 0 0 +Po 0 44200 33500 44200 33204 100 -1 +De 15 0 6 0 0 +Po 0 44200 33204 44200 32700 100 -1 +De 15 0 6 0 0 +Po 0 44127 33573 44200 33500 100 -1 +De 15 0 6 0 0 +Po 0 41000 29396 41000 28800 100 -1 +De 15 0 7 0 800 +Po 0 42300 27800 42300 27500 100 -1 +De 15 0 7 0 400 +Po 0 41900 28200 42300 27800 100 -1 +De 15 0 7 0 0 +Po 0 41600 28200 41900 28200 100 -1 +De 15 0 7 0 0 +Po 0 41000 28800 41600 28200 100 -1 +De 15 0 7 0 0 +Po 0 41373 35366 41373 33873 100 -1 +De 15 0 8 0 800 +Po 0 40600 31800 40600 31000 100 -1 +De 15 0 8 0 0 +Po 0 41100 32300 40600 31800 100 -1 +De 15 0 8 0 0 +Po 0 41100 33600 41100 32300 100 -1 +De 15 0 8 0 0 +Po 0 41373 33873 41100 33600 100 -1 +De 15 0 8 0 0 +Po 0 42205 31777 42205 31000 100 -1 +De 15 0 8 0 800 +Po 0 42973 31777 42973 31000 100 -1 +De 15 0 8 0 800 +Po 0 43995 31777 43995 31000 100 -1 +De 15 0 8 0 800 +Po 0 40600 31000 42205 31000 100 -1 +De 15 0 8 0 0 +Po 0 42205 31000 42973 31000 100 -1 +De 15 0 8 0 0 +Po 0 42973 31000 43995 31000 100 -1 +De 15 0 8 0 0 +Po 0 43995 31000 44100 31000 100 -1 +De 15 0 8 0 0 +Po 0 44251 31151 44251 31777 100 -1 +De 15 0 8 0 400 +Po 0 44100 31000 44251 31151 100 -1 +De 15 0 8 0 0 +Po 0 40600 29700 43000 29700 100 -1 +De 15 0 8 0 0 +Po 0 43227 29473 43227 29023 100 -1 +De 15 0 8 0 400 +Po 0 43000 29700 43227 29473 100 -1 +De 15 0 8 0 0 +Po 0 41300 28100 41300 27500 100 -1 +De 15 0 8 0 400 +Po 0 40600 28800 41300 28100 100 -1 +De 15 0 8 0 0 +Po 0 40600 31000 40600 29700 100 -1 +De 15 0 8 0 0 +Po 0 40600 29700 40600 28800 100 -1 +De 15 0 8 0 0 +Po 0 42400 33204 42400 32400 100 -1 +De 15 0 8 0 0 +Po 0 42205 32205 42205 31777 100 -1 +De 15 0 8 0 400 +Po 0 42400 32400 42205 32205 100 -1 +De 15 0 8 0 0 +Po 0 42000 33204 42400 33204 100 -1 +De 15 0 8 0 800 +Po 0 42400 33204 42800 33204 100 -1 +De 15 0 8 0 400 +Po 0 43300 33204 42800 33204 100 -1 +De 15 0 8 0 C00 +Po 0 43800 33204 43300 33204 100 -1 +De 15 0 8 0 C00 +Po 0 41949 31777 41949 32249 100 -1 +De 15 0 9 0 800 +Po 0 42000 32300 42000 32596 100 -1 +De 15 0 9 0 400 +Po 0 41949 32249 42000 32300 100 -1 +De 15 0 9 0 0 +Po 0 41949 31777 41949 31449 100 -1 +De 15 0 9 0 800 +Po 0 41804 31304 41000 31304 100 -1 +De 15 0 9 0 400 +Po 0 41949 31449 41804 31304 100 -1 +De 15 0 9 0 0 +Po 0 43300 32596 43300 32300 100 -1 +De 15 0 10 0 800 +Po 0 42800 32596 42800 32300 100 -1 +De 15 0 10 0 800 +Po 0 44600 32596 44596 32596 100 -1 +De 15 0 10 0 800 +Po 0 42717 32217 42717 31777 100 -1 +De 15 0 10 0 400 +Po 0 42800 32300 42717 32217 100 -1 +De 15 0 10 0 0 +Po 0 44300 32300 43300 32300 100 -1 +De 15 0 10 0 0 +Po 0 43300 32300 42800 32300 100 -1 +De 15 0 10 0 0 +Po 0 44596 32596 44300 32300 100 -1 +De 15 0 10 0 0 +$EndTRACK +$ZONE +$EndZONE +$EndBOARD diff --git a/hw/c2usb.cmp b/hw/c2usb.cmp new file mode 100644 index 0000000..699f78f --- /dev/null +++ b/hw/c2usb.cmp @@ -0,0 +1,94 @@ +Cmp-Mod V01 Created by CvPCB (2010-08-11 BZR 2448)-unstable date = Sun Oct 3 02:47:01 2010 + +BeginCmp +TimeStamp = /4CA7FEE6; +Reference = C1; +ValeurCmp = 10nF; +IdModule = 0603-M; +EndCmp + +BeginCmp +TimeStamp = /4CA7FEE4; +Reference = C2; +ValeurCmp = 100nF; +IdModule = 0603-M; +EndCmp + +BeginCmp +TimeStamp = /4CA7FEE3; +Reference = C3; +ValeurCmp = 4.7uF; +IdModule = 0603-M; +EndCmp + +BeginCmp +TimeStamp = /4CA7FD5D; +Reference = C4; +ValeurCmp = 100nF; +IdModule = 0603-M; +EndCmp + +BeginCmp +TimeStamp = /4CA7FEF5; +Reference = FB1; +ValeurCmp = FILTER; +IdModule = 0603-M; +EndCmp + +BeginCmp +TimeStamp = /4CA7F4A0; +Reference = P1; +ValeurCmp = CONN_4; +IdModule = USB-A-PCB; +EndCmp + +BeginCmp +TimeStamp = /4CA81226; +Reference = P2; +ValeurCmp = CONN_1; +IdModule = PAD_120x60; +EndCmp + +BeginCmp +TimeStamp = /4CA81229; +Reference = P3; +ValeurCmp = CONN_1; +IdModule = PAD_120x60; +EndCmp + +BeginCmp +TimeStamp = /4CA8122D; +Reference = P4; +ValeurCmp = CONN_1; +IdModule = PAD_120x60; +EndCmp + +BeginCmp +TimeStamp = /4CA8122B; +Reference = P5; +ValeurCmp = CONN_1; +IdModule = PAD_120x60; +EndCmp + +BeginCmp +TimeStamp = /4CA8161C; +Reference = R1; +ValeurCmp = 0; +IdModule = 0603-M; +EndCmp + +BeginCmp +TimeStamp = /4CA8189A; +Reference = R2; +ValeurCmp = 0; +IdModule = 0603-M; +EndCmp + +BeginCmp +TimeStamp = /4CA7FC36; +Reference = U1; +ValeurCmp = FT232RL; +IdModule = SSOP-28; +EndCmp + +EndListe diff --git a/hw/c2usb.pro b/hw/c2usb.pro new file mode 100644 index 0000000..e80e3df --- /dev/null +++ b/hw/c2usb.pro @@ -0,0 +1,77 @@ +update=Sun Oct 3 03:05:39 2010 +version=1 +last_client=pcbnew +[cvpcb] +version=1 +NetITyp=0 +NetIExt=.net +PkgIExt=.pkg +NetDir= +LibDir= +NetType=0 +[cvpcb/libraries] +EquName1=devcms +[eeschema] +version=1 +LibDir= +NetFmt=1 +HPGLSpd=20 +HPGLDm=15 +HPGLNum=1 +offX_A4=0 +offY_A4=0 +offX_A3=0 +offY_A3=0 +offX_A2=0 +offY_A2=0 +offX_A1=0 +offY_A1=0 +offX_A0=0 +offY_A0=0 +offX_A=0 +offY_A=0 +offX_B=0 +offY_B=0 +offX_C=0 +offY_C=0 +offX_D=0 +offY_D=0 +offX_E=0 +offY_E=0 +RptD_X=0 +RptD_Y=100 +RptLab=1 +SimCmd= +UseNetN=0 +LabSize=60 +[eeschema/libraries] +LibName1=power +LibName2=device +LibName3=conn +LibName4=components/ft232rl +[general] +version=1 +[pcbnew] +version=1 +PadDrlX=320 +PadDimH=600 +PadDimV=600 +BoardThickness=630 +SgPcb45=1 +TxtPcbV=800 +TxtPcbH=600 +TxtModV=600 +TxtModH=600 +TxtModW=120 +VEgarde=100 +DrawLar=150 +EdgeLar=50 +TxtLar=120 +MSegLar=150 +LastNetListRead=c2usb.net +[pcbnew/libraries] +LibDir= +LibName1=../../kicad-libs/modules/stdpass +LibName2=modules/ssop +LibName3=modules/usb-a-pcb +LibName4=modules/pads diff --git a/hw/c2usb.sch b/hw/c2usb.sch new file mode 100644 index 0000000..b512e2c --- /dev/null +++ b/hw/c2usb.sch @@ -0,0 +1,381 @@ +EESchema Schematic File Version 2 date Sun Oct 3 02:57:05 2010 +LIBS:power +LIBS:device +LIBS:conn +LIBS:ft232rl +LIBS:c2usb-cache +EELAYER 24 0 +EELAYER END +$Descr A4 11700 8267 +Sheet 1 1 +Title "C2 USB Dongle" +Date "3 oct 2010" +Rev "0" +Comp "Werner Almesberger" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +Connection ~ 5150 2750 +Wire Wire Line + 5150 2550 5150 2750 +Wire Wire Line + 4850 4750 4850 4350 +Wire Wire Line + 9600 4250 7600 4250 +Wire Wire Line + 9600 4100 8750 4100 +Wire Wire Line + 1750 4750 1750 4950 +Connection ~ 3850 2900 +Wire Wire Line + 3850 3550 3850 2900 +Wire Wire Line + 4300 4150 4300 3950 +Wire Wire Line + 2950 2900 1700 2900 +Connection ~ 4850 2750 +Wire Wire Line + 4850 5350 4850 5150 +Connection ~ 6500 5250 +Wire Wire Line + 6500 5250 6500 5050 +Connection ~ 6200 5250 +Wire Wire Line + 6650 5250 6650 5050 +Wire Wire Line + 8950 4900 8950 4700 +Wire Wire Line + 8950 4700 9600 4700 +Wire Wire Line + 5400 3350 2450 3350 +Wire Wire Line + 2450 3350 2450 3100 +Wire Wire Line + 2450 3100 1700 3100 +Wire Wire Line + 5400 2750 4850 2750 +Wire Wire Line + 1700 3000 2550 3000 +Wire Wire Line + 2550 3000 2550 3200 +Wire Wire Line + 2550 3200 5400 3200 +Wire Wire Line + 1700 3200 2250 3200 +Wire Wire Line + 2250 3200 2250 3400 +Wire Wire Line + 6200 5450 6200 5050 +Wire Wire Line + 6350 5050 6350 5250 +Connection ~ 6350 5250 +Wire Wire Line + 6200 5250 6800 5250 +Wire Wire Line + 6800 5250 6800 5050 +Connection ~ 6650 5250 +Wire Wire Line + 8050 3900 8050 4100 +Wire Wire Line + 2750 3550 2750 2900 +Connection ~ 2750 2900 +Wire Wire Line + 2750 4150 2750 3950 +Wire Wire Line + 4300 2900 4300 3550 +Connection ~ 4300 2900 +Wire Wire Line + 3850 3950 3850 4150 +Wire Wire Line + 4550 2900 4550 2700 +Connection ~ 4550 2900 +Wire Wire Line + 3650 2900 5400 2900 +Wire Wire Line + 8050 4100 8250 4100 +Wire Wire Line + 9600 4550 7600 4550 +Wire Wire Line + 4850 2550 4850 3850 +Wire Wire Line + 5400 4550 4850 4550 +Connection ~ 4850 4550 +$Comp +L PWR_FLAG #FLG01 +U 1 1 4CA81B0E +P 5150 2550 +F 0 "#FLG01" H 5150 2820 30 0001 C CNN +F 1 "PWR_FLAG" H 5150 2780 30 0000 C CNN + 1 5150 2550 + 1 0 0 -1 +$EndComp +NoConn ~ 7600 4400 +$Comp +L R R2 +U 1 1 4CA8189A +P 8500 4100 +F 0 "R2" V 8580 4100 50 0000 C CNN +F 1 "0" V 8500 4100 50 0000 C CNN +F 2 "0603" H 8500 4100 60 0001 C CNN + 1 8500 4100 + 0 -1 -1 0 +$EndComp +$Comp +L R R1 +U 1 1 4CA8161C +P 4850 4100 +F 0 "R1" V 4930 4100 50 0000 C CNN +F 1 "0" V 4850 4100 50 0000 C CNN +F 2 "0603" H 4850 4100 60 0001 C CNN + 1 4850 4100 + 1 0 0 -1 +$EndComp +$Comp +L CONN_1 P4 +U 1 1 4CA8122D +P 9750 4250 +F 0 "P4" H 9830 4250 40 0000 L CNN +F 1 "CONN_1" H 9750 4305 30 0001 C CNN +F 2 "PAD_120x60" H 9750 4250 60 0001 C CNN + 1 9750 4250 + 1 0 0 -1 +$EndComp +$Comp +L CONN_1 P5 +U 1 1 4CA8122B +P 9750 4700 +F 0 "P5" H 9830 4700 40 0000 L CNN +F 1 "CONN_1" H 9750 4755 30 0001 C CNN +F 2 "PAD_120x60" H 9750 4700 60 0001 C CNN + 1 9750 4700 + 1 0 0 -1 +$EndComp +$Comp +L CONN_1 P3 +U 1 1 4CA81229 +P 9750 4550 +F 0 "P3" H 9830 4550 40 0000 L CNN +F 1 "CONN_1" H 9750 4605 30 0001 C CNN +F 2 "PAD_120x60" H 9750 4550 60 0001 C CNN + 1 9750 4550 + 1 0 0 -1 +$EndComp +$Comp +L CONN_1 P2 +U 1 1 4CA81226 +P 9750 4100 +F 0 "P2" H 9830 4100 40 0000 L CNN +F 1 "CONN_1" H 9750 4155 30 0001 C CNN +F 2 "PAD_120x60" H 9750 4100 60 0001 C CNN + 1 9750 4100 + 1 0 0 -1 +$EndComp +NoConn ~ 7600 3950 +NoConn ~ 7600 4100 +$Comp +L PWR_FLAG #FLG02 +U 1 1 4CA80111 +P 4550 2700 +F 0 "#FLG02" H 4550 2970 30 0001 C CNN +F 1 "PWR_FLAG" H 4550 2930 30 0000 C CNN + 1 4550 2700 + 1 0 0 -1 +$EndComp +$Comp +L PWR_FLAG #FLG03 +U 1 1 4CA8010F +P 1750 4750 +F 0 "#FLG03" H 1750 5020 30 0001 C CNN +F 1 "PWR_FLAG" H 1750 4980 30 0000 C CNN + 1 1750 4750 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR04 +U 1 1 4CA800F3 +P 1750 4950 +F 0 "#PWR04" H 1750 4950 30 0001 C CNN +F 1 "GND" H 1750 4880 30 0001 C CNN + 1 1750 4950 + 1 0 0 -1 +$EndComp +NoConn ~ 7600 3800 +NoConn ~ 7600 3650 +NoConn ~ 7600 3500 +NoConn ~ 7600 3350 +NoConn ~ 7600 3200 +NoConn ~ 7600 3050 +NoConn ~ 7600 2900 +NoConn ~ 7600 2750 +$Comp +L GND #PWR05 +U 1 1 4CA7FF5A +P 3850 4150 +F 0 "#PWR05" H 3850 4150 30 0001 C CNN +F 1 "GND" H 3850 4080 30 0001 C CNN + 1 3850 4150 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR06 +U 1 1 4CA7FF59 +P 4300 4150 +F 0 "#PWR06" H 4300 4150 30 0001 C CNN +F 1 "GND" H 4300 4080 30 0001 C CNN + 1 4300 4150 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR07 +U 1 1 4CA7FF57 +P 2750 4150 +F 0 "#PWR07" H 2750 4150 30 0001 C CNN +F 1 "GND" H 2750 4080 30 0001 C CNN + 1 2750 4150 + 1 0 0 -1 +$EndComp +$Comp +L FILTER FB1 +U 1 1 4CA7FEF5 +P 3300 2900 +F 0 "FB1" H 3300 3050 60 0000 C CNN +F 1 "FILTER" H 3300 2800 60 0000 C CNN +F 2 "0603" H 3300 2900 60 0001 C CNN + 1 3300 2900 + 1 0 0 -1 +$EndComp +$Comp +L C C1 +U 1 1 4CA7FEE6 +P 2750 3750 +F 0 "C1" H 2800 3850 50 0000 L CNN +F 1 "10nF" H 2800 3650 50 0000 L CNN +F 2 "0603" H 2750 3750 60 0001 C CNN + 1 2750 3750 + 1 0 0 -1 +$EndComp +$Comp +L C C2 +U 1 1 4CA7FEE4 +P 3850 3750 +F 0 "C2" H 3900 3850 50 0000 L CNN +F 1 "100nF" H 3900 3650 50 0000 L CNN +F 2 "0603" H 3850 3750 60 0001 C CNN + 1 3850 3750 + 1 0 0 -1 +$EndComp +$Comp +L C C3 +U 1 1 4CA7FEE3 +P 4300 3750 +F 0 "C3" H 4350 3850 50 0000 L CNN +F 1 "4.7uF" H 4350 3650 50 0000 L CNN + 1 4300 3750 + 1 0 0 -1 +$EndComp +$Comp +L +3.3V #PWR08 +U 1 1 4CA7FDFF +P 8050 3900 +F 0 "#PWR08" H 8050 3860 30 0001 C CNN +F 1 "+3.3V" H 8050 4010 30 0000 C CNN + 1 8050 3900 + 1 0 0 -1 +$EndComp +$Comp +L +3.3V #PWR09 +U 1 1 4CA7FDEC +P 4850 2550 +F 0 "#PWR09" H 4850 2510 30 0001 C CNN +F 1 "+3.3V" H 4850 2660 30 0000 C CNN + 1 4850 2550 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR010 +U 1 1 4CA7FD71 +P 6200 5450 +F 0 "#PWR010" H 6200 5450 30 0001 C CNN +F 1 "GND" H 6200 5380 30 0001 C CNN + 1 6200 5450 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR011 +U 1 1 4CA7FD69 +P 4850 5350 +F 0 "#PWR011" H 4850 5350 30 0001 C CNN +F 1 "GND" H 4850 5280 30 0001 C CNN + 1 4850 5350 + 1 0 0 -1 +$EndComp +$Comp +L C C4 +U 1 1 4CA7FD5D +P 4850 4950 +F 0 "C4" H 4900 5050 50 0000 L CNN +F 1 "100nF" H 4900 4850 50 0000 L CNN +F 2 "0603" H 4850 4950 60 0001 C CNN + 1 4850 4950 + 1 0 0 -1 +$EndComp +NoConn ~ 5400 3650 +NoConn ~ 5400 4100 +NoConn ~ 5400 3950 +$Comp +L GND #PWR012 +U 1 1 4CA7FCE5 +P 8950 4900 +F 0 "#PWR012" H 8950 4900 30 0001 C CNN +F 1 "GND" H 8950 4830 30 0001 C CNN + 1 8950 4900 + 1 0 0 -1 +$EndComp +$Comp +L GND #PWR013 +U 1 1 4CA7FCD4 +P 2250 3400 +F 0 "#PWR013" H 2250 3400 30 0001 C CNN +F 1 "GND" H 2250 3330 30 0001 C CNN + 1 2250 3400 + 1 0 0 -1 +$EndComp +$Comp +L FT232RL U1 +U 1 1 4CA7FC36 +P 6500 3650 +F 0 "U1" H 5750 4850 60 0000 C CNN +F 1 "FT232RL" H 6500 3650 60 0000 C CNN +F 2 "SSOP-28" H 6500 3650 60 0001 C CNN + 1 6500 3650 + 1 0 0 -1 +$EndComp +Text Label 9150 4700 0 60 ~ 0 +GND +Text Label 9150 4550 0 60 ~ 0 +C2D +Text Label 9150 4250 0 60 ~ 0 +C2CK +Text Label 9150 4100 0 60 ~ 0 +VDD +Text Label 1900 3200 0 60 ~ 0 +GND +Text Label 1900 3100 0 60 ~ 0 +D+ +Text Label 1900 3000 0 60 ~ 0 +D- +Text Label 1900 2900 0 60 ~ 0 +VBUS +$Comp +L CONN_4 P1 +U 1 1 4CA7F4A0 +P 1350 3050 +F 0 "P1" V 1300 3050 50 0000 C CNN +F 1 "CONN_4" V 1400 3050 50 0000 C CNN +F 2 "USB-A-PCB" H 1350 3050 60 0001 C CNN + 1 1350 3050 + -1 0 0 -1 +$EndComp +$EndSCHEMATC diff --git a/hw/components/ft232rl.lib b/hw/components/ft232rl.lib new file mode 100644 index 0000000..530690c --- /dev/null +++ b/hw/components/ft232rl.lib @@ -0,0 +1,39 @@ +EESchema-LIBRARY Version 2.3 Date: Sun Oct 3 00:35:58 2010 +# +# FT232RL +# +DEF FT232RL U 0 40 Y Y 1 F N +F0 "U" -750 1200 60 H V C CNN +F1 "FT232RL" 0 0 60 H V C CNN +DRAW +S -800 1100 800 -1100 0 1 0 N +X TXD 1 1100 900 300 L 50 50 1 1 O +X nDTR 2 1100 300 300 L 50 50 1 1 O +X nRTS 3 1100 600 300 L 50 50 1 1 O +X VCCIO 4 -1100 900 300 R 50 50 1 1 W +X RXD 5 1100 750 300 L 50 50 1 1 I +X nRI 6 1100 -150 300 L 50 50 1 1 I +X GND 7 -150 -1400 300 U 50 50 1 1 W +X nDRS 9 1100 150 300 L 50 50 1 1 I +X nDCD 10 1100 0 300 L 50 50 1 1 I +X VCC 20 -1100 750 300 R 50 50 1 1 W +X nCTS 11 1100 450 300 L 50 50 1 1 I +X GND 21 150 -1400 300 U 50 50 1 1 W +X CBUS4 12 1100 -900 300 L 50 50 1 1 B +X CBUS1 22 1100 -450 300 L 50 50 1 1 B +X CBUS2 13 1100 -600 300 L 50 50 1 1 B +X CBUS0 23 1100 -300 300 L 50 50 1 1 B +X CBUS3 14 1100 -750 300 L 50 50 1 1 B +X USBDP 15 -1100 300 300 R 50 50 1 1 B +X AGND 25 -300 -1400 300 U 50 50 1 1 W +X USBDM 16 -1100 450 300 R 50 50 1 1 B +X TEST 26 300 -1400 300 U 50 50 1 1 I +X 3V3OUT 17 -1100 -900 300 R 50 50 1 1 w +X OSCI 27 -1100 -300 300 R 50 50 1 1 I +X GND 18 0 -1400 300 U 50 50 1 1 W +X OSCO 28 -1100 -450 300 R 50 50 1 1 O +X nRESET 19 -1100 0 300 R 50 50 1 1 I +ENDDRAW +ENDDEF +# +#End Library diff --git a/hw/modules/INFO b/hw/modules/INFO new file mode 100644 index 0000000..4808094 --- /dev/null +++ b/hw/modules/INFO @@ -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 diff --git a/hw/modules/Makefile b/hw/modules/Makefile new file mode 100644 index 0000000..2a8c16d --- /dev/null +++ b/hw/modules/Makefile @@ -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 $< $@ diff --git a/hw/modules/pads.fpd b/hw/modules/pads.fpd new file mode 100644 index 0000000..1310218 --- /dev/null +++ b/hw/modules/pads.fpd @@ -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 @ diff --git a/hw/modules/ssop.fpd b/hw/modules/ssop.fpd new file mode 100644 index 0000000..769a11c --- /dev/null +++ b/hw/modules/ssop.fpd @@ -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 diff --git a/hw/modules/usb-a-pcb.fpd b/hw/modules/usb-a-pcb.fpd new file mode 100644 index 0000000..5fd1b03 --- /dev/null +++ b/hw/modules/usb-a-pcb.fpd @@ -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