mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 14:40:17 +02:00
Moved all capacitor tolerance and _E12_P translations to shared includes.
- bom/lib/captol.inc: translation of all capacitor tolerance values - bom/lib/e12.inc: translation of E12 values (for pico-based scale for now) - bom/avx.gen, bom/johanson.gen, bom/murata.gen, bom/tdk.gen, bom/yageo.gen: include libraries instead of copying the same tables
This commit is contained in:
parent
636011c23d
commit
f2824f1d35
27
bom/avx.gen
27
bom/avx.gen
@ -10,14 +10,7 @@
|
||||
_M=A -> M=NP0
|
||||
_M=D -> M=X5R
|
||||
|
||||
_TOL=B -> TOL=0.10pF
|
||||
_TOL=C -> TOL=0.25pF
|
||||
_TOL=D -> TOL=0.5pF
|
||||
_TOL=F -> TOL=1%
|
||||
_TOL=J -> TOL=5%
|
||||
_TOL=K -> TOL=10%
|
||||
_TOL=M -> TOL=20%
|
||||
_TOL=Z -> TOL=80/20%
|
||||
include lib/captol.inc
|
||||
|
||||
_V=4 -> V=4V
|
||||
_V=6 -> V=6.3V
|
||||
@ -31,22 +24,6 @@
|
||||
_V=7 -> V=500V
|
||||
}
|
||||
|
||||
# E12 scale, base multiplier is 10^-12 (pico)
|
||||
|
||||
_E12_P=(??)8 -> _E12=${_E12_P:1}0f
|
||||
_E12_P=(?)(?)9 -> _E12=$_E12_P:1.${_E12_P:2}p
|
||||
_E12_P=(??)0 -> _E12=${_E12_P:1}p
|
||||
_E12_P=(??)1 -> _E12=${_E12_P:1}0p
|
||||
_E12_P=(?)(?)2 -> _E12=$_E12_P:1.${_E12_P:2}n
|
||||
_E12_P=(??)3 -> _E12=${_E12_P:1}n
|
||||
_E12_P=(??)4 -> _E12=${_E12_P:1}0n
|
||||
_E12_P=(?)(?)5 -> _E12=$_E12_P:1.${_E12_P:2}u
|
||||
_E12_P=(??)6 -> _E12=${_E12_P:1}u
|
||||
_E12_P=(??)7 -> _E12=${_E12_P:1}0u
|
||||
|
||||
# remove trailing zeroes
|
||||
|
||||
_E12=(*).0([fpnu]) -> _E12=$_E12:1$_E12:2
|
||||
_E12=(*).0 -> _E12=$_E12:1
|
||||
include lib/e12.inc
|
||||
|
||||
T=C -> C=${_E12}F !
|
||||
|
@ -50,34 +50,9 @@
|
||||
_M=Z -> M=Z5U
|
||||
_M=Y -> M=Y5V
|
||||
|
||||
_TOL=A -> TOL=0.05pF
|
||||
_TOL=B -> TOL=0.10pF
|
||||
_TOL=C -> TOL=0.25pF
|
||||
_TOL=D -> TOL=0.5pF
|
||||
_TOL=F -> TOL=1%
|
||||
_TOL=G -> TOL=2%
|
||||
_TOL=J -> TOL=5%
|
||||
_TOL=K -> TOL=10%
|
||||
_TOL=M -> TOL=20%
|
||||
_TOL=Z -> TOL=80/20%
|
||||
include lib/captol.inc
|
||||
}
|
||||
|
||||
# E12 scale, base multiplier is 10^-12 (pico)
|
||||
|
||||
_E12_P=(??)8 -> _E12=${_E12_P:1}0f
|
||||
_E12_P=(?)(?)9 -> _E12=$_E12_P:1.${_E12_P:2}p
|
||||
_E12_P=(??)0 -> _E12=${_E12_P:1}p
|
||||
_E12_P=(??)1 -> _E12=${_E12_P:1}0p
|
||||
_E12_P=(?)(?)2 -> _E12=$_E12_P:1.${_E12_P:2}n
|
||||
_E12_P=(??)3 -> _E12=${_E12_P:1}n
|
||||
_E12_P=(??)4 -> _E12=${_E12_P:1}0n
|
||||
_E12_P=(?)(?)5 -> _E12=$_E12_P:1.${_E12_P:2}u
|
||||
_E12_P=(??)6 -> _E12=${_E12_P:1}u
|
||||
_E12_P=(??)7 -> _E12=${_E12_P:1}0u
|
||||
|
||||
# remove trailing zeroes
|
||||
|
||||
_E12=(*).0([fpnu]) -> _E12=$_E12:1$_E12:2
|
||||
_E12=(*).0 -> _E12=$_E12:1
|
||||
include lib/e12.inc
|
||||
|
||||
T=C -> C=${_E12}F !
|
||||
|
12
bom/lib/captol.inc
Normal file
12
bom/lib/captol.inc
Normal file
@ -0,0 +1,12 @@
|
||||
# Must be indented !!
|
||||
|
||||
_TOL=A -> TOL=0.05pF
|
||||
_TOL=B -> TOL=0.1pF
|
||||
_TOL=C -> TOL=0.25pF
|
||||
_TOL=D -> TOL=0.5pF
|
||||
_TOL=F -> TOL=1%
|
||||
_TOL=G -> TOL=2%
|
||||
_TOL=J -> TOL=5%
|
||||
_TOL=K -> TOL=10%
|
||||
_TOL=M -> TOL=20%
|
||||
_TOL=Z -> TOL=80/20%
|
19
bom/lib/e12.inc
Normal file
19
bom/lib/e12.inc
Normal file
@ -0,0 +1,19 @@
|
||||
# E12 scale, base multiplier is 10^-12 (pico)
|
||||
|
||||
_E12_P=(??)8 -> _E12=${_E12_P:1}0f
|
||||
_E12_P=(?)(?)9 -> _E12=$_E12_P:1.${_E12_P:2}p
|
||||
_E12_P=(??)0 -> _E12=${_E12_P:1}p
|
||||
_E12_P=(??)1 -> _E12=${_E12_P:1}0p
|
||||
_E12_P=(?)(?)2 -> _E12=$_E12_P:1.${_E12_P:2}n
|
||||
_E12_P=(??)3 -> _E12=${_E12_P:1}n
|
||||
_E12_P=(??)4 -> _E12=${_E12_P:1}0n
|
||||
_E12_P=(?)(?)5 -> _E12=$_E12_P:1.${_E12_P:2}u
|
||||
_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
|
||||
|
||||
_E12=(*).0([fpnu]) -> _E12=$_E12:1$_E12:2
|
||||
_E12=(*).0 -> _E12=$_E12:1
|
||||
|
@ -34,34 +34,9 @@ GRM* -> T=C {
|
||||
_V=1H -> V=50V
|
||||
_V=2A -> V=100V
|
||||
|
||||
_TOL=W -> TOL=0.05pF
|
||||
_TOL=B -> TOL=0.1pF
|
||||
_TOL=C -> TOL=0.25pF
|
||||
_TOL=D -> TOL=0.5pF
|
||||
_TOL=F -> TOL=1%
|
||||
_TOL=G -> TOL=2%
|
||||
_TOL=J -> TOL=5%
|
||||
_TOL=K -> TOL=10%
|
||||
_TOL=M -> TOL=20%
|
||||
include lib/captol.inc
|
||||
}
|
||||
|
||||
# E12 scale, base multiplier is 10^-12 (pico)
|
||||
|
||||
_E12_P=(??)8 -> _E12=${_E12_P:1}0f
|
||||
_E12_P=(?)(?)9 -> _E12=$_E12_P:1.${_E12_P:2}p
|
||||
_E12_P=(??)0 -> _E12=${_E12_P:1}p
|
||||
_E12_P=(??)1 -> _E12=${_E12_P:1}0p
|
||||
_E12_P=(?)(?)2 -> _E12=$_E12_P:1.${_E12_P:2}n
|
||||
_E12_P=(??)3 -> _E12=${_E12_P:1}n
|
||||
_E12_P=(??)4 -> _E12=${_E12_P:1}0n
|
||||
_E12_P=(?)(?)5 -> _E12=$_E12_P:1.${_E12_P:2}u
|
||||
_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
|
||||
|
||||
_E12=(*).0([fpnu]) -> _E12=$_E12:1$_E12:2
|
||||
_E12=(*).0 -> _E12=$_E12:1
|
||||
include lib/e12.inc
|
||||
|
||||
T=C -> C=${_E12}F !
|
||||
|
26
bom/tdk.gen
26
bom/tdk.gen
@ -17,12 +17,7 @@ C* -> T=C {
|
||||
_FP=4532 -> FP=1812
|
||||
_FP=5750 -> FP=2220
|
||||
|
||||
_TOL=C -> TOL=0.25pF
|
||||
_TOL=D -> TOL=0.5pF
|
||||
_TOL=J -> TOL=5%
|
||||
_TOL=K -> TOL=10%
|
||||
_TOL=M -> TOL=20%
|
||||
_TOL=Z -> TOL=80/20%
|
||||
include lib/captol.inc
|
||||
|
||||
_V=0G -> V=4V
|
||||
_V=0J -> V=6.3V
|
||||
@ -32,23 +27,6 @@ C* -> T=C {
|
||||
_V=1H -> V=50V
|
||||
}
|
||||
|
||||
# E12 scale, base multiplier is 10^-12 (pico)
|
||||
|
||||
_E12_P=(??)8 -> _E12=${_E12_P:1}0f
|
||||
_E12_P=(?)(?)9 -> _E12=$_E12_P:1.${_E12_P:2}p
|
||||
_E12_P=(??)0 -> _E12=${_E12_P:1}p
|
||||
_E12_P=(??)1 -> _E12=${_E12_P:1}0p
|
||||
_E12_P=(?)(?)2 -> _E12=$_E12_P:1.${_E12_P:2}n
|
||||
_E12_P=(??)3 -> _E12=${_E12_P:1}n
|
||||
_E12_P=(??)4 -> _E12=${_E12_P:1}0n
|
||||
_E12_P=(?)(?)5 -> _E12=$_E12_P:1.${_E12_P:2}u
|
||||
_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
|
||||
|
||||
_E12=(*).0([fpnu]) -> _E12=$_E12:1$_E12:2
|
||||
_E12=(*).0 -> _E12=$_E12:1
|
||||
include lib/e12.inc
|
||||
|
||||
T=C -> C=${_E12}F !
|
||||
|
@ -7,14 +7,7 @@ CC* -> T=C {
|
||||
CC(????)(?)?(???)(?)??([0-9][0-9R][0-9]) ->
|
||||
FP=$REF:1 _TOL=$REF:2 M=$REF:3 _V=$REF:4 _E12_P=$REF:5
|
||||
|
||||
_TOL=B -> TOL=0.1pF
|
||||
_TOL=C -> TOL=0.25pF
|
||||
_TOL=D -> TOL=0.5pF
|
||||
_TOL=F -> TOL=1%
|
||||
_TOL=G -> TOL=2%
|
||||
_TOL=J -> TOL=5%
|
||||
_TOL=K -> TOL=10%
|
||||
_TOL=M -> TOL=20%
|
||||
include lib/captol.inc
|
||||
|
||||
_V=5 -> V=6.3V
|
||||
_V=6 -> V=10V
|
||||
@ -24,23 +17,6 @@ CC* -> T=C {
|
||||
_V=0 -> V=100V
|
||||
}
|
||||
|
||||
# E12 scale, base multiplier is 10^-12 (pico)
|
||||
|
||||
_E12_P=(??)8 -> _E12=${_E12_P:1}0f
|
||||
_E12_P=(?)(?)9 -> _E12=$_E12_P:1.${_E12_P:2}p
|
||||
_E12_P=(??)0 -> _E12=${_E12_P:1}p
|
||||
_E12_P=(??)1 -> _E12=${_E12_P:1}0p
|
||||
_E12_P=(?)(?)2 -> _E12=$_E12_P:1.${_E12_P:2}n
|
||||
_E12_P=(??)3 -> _E12=${_E12_P:1}n
|
||||
_E12_P=(??)4 -> _E12=${_E12_P:1}0n
|
||||
_E12_P=(?)(?)5 -> _E12=$_E12_P:1.${_E12_P:2}u
|
||||
_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
|
||||
|
||||
_E12=(*).0([fpnu]) -> _E12=$_E12:1$_E12:2
|
||||
_E12=(*).0 -> _E12=$_E12:1
|
||||
include lib/e12.inc
|
||||
|
||||
T=C -> C=${_E12}F !
|
||||
|
Loading…
Reference in New Issue
Block a user