1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-07-01 02:39:49 +03:00

Moved resistor tolerance decoding to lib/tol.inc

- boom/lib/tol.inc: tolerance codes used for resistors, capacitors, etc.
- boom/lib/captol.inc: capacitor tolerance codes
- boom/manu/panasonic/panasonic.gen, boom/manu/stackpole/stackpole.gen,
  boom/manu/yageo/yageo.gen: use tol.inc instead of duplicating the
  tolerance decoding
This commit is contained in:
Werner Almesberger 2010-10-16 23:26:27 -03:00
parent 57fc0bd84e
commit 20517e107e
5 changed files with 20 additions and 12 deletions

10
boom/lib/captol.inc Normal file
View File

@ -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%

7
boom/lib/tol.inc Normal file
View File

@ -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%

View File

@ -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

View File

@ -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

View File

@ -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