gen_traco_tma 742 Bytes
Newer Older
Anders Blomdell's avatar
Anders Blomdell committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python3

IOUT=dict(
    TMAxx05S=200,
    TMAxx12S=84,
    TMAxx15S=67,
    TMAxx05D=100,
    TMAxx12D=42,
    TMAxx15D=34,
)

print('*********************DCM************************')
print('EESchema-DOCLIB  Version 2.0')
print('#')
for vin in ( 5, 12, 15, 24):
    for kind in ( ('S', '') , ('D', '+-')):
        for vout in ( 5, 12, 15):
            print('$CMP TMA-%02d%02d%s' % (vin, vout, kind[0]))
            print('D Isolated DC/DC Converter, Vin=%d, Vout=%s%dV@%dmA' %
                  (vin, kind[1], vout, IOUT['TMAxx%02d%s' % (vout, kind[0])]))
            print('K TRACO DC/DC')
            print('F www.tracopower.com/products/tma.pdf')
            print('$ENDCMP')
            print('#')

print('#End Doc Library')