// file : /home2/designs/boards/BVDC_24/Work/Geometries/sam1x5
//
// date : Thursday     6 JULY 2006  12:00:00    Initial draft
//         Tuesday     1 AUG 2006   12:00:00    Reduce plane relief on pin #1,3
//                                                 relief = 2.5mm   0.3mm gap
//          Monday    21 AUG 2006   12:00:00    Adjust the non-HV pad size.
//       Wednesday    23 Aug 2006   12:00:00    Move the Reference Designator from
//                                              Silkscreen  to  Silkscreen_2.
//
//        Thursday    9-Oct-2007     Setup for use with the BVDC.
//
//
//
//      3 Pin  spaced  Header Connector
//
//     Three  25 mil Square Pins  Spaced 0.2"
//
//     This connector is used for the Bias Voltage
//     connections on the BVDC-24 card.




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


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

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

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

$$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_pin("term_thd_sam1x5_p2", @replace);

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

$$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,  10.16,  0.0);


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



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

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

$$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 , , [-6.10, -1.30,    6.10, -1.30,    6.10, 1.30,    -6.10, 1.30] );



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

$$path( "SILKSCREEN", 0.254 , , [-6.30,  8.00,     6.30,  8.00] );
$$path( "SILKSCREEN", 0.254 , , [-6.30, -1.50,     6.30, -1.50] );

$$path( "SILKSCREEN", 0.254 , , [-6.30,  8.00,    -6.30, -1.50] );
$$path( "SILKSCREEN", 0.254 , , [ 6.30,  8.00,     6.30, -1.50] );

$$path( "SILKSCREEN", 0.254 , , [-5.08,  8.00,    -5.08,  1.50] );
$$path( "SILKSCREEN", 0.254 , , [ 0.00,  8.00,     0.00,  1.50] );
$$path( "SILKSCREEN", 0.254 , , [ 5.08,  8.00,     5.08,  1.50] );


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

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



//  The component pins

$$attribute( "COMPONENT_PIN_DEFINITION",    "1", , @scale , , [-5.08, 0.00]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, term_thd_sam1x5_p1");

$$attribute( "COMPONENT_PIN_DEFINITION",    "2", , @scale , , [ 0.00, 0.00]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, term_thd_sam1x5_p2");

$$attribute( "COMPONENT_PIN_DEFINITION",    "3", , @scale , , [ 5.08, 0.00]);
$$attribute( "COMPONENT_PADSTACK_OVERRIDE", "3, term_thd_sam1x5_p1");

