1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-09-29 02:16:02 +03:00

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
This commit is contained in:
Werner Almesberger 2010-09-12 17:01:54 -03:00
parent f2824f1d35
commit 499df0ea40
2 changed files with 41 additions and 3 deletions

View File

@ -1,3 +1,26 @@
# E12 scale
_E12_1=(??)0 -> _E12=${_E12_1:1}
_E12_1=(??)1 -> _E12=${_E12_1:1}0
_E12_1=(?)(?)2 -> _E12=$_E12_1:1.${_E12_1:2}k
_E12_1=(??)3 -> _E12=${_E12_1:1}k
_E12_1=(??)4 -> _E12=${_E12_1:1}0k
_E12_1=(?)(?)5 -> _E12=$_E12_1:1.${_E12_1:2}M
_E12_1=(??)6 -> _E12=${_E12_1:1}M
_E12_1=(??)7 -> _E12=${_E12_1:1}0M
_E12_1=(?)R(?) -> _E12=$_E12_1:1.$_E12_1:2
# E96 scale
_E12_1=(???)0 -> _E12=${_E12_1:1}
_E12_1=(?)(??)1 -> _E12=$_E12_1:1.${_E12_1:2}k
_E12_1=(??)(?)2 -> _E12=$_E12_1:1.${_E12_1:2}k
_E12_1=(???)3 -> _E12=${_E12_1:1}k
_E12_1=(?)(??)4 -> _E12=$_E12_1:1.${_E12_1:2}M
_E12_1=(??)(?)5 -> _E12=$_E12_1:1.${_E12_1:2}M
_E12_1=(?)R(??) -> _E12=$_E12_1:1.$_E12_1:2
_E12_1=(??)R(?) -> _E12=$_E12_1:1.$_E12_1:2
# E12 scale, base multiplier is 10^-12 (pico)
_E12_P=(??)8 -> _E12=${_E12_P:1}0f
@ -12,8 +35,11 @@ _E12_P=(??)6 -> _E12=${_E12_P:1}u
_E12_P=(??)7 -> _E12=${_E12_P:1}0u
_E12_P=(?)R(?) -> _E12=$_E12_P:1.${_E12_P:2}p # strange
# remove trailing zeroes
# remove leading and trailing zeroes
_E12=(*).0([fpnu]) -> _E12=$_E12:1$_E12:2
_E12=(*).0 -> _E12=$_E12:1
_E12=0([0-9]*) -> _E12=$_E12:1
_E12=(*.[0-9]*)0([fpnumkM]) -> _E12=$_E12:1$_E12:2
_E12=(*).0([fpnumkM]) -> _E12=$_E12:1$_E12:2
_E12=(*.[0-9]*)0 -> _E12=$_E12:1
_E12=(*).0 -> _E12=$_E12:1

View File

@ -1,5 +1,17 @@
#GEN
# http://www.yageo.com/pdf/Pu-RC0402_51_PbFree_L_2.pdf
RC* -> T=R {
RC(????)(?)?-??(*)L ->
FP=$REF:1 _TOL=$REF:2 _R=$REF:3
include lib/captol.inc
FP=0402 -> P=1/16W V=50V
_R=$R -> R=$_R !
}
# http://www.yageo.com/pdf/yageo/NP0_16V-to-100V_6.pdf
# http://www.yageo.com/pdf/UPY-GPHC_X7R_6.3V-to-50V_3.pdf