Date:2012-05-30 06:06:37 (8 years 2 months ago)
Author:Adam Wang
Commit:4cc64c9393bc97ac349ed058389b4ff78055ef52
Message:eus.fpd: added new EUS for TI PTH04000WAH footprint

Files: modules/eus.fpd (1 diff)

Change Details

modules/eus.fpd
1/* MACHINE-GENERATED ! */
2
3frame pin_b {
4    __0: vec @(Hole/2, Hole/2)
5    __1: vec @(-Hole/2, -Hole/2)
6    hole . __0
7    __2: vec @(-ratio*Hole/2, ratio*Hole/2)
8    __3: vec @(ratio*Hole/2, -ratio*Hole/2)
9    rpad "$n" __2 .
10}
11
12frame pins_bottom {
13    set n = i+1
14
15    __0: vec @(x, 0mm)
16    frame pin_b .
17}
18
19frame pins_b {
20    set y = h/2
21
22    set x = (i-(N/2-1)/2)*Pitch
23
24    loop i = 0, N/2-1
25
26    __1: vec @(0mm, -y)
27    frame pins_bottom .
28}
29
30frame pin_t {
31    __0: vec @(Hole/2, Hole/2)
32    __1: vec @(-Hole/2, -Hole/2)
33    hole . __0
34    __2: vec @(ratio*Hole/2, -ratio*Hole/2)
35    __3: vec @(-ratio*Hole/2, ratio*Hole/2)
36    rpad "$n" . __2
37}
38
39frame pins_top {
40    set n = N-i-2
41
42    __0: vec @(x, 0mm)
43    frame pin_t .
44}
45
46frame pins_t {
47    set y = h/2
48
49    set x = (3*i-(N/2-1)/2)*Pitch
50
51    loop i = 0, 1
52
53    __0: vec @(0mm, y)
54    frame pins_top .
55}
56
57frame marker {
58    set r = ((N/2-1)*Pitch-x)/3
59
60    __0: vec @(-x/2-Hole+w, -(H-Hole)/2)
61    __1: vec .(-r/3, 0mm)
62    circ __0 . w
63}
64
65frame outline {
66    set w = 5mil
67
68    set x = W
69
70    set y = H
71
72    __0: vec @(x/2, y/2)
73    __1: vec @(-x/2, -y/2)
74    rect . __0 w
75    frame marker @
76    frame pins_t @
77}
78
79package "EUS"
80unit mm
81
82set Pitch = 3.18mm
83
84set Hole = 1.4mm
85
86set ratio = 1.8
87
88table
89    { name, N, B, H, h, W }
90    { "SOIC", 8, 2.8mm, 19.94mm, 15.88mm, 13.59mm }
91
92frame outline @
93frame pins_b @
94measy pin_b.__1 >> pin_b.__0 -16mm
95measx pin_b.__1 -> pin_b.__0 -2mm
96measy outline.__0 >> outline.__1 -19mm
97measx outline.__1 >> outline.__0 -2mm
98measy pin_b.__3 -> pin_b.__2 7.5mm
99measy pins_bottom.__0 >> outline.__1 -5mm
100measx outline.__1 -> pins_bottom.__0 5mm
101measx pins_bottom.__0 -> pins_bottom.__0 3mm
102measy outline.__0 << pins_top.__0 -4mm
103measx outline.__0 << pins_top.__0 3mm
104meas pins_top.__0 >> pins_top.__0 3mm

Archive Download the corresponding diff file

Branches:
master



interactive