// file : /home2/designs/boards/BVDC_24/Work/Geometries/sam_2x25
//
// date : Monday     2 JULY 2006  12:00:00    Initial draft
//
//
//
//     50 Pin Header Connector
//
//     50  25 mil Square Pins  in 2 rows Spaced 0.1" x 0.1"
//
//     This connector is used on the BVDC_24 card.
//
//
//     Design of the pad stack
//
//         pin spacing if 2.54mm
//         pin size is 25 mil square   0.635mm square
//         pin requires about a 38 mil hole  1.00mm hole
//         2.54 - 1.00 = 1.54      1.54 divided by 5 is 0.31mm
//         so have about 0.31mm of Cu ring,
//         then about 0.31 of space and then about a 0.31mm trace
//         this implies a pad diameter of about  1.62mm
//
//     Actual numbers used in the pad stack
//
//         hole diameter       1.00 mm    39.4 mils
//         pad land diameter   1.64 mm    64.6 mils
//            ==> ring width   0.32 mm    12.6 mils
//         plane relief        2.24 mm    88.2 mils
//            ==> air gap      0.30 mm    11.8 mils
//
//         With the 1.64 mm pad land diameter you can route a
//         0.30 mm trace that has 0.30 mm spaces on each side
//




$abort_enable = @false;
$$lock_windows(@on) ;
$$snap_diagonal(@off) ;
$$snap_orthogonal(@off) ;


//----------------------------------------------------------------------------

$$create_pin("term_thd_sam_2x25", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$term_thd_sam_2x25']);

$$point_mode(@vertex);

$$attribute( "TERMINAL_THRUHOLE_DEFINITION", "default");

$$attribute( "TERMINAL_DRILL_SIZE", "", , @scale , , [1.0, 0.0]);

$$circle( "PAD",         0.0, 0.0,  1.64,  0.0);

$$circle( "SIGNAL",      0.0, 0.0,  1.64,  0.0);

$$circle( "SOLDER_MASK", 0.0, 0.0,  1.64,  0.0);

$$circle( "POWER",       0.0, 0.0,  2.24,  0.0);


//----------------------------------------------------------------------------



$$create_component("sam_2x25", @replace);

$$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'CO$sam_2x25']);

$$point_mode(@vertex);


$$attribute( "COMPONENT_LAYOUT_SURFACE", "both");


$$attribute( "COMPONENT_HEIGHT", "", , @scale , , [10.0, 0.0]);

$$attribute( "COMPONENT_OUTLINE_OVERHANG", "no");


$$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", , @scale , , [-31.81, -2.60,   31.81, -2.60,   31.81, 2.60,   -31.81, 2.60] );



//  Draw the Skilscreen    4 lines  1mm outside of the component

$$path( "SILKSCREEN", 0.254 , , [-31.90,  2.70,     31.90,  2.70] );
$$path( "SILKSCREEN", 0.254 , , [-31.90, -2.70,     31.90, -2.70] );

$$path( "SILKSCREEN", 0.254 , , [-31.90,  2.70,    -31.90, -2.70] );
$$path( "SILKSCREEN", 0.254 , , [ 31.90,  2.70,     31.90, -2.70] );

$$text( "SILKSCREEN_2", "^$ref", 0.0, 3.00, 3.0, @BC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 );

// // $$text( "BREAKOUT", "^$ref", 0.0, 3.00, 3.0, @BC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 );



//  The component pins

$$attribute( "COMPONENT_PIN_DEFINITION",     "1", , @scale , , [ 30.48,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "1, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",     "2", , @scale , , [ 30.48, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "2, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",     "3", , @scale , , [ 27.94,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "3, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",     "4", , @scale , , [ 27.94, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "4, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",     "5", , @scale , , [ 25.40,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "5, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",     "6", , @scale , , [ 25.40, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "6, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",     "7", , @scale , , [ 22.86,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "7, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",     "8", , @scale , , [ 22.86, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "8, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",     "9", , @scale , , [ 20.32,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE",  "9, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "10", , @scale , , [ 20.32, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "10, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "11", , @scale , , [ 17.78,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "11, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "12", , @scale , , [ 17.78, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "12, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "13", , @scale , , [ 15.24,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "13, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "14", , @scale , , [ 15.24, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "14, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "15", , @scale , , [ 12.70,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "15, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "16", , @scale , , [ 12.70, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "16, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "17", , @scale , , [ 10.16,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "17, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "18", , @scale , , [ 10.16, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "18, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "19", , @scale , , [  7.62,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "19, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "20", , @scale , , [  7.62, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "20, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "21", , @scale , , [  5.08,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "21, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "22", , @scale , , [  5.08, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "22, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "23", , @scale , , [  2.54,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "23, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "24", , @scale , , [  2.54, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "24, term_thd_sam_2x25");






$$attribute( "COMPONENT_PIN_DEFINITION",    "25", , @scale , , [  0.00,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "25, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "26", , @scale , , [  0.00, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "26, term_thd_sam_2x25");






$$attribute( "COMPONENT_PIN_DEFINITION",    "27", , @scale , , [ -2.54,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "27, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "28", , @scale , , [ -2.54, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "28, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "29", , @scale , , [ -5.08,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "29, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "30", , @scale , , [ -5.08, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "30, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "31", , @scale , , [ -7.62,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "31, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "32", , @scale , , [ -7.62, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "32, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "33", , @scale , , [-10.16,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "33, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "34", , @scale , , [-10.16, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "34, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "35", , @scale , , [-12.70,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "35, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "36", , @scale , , [-12.70, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "36, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "37", , @scale , , [-15.24,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "37, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "38", , @scale , , [-15.24, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "38, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "39", , @scale , , [-17.78,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "39, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "40", , @scale , , [-17.78, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "40, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "41", , @scale , , [-20.32,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "41, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "42", , @scale , , [-20.32, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "42, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "43", , @scale , , [-22.86,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "43, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "44", , @scale , , [-22.86, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "44, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "45", , @scale , , [-25.40,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "45, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "46", , @scale , , [-25.40, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "46, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "47", , @scale , , [-27.94,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "47, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "48", , @scale , , [-27.94, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "48, term_thd_sam_2x25");



$$attribute( "COMPONENT_PIN_DEFINITION",    "49", , @scale , , [-30.48,  1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "49, term_thd_sam_2x25");

$$attribute( "COMPONENT_PIN_DEFINITION",    "50", , @scale , , [-30.48, -1.27]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "50, term_thd_sam_2x25");

