add 12MHz crystal to library

This commit is contained in:
King Kévin 2014-03-05 10:30:54 +01:00
parent 809fb69d35
commit 61ea393acb
3 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# footprint for a SMT crystal HC-49S
# manufacturer: TXC CORPORATION
# part number: 9C-12.000MAAJ-T
# datasheet: http://www.txccrystal.com/images/pdf/9c.pdf
Element["" "HC-49S" "" "TXC 9C-12.000MAAJ-T" 0 0 0 0 0 100 ""]
(
ElementLine[-6.35mm -2.4mm 6.35mm -2.4mm 0.2mm]
ElementLine[6.35mm -2.4mm 6.35mm 2.4mm 0.2mm]
ElementLine[6.35mm 2.4mm -6.35mm 2.4mm 0.2mm]
ElementLine[-6.35mm 2.4mm -6.35mm -2.4mm 0.2mm]
Pad[-3.0mm 0.0mm -6.5mm 0.0mm 2.0mm 0.4mm 0.1mm "" "1" "square"]
Pad[3.0mm 0.0mm 6.5mm 0.0mm 2.0mm 0.4mm 0.1mm "" "2" "square"]
)

View File

@ -0,0 +1,43 @@
#!/usr/bin/env ruby
# encoding: utf-8
# written for ruby 2.1.0
# generate a footprint (see script for more information)
require_relative 'element'
# global dimensions
UNIT = "mm"
SILKSCREEN = 0.2
SOLDERMASK = 0.1
CLEARANCE = 0.4
name = File.basename(__FILE__,".rb")+".fp"
File.open(name,"w") do |fp|
# put some information
fp.puts "# footprint for a SMT crystal HC-49S"
fp.puts "# manufacturer: TXC CORPORATION"
fp.puts "# part number: 9C-12.000MAAJ-T"
fp.puts "# datasheet: http://www.txccrystal.com/images/pdf/9c.pdf"
# define element
# center is center of device
fp.puts element("Element",["","HC-49S","","TXC 9C-12.000MAAJ-T",:"0",:"0",:"0",:"0",:"0",:"100",""])
fp.puts "("
# outline
bottom = 4.8/2
top = -4.8/2
left = -12.7/2
right = 12.7/2
fp.puts element("ElementLine",[left,top,right,top,SILKSCREEN])
fp.puts element("ElementLine",[right,top,right,bottom,SILKSCREEN])
fp.puts element("ElementLine",[right,bottom,left,bottom,SILKSCREEN])
fp.puts element("ElementLine",[left,bottom,left,top,SILKSCREEN])
# pads
fp.puts element("Pad",[-4.0/2-2.0/2,0,-4.0/2-5.5+2.0/2,0,2.0,CLEARANCE,SOLDERMASK,"","1","square"])
fp.puts element("Pad",[4.0/2+2.0/2,0,4.0/2+5.5-2.0/2,0,2.0,CLEARANCE,SOLDERMASK,"","2","square"])
# end of element
fp.puts ")"
end

View File

@ -0,0 +1,50 @@
v 20121203 2
P 0 100 200 100 1 0 0
{
T 150 150 5 8 0 1 0 6 1
pinnumber=1
T 150 50 5 8 0 1 0 8 1
pinseq=1
T 250 100 9 8 0 1 0 0 1
pinlabel=1
T 250 100 5 8 0 1 0 2 1
pintype=pas
}
P 500 100 700 100 1 0 1
{
T 550 150 5 8 0 1 0 0 1
pinnumber=2
T 550 50 5 8 0 1 0 2 1
pinseq=2
T 450 100 9 8 0 1 0 6 1
pinlabel=2
T 450 100 5 8 0 1 0 8 1
pintype=pas
}
B 250 0 200 200 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
T 0 500 5 10 0 0 0 0 1
device=CRYSTAL
L 200 240 200 -40 3 0 0 0 -1 -1
L 500 240 500 -40 3 0 0 0 -1 -1
T 0 300 8 10 1 1 0 0 1
refdes=Y?
T 0 900 5 10 0 0 0 0 1
description=12MHz, 18pF, 30ppm, SMT, HC49
T 400 300 8 10 1 1 0 0 1
value=12MHz
T 0 700 8 10 0 0 0 0 1
type=crystal
T 0 1100 8 10 0 0 0 0 1
manufacturer=TXC
T 0 1300 8 10 0 0 0 0 1
manufacturer-id=9C-12.000MAAJ-T
T 0 1500 8 10 0 0 0 0 1
datasheet=http://www.txccrystal.com/images/pdf/9c.pdf
T 0 1700 8 10 0 0 0 0 1
digikey-id=887-1053-2-ND
T 0 1900 8 10 0 0 0 0 1
farnell-id=1842280
T 0 2100 8 10 0 0 0 0 1
mouser-id=717-9C-12.000MAAJ-T
T 0 2300 8 10 0 0 0 0 1
footprint=crystal_20MHz_txc_9C-12.000MAAJ-T.fp