diff --git a/boom/lib/captol.inc b/boom/lib/captol.inc new file mode 100644 index 0000000..956e17c --- /dev/null +++ b/boom/lib/captol.inc @@ -0,0 +1,10 @@ +# Must be indented !! + + _TOL=A -> TOL=0.05pF + _TOL=B -> TOL=0.1pF + _TOL=C -> TOL=0.25pF + _TOL=D -> TOL=0.5pF + + include tol.inc + + _TOL=Z -> TOL=80/20% diff --git a/boom/lib/tol.inc b/boom/lib/tol.inc new file mode 100644 index 0000000..53ab5e5 --- /dev/null +++ b/boom/lib/tol.inc @@ -0,0 +1,7 @@ +# Must be indented !! + + _TOL=F -> TOL=1% + _TOL=G -> TOL=2% + _TOL=J -> TOL=5% + _TOL=K -> TOL=10% + _TOL=M -> TOL=20% diff --git a/boom/manu/panasonic/panasonic.gen b/boom/manu/panasonic/panasonic.gen index f715bfe..b99314b 100644 --- a/boom/manu/panasonic/panasonic.gen +++ b/boom/manu/panasonic/panasonic.gen @@ -141,11 +141,7 @@ ERJ* -> T=R { _LOW_R=(??)M -> _E12_1=R0${_LOW_R:1} _LOW_R=(??)C -> _E12_1=R${_LOW_R:1} - _TOL=D -> TOL=0.5% - _TOL=F -> TOL=1% - _TOL=G -> TOL=2% - _TOL=J -> TOL=5% - _TOL=K -> TOL=10% + include ../../lib/tol.inc } include ../../lib/e12.inc diff --git a/boom/manu/stackpole/stackpole.gen b/boom/manu/stackpole/stackpole.gen index ff4a35e..abaf375 100644 --- a/boom/manu/stackpole/stackpole.gen +++ b/boom/manu/stackpole/stackpole.gen @@ -6,8 +6,7 @@ RMCF* -> T=R { RMCF(????)(?)(?)([0-9R][0-9RKM][0-9RKM])* -> FP=$REF:1 _TOL=$REF:2 _R=$REF:4 - _TOL=F -> TOL=1% - _TOL=J -> TOL=5% + include ../../lib/tol.inc FP=0201 -> P=1/20W V=25V FP=0402 -> P=1/16W V=50V diff --git a/boom/manu/yageo/yageo.gen b/boom/manu/yageo/yageo.gen index b1d3680..35e9169 100644 --- a/boom/manu/yageo/yageo.gen +++ b/boom/manu/yageo/yageo.gen @@ -8,8 +8,7 @@ RC* -> T=R { RC(????)([FJ])[RK]-(07|10|13)(*)L* -> FP=$REF:1 _TOL=$REF:2 _R=$REF:4 - _TOL=F -> TOL=1% - _TOL=J -> TOL=5% + include ../../lib/tol.inc FP=0100 -> FP=01005 P=1/32W V=15 FP=0201 -> P=1/20W V=25V @@ -17,9 +16,6 @@ RC* -> T=R { FP=0603 -> P=1/10W V=50V FP=0805 -> P=1/8W V=150V FP=1206 -> P=1/4W V=200V - - _TOL=F -> TOL=1% - _TOL=J -> TOL=5% } # Adjust multipliers