Date:2010-10-16 15:55:11 (7 years 9 months ago)
Author:Werner Almesberger
Commit:bf0de4504024980f533862728335204de5ed0118
Message:Added Yageo RC series chip resistors.

- boom/dist/dk/Makefile, boom/dist/dk/yageo-rc.catq: Yageo RC series chip
resistors
- boom/manu/yageo/Makefile, boom/manu/yageo/yageo.gen: decode RC series
chip resistors
- boom/Makefile (CHR): added yageo.chr
Files: boom/Makefile (1 diff)
boom/dist/dk/Makefile (1 diff)
boom/dist/dk/yageo-rc.catq (1 diff)
boom/manu/yageo/Makefile (1 diff)
boom/manu/yageo/yageo.gen (1 diff)

Change Details

boom/Makefile
55INV = dist/dk/db/digi-key.inv
66EQU = dist/dk/db/digi-key.equ
77DSC = dist/dk/db/digi-key.dsc
8CHR = manu/panasonic/panasonic.chr manu/stackpole/stackpole.chr
8CHR = manu/panasonic/panasonic.chr manu/stackpole/stackpole.chr \
9      manu/yageo/yageo.chr
910
1011.PHONY: all show again
1112
boom/dist/dk/Makefile
11CACHE = query.data
2EQUS = panasonic-erj stackpole-rmcf
2EQUS = panasonic-erj stackpole-rmcf yageo-rc
33
44.PHONY: all
55
boom/dist/dk/yageo-rc.catq
1YAGEO
2yageo
3Chip Resistor - Surface Mount
4Series = RC01005
5Series = RC0201
6Series = RC0402
7Series = RC0603
8Series = RC0805
9Series = RC1206
10Packaging = Cut Tape (CT)
boom/manu/yageo/Makefile
1BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
2
3yageo.chr: ../../dist/dk/db/digi-key.equ yageo.gen
4    $(BOOM) gen2chr YAGEO $^ >$@ || { rm -rf $@; exit 1; }
boom/manu/yageo/yageo.gen
1#GEN
2
3# http://www.yageo.com/documents/recent/PYu-RC0402_51_RoHS_L_5.pdf
4# http://www.yageo.com/documents/recent/Product Selection Guide 2009.pdf
5
6RC* -> T=R {
7
8    RC(????)([FJ])[RK]-(07|10|13)(*)L* ->
9    FP=$REF:1 _TOL=$REF:2 _R=$REF:4
10
11    _TOL=F -> TOL=1%
12    _TOL=J -> TOL=5%
13
14    FP=0100 -> FP=01005 P=1/32W V=15
15    FP=0201 -> P=1/20W V=25V
16    FP=0402 -> P=1/16W V=50V
17    FP=0603 -> P=1/10W V=50V
18    FP=0805 -> P=1/8W V=150V
19    FP=1206 -> P=1/4W V=200V
20
21    _TOL=F -> TOL=1%
22    _TOL=J -> TOL=5%
23}
24
25# Adjust multipliers
26
27_R=(*)R(*) -> _R=0$_R:1.$_R:2
28_R=(*)K(*) -> _R=$_R:1.${_R:2}k
29_R=(*)M(*) -> _R=$_R:1.${_R:2}M
30
31# Remove leading and trailing zeroes
32
33_R=0([0-9]*) -> _R=$_R:1
34_R=(*.[0-9]*)0([kM]) -> _R=$_R:1$_R:2
35_R=(*).0([kM]) -> _R=$_R:1$_R:2
36_R=(*.[0-9]*)0 -> _R=$_R:1
37_R=(*).0 -> _R=$_R:1
38_R=(*).([kM]|) -> _R=$_R:1$_R:2
39
40T=R -> R=${_R}R !

Archive Download the corresponding diff file

Branches:
master



interactive