# footgen source file # Generates a TQFP48 package. # Entered by swm include("landutils.inc") include("constraints.inc") #define pads pad_type = "pad" pad_shape = "rectangular" pitch_x = pitch_y = 0.5 mm define("padgap_x", 6.8mm) # package is a square define("padgap_y", 6.8mm) # make columns pad_height = 0.30mm pad_width = 1.6mm array( -(padgap_x+pad_width)/2, 0, {}, {1:12} ) array( (padgap_x+pad_width)/2, 0, {}, {36:25} ) # make rows - pads are rotated 90 degrees, swap height and width mydefine("tmp", pad_width) pad_width = pad_height pad_height = tmp array( 0, (padgap_y+pad_height)/2, {48:37}, {} ) array( 0, -(padgap_y+pad_height)/2, {13:24}, {} ) # make a silkbox mydefine("height", padgap_y + 2*pad_height + 1mm) mydefine("width", padgap_x + 2*pad_height + 1mm) silkbox(0, 0, width, height) # add a tick to upper left silksegment(-width/2, height/2, -(width/2 + 1mm), height/2 +1mm) mywriteland("TQFP48")