-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathissi_32l_450mil_sop.py
49 lines (39 loc) · 1.45 KB
/
issi_32l_450mil_sop.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from myelin_kicad_mod import *
X = Module(
identifier="issi_32l_450mil_sop",
description="ISSI 32-pin 450mil SOP - e.g. for IS62C1024AL-QLI"
)
SOLDERING_MARGIN_OUT = 1 # extend everything out for ease of soldering
SOLDERING_MARGIN_IN = 0 # extend underneath the chip a bit to soak up solder
# 32 pins
N = 32
# plastic chip dimensions
D = 0.445 * INCH # width (E1)
E = 0.807 * INCH # height (D)
# including leads: 0.04" (1mm) extra
D1 = 0.556 * INCH # width (E)
# pin 1 is at the center of the top edge of the chip, and numbering proceeds counter clockwise
# pin 1 ID is a bubble below pin 1
PIN_SPACING = 1.27
PIN_WIDTH = 0.51
PAD_WIDTH = 0.7
# need at least 21 mil / 0.5334 mm between pads so we can get a trace through, so max pad width = 0.7366
# draw outline
X.add(Line(-D/2, -E/2 + 1, -D/2, E/2)) # left
X.add(Line(-D/2, E/2, D/2, E/2)) # bottom
X.add(Line(D/2, E/2, D/2, -E/2)) # right
X.add(Line(D/2, -E/2, -D/2 + 1, -E/2)) # top
X.add(Line(-D/2 + 1, -E/2, -D/2, -E/2 + 1)) # chopped corner
# draw pin 1 ID bubble
#X.add(Circle(0, -E/2 + 1.5, 0.5))
# pad width and height
w = (D1 - D) / 2 + SOLDERING_MARGIN_IN + SOLDERING_MARGIN_OUT
h = PAD_WIDTH
x_center = ((D + D1) / 2 + SOLDERING_MARGIN_OUT) / 2
### down the left edge and up the right edge
for pin in range(N/2):
# left
X.add(Pad(name=pin+1, x=-x_center, y=(pin - N/4 + 0.5) * PIN_SPACING, w=w, h=h))
# right
X.add(Pad(name=pin+N/2+1, x=x_center, y=(N/4 - pin - 0.5) * PIN_SPACING, w=w, h=h))
X.save()