Date:2010-09-12 20:19:38 (9 years 4 days ago)
Author:Werner Almesberger
Commit:c0052faa25f018cf9119f5a511909c86e6fa8816
Message:BOM work in progress. Completed generation of capacitor characteristics.

- bom/Makefile (INV): added project-local inventory
- bom/Makefile (CHR): auto-populate from $(GEN)
- bom/Makefile: added generation of characteristics for Johanson and Murata
parts
- bom/Makefile (dk/digi-key.dsc): need this target to generate digi-key.dsc
- bom/Makefile (spotless): remove generated .chr files based on $(GEN)
- bom/atrf.equ, bom/dk/digi-key.equ: added the less expensive Johanson
2450FB15L0001 as alternative for the Wuerth 748421245
- bom/dk/digi-key.equ: added more capacitors, including specific RF caps
- bom/atrf.inv: renamed test-point from PAD_60x60 to TST
- bom/avx.gen, bom/johanson.gen, bom/tdk.gen, bom/yageo-cap.gen: corrected
the part number parsers and added more product families
Files: bom/Makefile (4 diffs)
bom/atrf.equ (1 diff)
bom/atrf.inv (1 diff)
bom/avx.gen (2 diffs)
bom/dk/digi-key.equ (3 diffs)
bom/johanson.gen (2 diffs)
bom/murata.gen (1 diff)
bom/tdk.gen (1 diff)
bom/yageo-cap.gen (2 diffs)

Change Details

bom/Makefile
33KITS=1
44
55EQU=atrf.equ dk/digi-key.equ
6INV=dk/digi-key.inv
7CHR=avx.chr tdk.chr yageo-cap.chr
6INV=atrf.inv dk/digi-key.inv
7GEN=avx.gen johanson.gen murata.gen tdk.gen yageo-cap.gen
8CHR=$(GEN:%.gen=%.chr)
89
910
1011.PHONY: all again show-atusd spotless
...... 
2829        $(BOOM) gen2chr AVX dk/digi-key.equ avx.gen >$@ || \
2930          { rm -f $@; exit 1; }
3031
32johanson.chr: dk/digi-key.equ johanson.gen
33        $(BOOM) gen2chr JOHANSON dk/digi-key.equ johanson.gen >$@ || \
34          { rm -f $@; exit 1; }
35
36murata.chr: dk/digi-key.equ murata.gen
37        $(BOOM) gen2chr MURATA dk/digi-key.equ murata.gen >$@ || \
38          { rm -f $@; exit 1; }
39
3140tdk.chr: dk/digi-key.equ tdk.gen
3241        $(BOOM) gen2chr TDK dk/digi-key.equ tdk.gen >$@ || \
3342          { rm -f $@; exit 1; }
...... 
3948dk/digi-key.inv:
4049        $(MAKE) -C dk digi-key.inv
4150
51dk/digi-key.dsc:
52        $(MAKE) -C dk digi-key.dsc
53
4254SHOW_PRETTY = (echo '\#ORD'; grep '^$(2) ' $(1).ord ; ) | \
4355        $(BOOM) prettyord - $(3) | \
44          sed 's/^... //' | \
45          awk '{ s += $$(NF); if ($$(NF)+0) n++; print; } \
46          END { print "$(4)", s, "items:", n }'
56        sed 's/^... //' | \
57        awk '{ s += $$(NF); if ($$(NF)+0) n++; print; } \
58        END { print "$(4)", s, "items:", n }'
4759
4860show-atusd: atusd.ord dk/digi-key.dsc
4961        $(call SHOW_PRETTY,atusd,DIGI-KEY,dk/digi-key.dsc,USD)
...... 
5163spotless:
5264        $(MAKE) -C dk spotless
5365        rm -f atusd.par atusd.ord
54        rm -f avx.chr tdk.chr yageo-cap.chr
66        rm -f $(GEN:%.gen=%.chr)
bom/atrf.equ
11#EQU
22
33ATMEL AT86RF230 ATMEL AT86RF230-ZU
4
5WURTH 748421245 JOHANSON 2450FB15L0001
bom/atrf.inv
44
55ATRF meander 999999 USD 1 0
66ATRF uSD-Card 999999 USD 1 0
7ATRF PAD_60x60 999999 USD 1 0
7ATRF TST 999999 USD 1 0
bom/avx.gen
11#GEN
22
33# http://www.avx.com/docs/Catalogs/ccog.pdf
4# http://www.avx.com/docs/Catalogs/cx5r.pdf
45
5C* -> T=C {
6    (????)(?)(???)([0-9][0-9][0-9])(?)(?)* ->
7        FP=$REF:1 _V=$REF:2 M=$REF:3 _E12_P=$REF:4 _TOL=$REF:5
6* -> T=C {
7    (????)(?)(?)([0-9][0-9][0-9])(?)* ->
8        FP=$REF:1 _V=$REF:2 _M=$REF:3 _E12_P=$REF:4 _TOL=$REF:5
89
9    M=C0G -> M=NP0 # normalize
10    _M=A -> M=NP0
11    _M=D -> M=X5R
1012
1113    _TOL=B -> TOL=0.10pF
1214    _TOL=C -> TOL=0.25pF
...... 
1719    _TOL=M -> TOL=20%
1820    _TOL=Z -> TOL=80/20%
1921
22    _V=4 -> V=4V
2023    _V=6 -> V=6.3V
2124    _V=Z -> V=10V
2225    _V=Y -> V=16V
2326    _V=3 -> V=25V
27    _V=D -> V=35V
2428    _V=5 -> V=50V
2529    _V=1 -> V=100V
2630    _V=2 -> V=200V
bom/dk/digi-key.equ
55DIGI-KEY 336-1296-5-ND SILABS C8051F326-GM
66
77DIGI-KEY 732-2230-1-ND WURTH 748421245
8DIGI-KEY 712-1538-1-ND JOHANSON 2450FB15L0001E
89
910# resistors
1011
...... 
1415
1516# caps
1617
18DIGI-KEY 712-1274-1-ND JOHANSON 500R07S220GV4T
19
1720DIGI-KEY 490-1320-1-ND MURATA GRM155R60J105KE19D
1821DIGI-KEY 445-4998-1-ND TDK C1005X5R0J105K
1922DIGI-KEY 478-2583-1-ND AVX 04026D105KAT2A
...... 
2124DIGI-KEY 311-1018-1-ND YAGEO CC0402JRNP09BN220
2225DIGI-KEY 490-1283-1-ND MURATA GRM1555C1H220JZ01D
2326DIGI-KEY 445-1239-1-ND TDK C1005C0G1H220J
27DIGI-KEY 478-1074-1-ND AVX 04025A220JAT2A
2428
2529DIGI-KEY 311-1020-1-ND YAGEO CC0402JRNP09BN330
2630DIGI-KEY 490-3220-1-ND MURATA GRM1555C1H330JZ01D
bom/johanson.gen
11#GEN
22
33# http://www.johansontechnology.com/images/stories/rfcaps/mlhqcaps/jti_high-q-mlcc_2008-11.pdf
4# http://www.johansondielectrics.com/surface-mount-products/surface-mount-mlc-capacitors/part-number-breakdown.html
45
5C* -> T=C {
6* -> T=C {
67    (???)([RS][0-9][0-9])(?)([0-9][0-9][0-9])(?)* ->
78    _V=$REF:1 _FP=$REF:2 _M=$REF:3 _E12=$REF:4 _TOL=$REF:5
89
910    _V=6R3 -> V=6.3V
11    _V=100 -> V=10V
1012    _V=160 -> V=16V
1113    _V=250 -> V=25V
1214    _V=500 -> V=50V
15    _V=101 -> V=100V
16    _V=201 -> V=200V
1317    _V=251 -> V=250V
1418    _V=501 -> V=500V
19    _V=631 -> V=630V
1520    _V=102 -> V=1000V
1621    _V=152 -> V=1500V
1722    _V=202 -> V=2000V
1823    _V=252 -> V=2500V
24    _V=302 -> V=3000V
25    _V=402 -> V=4000V
26    _V=502 -> V=5000V
27
28    _FP=R03 -> FP=01005
29    _FP=R05 -> FP=0201
30    _FP=R07 -> FP=0402
31    _FP=R14 -> FP=0603
32    _FP=R15 -> FP=0805
33    _FP=S42 -> FP=1111
34    _FP=R18 -> FP=1206
35    _FP=S41 -> FP=1210
36    _FP=R29 -> FP=1808
37    _FP=S43 -> FP=1812
38    _FP=S47 -> FP=2220
39    _FP=S49 -> FP=1825
40    _FP=S48 -> FP=2225 # MMLC says 2225, High-Q says 2525
41    _FP=S58 -> FP=3838
1942
2043    _M=S -> M=NP0/RF
2144    _M=L -> M=NP0/RF
2245    _M=E -> M=NP0/RF
2346    _M=W -> M=X7R/RF
47    _M=N -> M=NP0
48    _M=W -> M=X7R
49    _M=X -> M=X5R
50    _M=Z -> M=Z5U
51    _M=Y -> M=Y5V
2452
2553    _TOL=A -> TOL=0.05pF
2654    _TOL=B -> TOL=0.10pF
...... 
3058    _TOL=G -> TOL=2%
3159    _TOL=J -> TOL=5%
3260    _TOL=K -> TOL=10%
33
34    _V=6 -> V=6.3V
35    _V=Z -> V=10V
36    _V=Y -> V=16V
37    _V=3 -> V=25V
38    _V=5 -> V=50V
39    _V=1 -> V=100V
40    _V=2 -> V=200V
41    _V=7 -> V=500V
61    _TOL=M -> TOL=20%
62    _TOL=Z -> TOL=80/20%
4263}
4364
4465# E12 scale, base multiplier is 10^-12 (pico)
bom/murata.gen
1#GEN
2
3# http://www.murata.com/products/catalog/pdf/c02e.pdf
4
5GRM* -> T=C {
6    GRM(??)?(??)(??)([0-9R][0-9R][0-9])(?)* ->
7        _FP=$REF:1 _M=$REF:2 _V=$REF:3 _E12_P=$REF:4 _TOL=$REF:5
8
9    _FP=02 -> FP=01005
10    _FP=03 -> FP=0201
11    _FP=15 -> FP=0402
12    _FP=18 -> FP=0603
13    _FP=21 -> FP=0805
14    _FP=31 -> FP=1206
15    _FP=32 -> FP=1210
16
17    _M=5C -> M=NP0
18    _M=7U -> M=U2J
19    _M=6P -> M=P2H
20    _M=6T -> M=T2H
21    _M=R7 -> M=X7R
22    _M=E7 -> M=X7U
23    _M=D7 -> M=X7T
24    _M=C8 -> M=X6S
25    _M=D8 -> M=X6T
26    _M=R6 -> M=X5R
27
28    _V=0G -> V=4V
29    _V=0J -> V=6.3V
30    _V=1A -> V=10V
31    _V=1C -> V=16V
32    _V=1E -> V=25V
33    _V=YA -> V=35V
34    _V=1H -> V=50V
35    _V=2A -> V=100V
36
37    _TOL=W -> TOL=0.05pF
38    _TOL=B -> TOL=0.1pF
39    _TOL=C -> TOL=0.25pF
40    _TOL=D -> TOL=0.5pF
41    _TOL=F -> TOL=1%
42    _TOL=G -> TOL=2%
43    _TOL=J -> TOL=5%
44    _TOL=K -> TOL=10%
45    _TOL=M -> TOL=20%
46}
47
48# E12 scale, base multiplier is 10^-12 (pico)
49
50_E12_P=(??)8 -> _E12=${_E12_P:1}0f
51_E12_P=(?)(?)9 -> _E12=$_E12_P:1.${_E12_P:2}p
52_E12_P=(??)0 -> _E12=${_E12_P:1}p
53_E12_P=(??)1 -> _E12=${_E12_P:1}0p
54_E12_P=(?)(?)2 -> _E12=$_E12_P:1.${_E12_P:2}n
55_E12_P=(??)3 -> _E12=${_E12_P:1}n
56_E12_P=(??)4 -> _E12=${_E12_P:1}0n
57_E12_P=(?)(?)5 -> _E12=$_E12_P:1.${_E12_P:2}u
58_E12_P=(??)6 -> _E12=${_E12_P:1}u
59_E12_P=(??)7 -> _E12=${_E12_P:1}0u
60_E12_P=(?)R(?) -> _E12=$_E12_P:1.${_E12_P:2}p # strange
61
62# remove trailing zeroes
63
64_E12=(*).0([fpnu]) -> _E12=$_E12:1$_E12:2
65_E12=(*).0 -> _E12=$_E12:1
66
67T=C -> C=${_E12}F !
bom/tdk.gen
33# http://www.tdk.co.jp/tefe02/e412_c.pdf
44
55C* -> T=C {
6    C(????)(???)(??)([0-9][0-9R][0-9])(?)(?)* ->
6    C(????)(???)(??)([0-9][0-9R][0-9])(?)* ->
77        _FP=$REF:1 M=$REF:2 _V=$REF:3 _E12_P=$REF:4 _TOL=$REF:5
88
99    M=C0G -> M=NP0 # normalize
bom/yageo-cap.gen
11#GEN
22
33# http://www.yageo.com/pdf/yageo/NP0_16V-to-100V_6.pdf
4# http://www.yageo.com/pdf/UPY-GPHC_X7R_6.3V-to-50V_3.pdf
45
56CC* -> T=C {
6    CC(????)(?)?NP0(?)BN([0-9][0-9R][0-9]) ->
7        FP=$REF:1 _TOL=$REF:2 _V=$REF:3 _E12_P=$REF:4
8
9    M=NP0
7    CC(????)(?)?(???)(?)??([0-9][0-9R][0-9]) ->
8        FP=$REF:1 _TOL=$REF:2 M=$REF:3 _V=$REF:4 _E12_P=$REF:5
109
1110    _TOL=B -> TOL=0.1pF
1211    _TOL=C -> TOL=0.25pF
...... 
1413    _TOL=F -> TOL=1%
1514    _TOL=G -> TOL=2%
1615    _TOL=J -> TOL=5%
16    _TOL=K -> TOL=10%
17    _TOL=M -> TOL=20%
1718
19    _V=5 -> V=6.3V
20    _V=6 -> V=10V
1821    _V=7 -> V=16V
1922    _V=8 -> V=25V
2023    _V=9 -> V=50V

Archive Download the corresponding diff file



interactive