Root/bom/lib/e12.inc

Source at commit 49e7c83796bc04941e9dbcec69bc0751563ff4d4 created 2 years 6 months ago.
By Werner Almesberger, atusb/: use ""VDD" symbol from kicad-libs
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
24# E12 scale, base multiplier is 10^-12 (pico)
25
26_E12_P=(??)8 -> _E12=${_E12_P:1}0f
27_E12_P=(?)(?)9 -> _E12=$_E12_P:1.${_E12_P:2}p
28_E12_P=(??)0 -> _E12=${_E12_P:1}p
29_E12_P=(??)1 -> _E12=${_E12_P:1}0p
30_E12_P=(?)(?)2 -> _E12=$_E12_P:1.${_E12_P:2}n
31_E12_P=(??)3 -> _E12=${_E12_P:1}n
32_E12_P=(??)4 -> _E12=${_E12_P:1}0n
33_E12_P=(?)(?)5 -> _E12=$_E12_P:1.${_E12_P:2}u
34_E12_P=(??)6 -> _E12=${_E12_P:1}u
35_E12_P=(??)7 -> _E12=${_E12_P:1}0u
36_E12_P=(?)R(?) -> _E12=$_E12_P:1.${_E12_P:2}p # strange
37
38# remove leading and trailing zeroes
39
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
45
46

Archive Download this file



interactive