// file: crystal_32_20.txt // // date: 20-Nov-2023 Initial Version // // // Geometry for the 3.2 mm x 2.5 mm Bare Quartz Crystal package // // An example part of this package type for the DK board // is the: TAITIEN XXCDDLNANF-52.000MHz // // This geometry is layed out with the long axis // horizontal with pin #1 in the lower left-hand // corner. // // Pin #1 Quartz Crystal // Pin #2 Ground // Pin #3 Quartz Crystal // Pin #4 Ground // $abort_enable = @false; $$lock_windows(@on) ; $$snap_diagonal(@off) ; $$snap_orthogonal(@off) ; //---------------------------------------------------------------------------- // // SMD Pad for the Bare Quartz Crystal 1.2 mm in X by 1.1 mm in Y // $$create_pin("XTAL_PAD_12_11", @replace); $$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$XTAL_PAD_12_11']); $$point_mode(@vertex); $$polygon( "PAD", , [ 0.60, 0.55, 0.60, -0.55, -0.60, -0.55, -0.60, 0.55 ]); $$polygon( "SOLDER_MASK", , [ 0.65, 0.60, 0.65, -0.60, -0.65, -0.60, -0.65, 0.60 ]); $$polygon( "PASTE_MASK", , [ 0.60, 0.55, 0.60, -0.55, -0.60, -0.55, -0.60, 0.55 ]); $$attribute( "TERMINAL_SURFACE_DEFINITION", ""); //---------------------------------------------------------------------------- $$create_component("XTAL_QUARTZ_32_25", @replace); $$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'CO$XTAL_QUARTZ_32_25']); $$point_mode(@vertex); $$attribute( "COMPONENT_LAYOUT_TYPE", "surface"); $$attribute( "COMPONENT_LAYOUT_SURFACE", "both"); $$attribute( "COMPONENT_HEIGHT", "1.3", , @scale , , [0.0, 0.0] ); $$template_line_style( @Solid ); $$initial([ 1.80, 1.45 ], , @nosnap ); $$terminal([ -1.80, 1.45 ] ); $$terminal([ -1.80, -1.45 ] ); $$terminal([ 1.80, -1.45 ] ); $$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", @mark, @scale ); // Silkscreen for the component outline with a pin #1 notch. $$path( "SILKSCREEN", 0.20 , , [ -2.05, 1.70, 2.05, 1.70 ] ); $$path( "SILKSCREEN", 0.20 , , [ -2.05, -1.70, 2.05, -1.70 ] ); $$path( "SILKSCREEN", 0.20 , , [ -2.05, 1.70, -2.05, -1.70 ] ); $$path( "SILKSCREEN", 0.20 , , [ 2.05, 1.70, 2.05, -1.70 ] ); // Silkscreen for a Pin #1 dot. $$path( "SILKSCREEN", 0.20 , , [ -3.10, -2.10, -2.50, -2.10 ] ); $$path( "SILKSCREEN", 0.20 , , [ -3.10, -2.70, -2.50, -2.70 ] ); $$path( "SILKSCREEN", 0.20 , , [ -3.10, -2.10, -3.10, -2.70 ] ); $$path( "SILKSCREEN", 0.20 , , [ -2.90, -2.10, -2.90, -2.70 ] ); $$path( "SILKSCREEN", 0.20 , , [ -2.70, -2.10, -2.70, -2.70 ] ); $$path( "SILKSCREEN", 0.20 , , [ -2.50, -2.10, -2.50, -2.70 ] ); $$text( "SILKSCREEN", "^$ref", 0.0, 2.30, 1.6, @BC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 ); // // Define the Component Pins. The long axis is // horizontal, pin #1 to the lower left. // // 4 3 // // 1 2 // $$attribute( "COMPONENT_DEFAULT_PADSTACK", "XTAL_PAD_12_11" ); $$attribute( "COMPONENT_PIN_DEFINITION", "1", , @scale , , [ -1.10, -0.80 ]); $$attribute( "COMPONENT_PIN_DEFINITION", "2", , @scale , , [ 1.10, -0.80 ]); $$attribute( "COMPONENT_PIN_DEFINITION", "3", , @scale , , [ 1.10, 0.80 ]); $$attribute( "COMPONENT_PIN_DEFINITION", "4", , @scale , , [ -1.10, 0.80 ]);