Root/nxuart/bom/uart.sub

1#SUB
2
3# From ben-wpan/bom, which in turn inherited it from gta02-core
4
5-> T=unknown
6
7R[0-9P]* { # also handle RP...
8    -> T=R
9    VAL=*[0-9] -> R=${VAL}R
10    VAL=$R -> R=$VAL
11# -> TOL=5%
12    FN=$% -> TOL=$FN
13}
14
15RP[0-9]* {
16    -> T=RA
17    RP220[123] -> ARRAY=4
18    # the other parameters have already been taken care of by R*
19}
20
21C[0-9]* {
22    -> T=C
23    VAL=*F -> C=$VAL
24    VAL=(*F)/RF -> C=$VAL:1 X=RF # *F/RF "wins" against the *F above
25    FN=*V -> V=>=$FN
26}
27
28L[0-9]* {
29    -> T=L
30    VAL=*H -> L=$VAL
31    FN=*A -> I=>=$FN
32}
33
34B[0-9]* {
35    -> T=FILTER M=BEAD
36    VAL=$R -> R=$VAL
37    FN=*A -> I=$FN
38    FN=*R -> Rdc=$FN
39    FN=0.45R -> Rdc=450mR # hack
40}
41
42D[0-9]* {
43    -> T=D
44    VAL=*F { # heuristic to detect TVS
45    -> M=TVS
46    VAL=*F -> C=<=$VAL
47    FN=(*V)ac -> Vac=$FN:1
48    FN=(*V)dc -> Vdc=$FN:1
49
50    #
51    # Hack: some companies specify the class of varistors with Vdc = 9 V
52    # as Vac = 6.5 V while others use Vac = 7 V. Sometimes, Vac is even
53    # omitted entirely.
54    #
55    # Here, we work around the issue that Karmax use Vac = 6.5 V,
56    # Cooper/Bussmann use Vac = 7V if at all, and out schematics specify
57    # Vac = 6.5 V.
58    #
59    Vac=6.5V {
60        -> Vac=
61        -> Vdc=9V
62    }
63    }
64}
65
66VR[0-9]* -> T=D M=TVS {
67    VAL=$V -> Vdc=$VAL # neither clean nor consistent with the above
68    FN=*F -> C=<=$FN
69}
70
71X[0-9]* {
72    -> T=XTAL
73    VAL=*Hz -> F=$VAL
74    FN=*F -> C=$FN
75    FN=*ppm -> TOL=<=$FN
76}
77
78
79FP=8:10-card -> VAL=8:10-card
80FP=PAD_2mm -> VAL=PAD_2mm
81

Archive Download this file

Branches:
master



interactive