Date:2010-09-12 22:01:54 (13 years 6 months ago)
Author:Werner Almesberger
Commit:499df0ea40c1b5ed191374e17ce00d707d47aaf2
Message:Added generation of Yageo RC0402 resistors. We can now produce the full BOM.

- bom/lib/e12.inc: added _E12_1 translation
- bom/yageo.gen: added RC0402 resistor series
Files: bom/lib/e12.inc (2 diffs)
bom/yageo.gen (1 diff)

Change Details

bom/lib/e12.inc
1# E12 scale
2
3_E12_1=(??)0 -> _E12=${_E12_1:1}
4_E12_1=(??)1 -> _E12=${_E12_1:1}0
5_E12_1=(?)(?)2 -> _E12=$_E12_1:1.${_E12_1:2}k
6_E12_1=(??)3 -> _E12=${_E12_1:1}k
7_E12_1=(??)4 -> _E12=${_E12_1:1}0k
8_E12_1=(?)(?)5 -> _E12=$_E12_1:1.${_E12_1:2}M
9_E12_1=(??)6 -> _E12=${_E12_1:1}M
10_E12_1=(??)7 -> _E12=${_E12_1:1}0M
11_E12_1=(?)R(?) -> _E12=$_E12_1:1.$_E12_1:2
12
13# E96 scale
14
15_E12_1=(???)0 -> _E12=${_E12_1:1}
16_E12_1=(?)(??)1 -> _E12=$_E12_1:1.${_E12_1:2}k
17_E12_1=(??)(?)2 -> _E12=$_E12_1:1.${_E12_1:2}k
18_E12_1=(???)3 -> _E12=${_E12_1:1}k
19_E12_1=(?)(??)4 -> _E12=$_E12_1:1.${_E12_1:2}M
20_E12_1=(??)(?)5 -> _E12=$_E12_1:1.${_E12_1:2}M
21_E12_1=(?)R(??) -> _E12=$_E12_1:1.$_E12_1:2
22_E12_1=(??)R(?) -> _E12=$_E12_1:1.$_E12_1:2
23
124# E12 scale, base multiplier is 10^-12 (pico)
225
326_E12_P=(??)8 -> _E12=${_E12_P:1}0f
...... 
1235_E12_P=(??)7 -> _E12=${_E12_P:1}0u
1336_E12_P=(?)R(?) -> _E12=$_E12_P:1.${_E12_P:2}p # strange
1437
15# remove trailing zeroes
38# remove leading and trailing zeroes
1639
17_E12=(*).0([fpnu]) -> _E12=$_E12:1$_E12:2
18_E12=(*).0 -> _E12=$_E12:1
40_E12=0([0-9]*) -> _E12=$_E12:1
41_E12=(*.[0-9]*)0([fpnumkM]) -> _E12=$_E12:1$_E12:2
42_E12=(*).0([fpnumkM]) -> _E12=$_E12:1$_E12:2
43_E12=(*.[0-9]*)0 -> _E12=$_E12:1
44_E12=(*).0 -> _E12=$_E12:1
1945
bom/yageo.gen
11#GEN
22
3# http://www.yageo.com/pdf/Pu-RC0402_51_PbFree_L_2.pdf
4
5RC* -> T=R {
6    RC(????)(?)?-??(*)L ->
7        FP=$REF:1 _TOL=$REF:2 _R=$REF:3
8
9    include lib/captol.inc
10
11    FP=0402 -> P=1/16W V=50V
12    _R=$R -> R=$_R !
13}
14
315# http://www.yageo.com/pdf/yageo/NP0_16V-to-100V_6.pdf
416# http://www.yageo.com/pdf/UPY-GPHC_X7R_6.3V-to-50V_3.pdf
517

Archive Download the corresponding diff file



interactive