/* MACHINE-GENERATED ! */

frame pad {
	__0: vec @(px/2, py/2)
	__1: vec @(-px/2, -py/2)
	pad "$n" . __0
}

frame top {
	set x = e*(N/4-i+0.5)

	set y = cy

	set n = i+N/2

	__0: vec @(x, y)
	frame pad .
}

frame bottom {
	set x = e*(i-N/4-0.5)

	set y = -cy

	set n = i

	__0: vec @(x, -cy)
	frame pad .
}

frame pins {
	loop i = 1, N/2

	frame bottom @
	frame top @
}

frame outline {
	__0: vec @(ox/2, oy/2)
	__1: vec @(ox/2, -oy/2)
	line __0 . w
	__2: vec @(-ox/2, oy/2)
	__3: vec @(-ox/2, -oy/2)
	line . __2 w
}

package "SSOP8-P-0.50A"
unit mm

table
    { N, ox, oy, cy, px, py, e }
    { 8, 2mm, 2.3mm, (2.3mm+3.1mm)/4, 0.2mm, (3.1mm-2.3mm)/2+0.4mm, 0.5mm }

set w = 5mil

frame outline @
frame pins @
measy outline.__3 >> outline.__2 1.2mm
measy pad.__0 -> pad.__1 1mm
measy pad.__1 >> pad.__0 2mm
measx outline.__2 >> outline.__0 1.7mm
measx top.__0 -> top.__0 1mm
measx pad.__1 -> pad.__0 -0.5mm
measy pad.__1 -> pad.__0 -3mm
