Root/bom/atrf.sub

Source at commit 5392401c0acbabadccf1e47abe59f05e25db9a7f created 8 years 5 months ago.
By Werner Almesberger, tools/atrf-rssi/: added menu for regulation area selection
1#SUB
2
3# Taken from gta02-core. Left in the hacks, since we may use similar components
4# in the future.
5
6-> T=unknown
7
8R[0-9P]* { # also handle RP...
9    -> T=R
10    VAL=*[0-9] -> R=${VAL}R
11    VAL=$R -> R=$VAL
12# -> TOL=5%
13    FN=$% -> TOL=$FN
14}
15
16RP[0-9]* {
17    -> T=RA
18    RP220[123] -> ARRAY=4
19    # the other parameters have already been taken care of by R*
20}
21
22C[0-9]* {
23    -> T=C
24    VAL=*F -> C=$VAL
25    VAL=(*F)/RF -> C=$VAL:1 X=RF # *F/RF "wins" against the *F above
26    FN=*V -> V=>=$FN
27}
28
29L[0-9]* {
30    -> T=L
31    VAL=*H -> L=$VAL
32    FN=*A -> I=>=$FN
33}
34
35B[0-9]* {
36    -> T=FILTER M=BEAD
37    VAL=$R -> R=$VAL
38    FN=*A -> I=$FN
39    FN=*R -> Rdc=$FN
40    FN=0.45R -> Rdc=450mR # hack
41}
42
43D[0-9]* {
44    -> T=D
45    VAL=*F { # heuristic to detect TVS
46    -> M=TVS
47    VAL=*F -> C=<=$VAL
48    FN=(*V)ac -> Vac=$FN:1
49    FN=(*V)dc -> Vdc=$FN:1
50
51    #
52    # Hack: some companies specify the class of varistors with Vdc = 9 V
53    # as Vac = 6.5 V while others use Vac = 7 V. Sometimes, Vac is even
54    # omitted entirely.
55    #
56    # Here, we work around the issue that Karmax use Vac = 6.5 V,
57    # Cooper/Bussmann use Vac = 7V if at all, and out schematics specify
58    # Vac = 6.5 V.
59    #
60    Vac=6.5V {
61        -> Vac=
62        -> Vdc=9V
63    }
64    }
65}
66
67VR[0-9]* -> T=D M=TVS {
68    VAL=$V -> Vdc=$VAL # neither clean nor consistent with the above
69    VAL=(*V)dc -> Vdc=$VAL:1
70    FN=*F -> C=<=$FN
71}
72
73X[0-9]* {
74    -> T=XTAL
75    VAL=*Hz -> F=$VAL
76    FN=*F -> C=$FN
77    FN=*ppm -> TOL=<=$FN
78}
79
80
81T=C C=820fF -> C=800fF # we can't get 0.82 pF, but there's plenty of 0.8 pF :)
82
83FP=MMCX-F-EDGE* -> VAL=MMCX-F-EDGE-SMT
84
85FP=meander -> VAL=meander
86FP=8:10-card -> VAL=8:10-card
87FP=PAD_60x60 -> VAL=PAD_60x60
88FP=PAD_120x60 -> VAL=PAD_120x60
89FP=PAD_2mm -> VAL=PAD_2mm
90

Archive Download this file



interactive