Merge DIYglenn

This commit is contained in:
Gunnar Skjold
2019-02-14 07:48:46 +01:00
parent a954b838f3
commit 3cb433b27e
273 changed files with 84 additions and 11488 deletions

View File

@@ -0,0 +1 @@
*.dat.ngspice

View File

@@ -0,0 +1,11 @@
This directory contains various simulation of the M-Bus part of [MBus_USB.pdf](../doc/MBus_USB.pdf?raw=true).
The simulattions are done with [qucs-s](https://ra3xdh.github.io/) using [ngspice](http://ngspice.sourceforge.net)
as simulation backend.
The first simulation is as close to the original as possible and gradulally changed to
remove receiving parts and using a zener diode to have a constant 12V voltage drop
regardless of the power supply. The final version works with any voltage in M-Bus range.
![](mbus_master_004.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View File

@@ -0,0 +1,33 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-240,1470,800,1,0,0>
<Grid=10,10,0>
<DataSet=current_limit.qucs-s.dat>
<DataDisplay=current_limit.qucs-s.sch>
<OpenDisplay=1>
<Script=current_limit.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 122 254 1301 204 3 #c0c0c0 1 00 1 15 2 50 1 -0.00687712 0.02 0.0473777 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/current_limit:i(pr1)" #0000ff 0 3 0 0 0>
<"ngspice/current_limit:i(pr2)" #ff0000 0 3 0 0 0>
<"ngspice/current_limit:i(pr3)" #ff00ff 0 3 0 0 0>
</Rect>
<Rect 190 12 1193 212 3 #c0c0c0 1 00 1 0 20000 100000 1 -9975.82 50000 109998 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/current_limit:v(out)" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,80 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=-20,-224,1566,535,0.8722,0,0>
<Grid=10,10,1>
<DataSet=current_limit.qucs-s.dat>
<DataDisplay=current_limit.qucs-s.dpl>
<OpenDisplay=1>
<Script=current_limit.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<_BJT BC337AP_2 1 280 210 -96 -26 1 2 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<_BJT BC337AP_1 1 500 150 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 500 440 0 0 0 0>
<GND * 1 280 440 0 0 0 0>
<IProbe Pr1 1 500 270 -41 -26 0 3>
<IProbe Pr2 1 280 330 -41 -26 0 3>
<Lib D1 1 500 -90 -34 6 0 3 "Z-Diodes" 0 "1N759" 0>
<Vdc V1 1 80 -50 18 -26 0 1 "34 V" 1>
<GND * 1 80 20 0 0 0 0>
<.DC DC1 1 30 360 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.SW SW2 0 650 230 0 61 0 0 "DC1" 1 "lin" 1 "V1" 1 "20V" 1 "40V" 1 "21" 1 "false" 0>
<IProbe Pr3 1 230 -150 -26 16 0 0>
<R R4 1 500 370 15 -26 0 1 "39" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R3 1 360 210 -26 15 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R2 1 280 30 15 -26 0 1 "6k8" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R1 1 500 40 15 -26 0 1 "0" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr4 1 370 150 -14 -55 1 2>
<.SW SW3 0 910 300 0 61 0 0 "DC1" 1 "lin" 1 "R5" 1 "100" 1 "10k" 1 "300" 1 "false" 0>
<.SW SW1 1 30 110 0 61 0 0 "DC1" 1 "lin" 1 "R4" 1 "30 Ohm" 1 "200 Ohm" 1 "35" 1 "false" 0>
<VProbe Pr5 1 590 -100 -16 28 0 3>
</Components>
<Wires>
<500 180 500 210 "" 0 0 0 "">
<500 400 500 440 "" 0 0 0 "">
<280 240 280 300 "" 0 0 0 "">
<280 360 280 440 "" 0 0 0 "">
<500 -60 500 -50 "" 0 0 0 "">
<80 -20 80 20 "" 0 0 0 "">
<80 -150 80 -80 "" 0 0 0 "">
<80 -150 200 -150 "" 0 0 0 "">
<500 -150 500 -130 "" 0 0 0 "">
<260 -150 500 -150 "" 0 0 0 "">
<390 210 500 210 "" 0 0 0 "">
<310 210 330 210 "" 0 0 0 "">
<280 150 280 180 "" 0 0 0 "">
<280 -20 500 -20 "" 0 0 0 "">
<280 -20 280 0 "" 0 0 0 "">
<280 60 280 150 "" 0 0 0 "">
<500 -20 500 10 "out" 530 -40 9 "">
<500 70 500 120 "" 0 0 0 "">
<280 150 340 150 "" 0 0 0 "">
<400 150 470 150 "" 0 0 0 "">
<500 210 500 240 "" 0 0 0 "">
<500 300 500 340 "" 0 0 0 "">
<570 -130 570 -110 "" 0 0 0 "">
<500 -130 500 -120 "" 0 0 0 "">
<500 -130 570 -130 "" 0 0 0 "">
<570 -90 570 -50 "" 0 0 0 "">
<500 -50 500 -20 "" 0 0 0 "">
<500 -50 570 -50 "" 0 0 0 "">
<500 -150 500 -150 "in" 530 -180 0 "">
</Wires>
<Diagrams>
<Rect 760 37 693 187 3 #c0c0c0 1 00 1 30 20 200 1 20 5 36.7105 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/current_limit:v(in)" #0000ff 0 3 0 0 0>
<"ngspice/current_limit:v(out)" #ff0000 0 3 0 0 0>
<"ngspice/current_limit:v(pr5)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 820 140 12 #000000 0 "With the zener diode, the output is constantly 12V below the input voltage.\nAnd with the current limiting circuit, the load is always 20mA.\n\nhttps://en.wikipedia.org/wiki/Current_limiting#Single_power-supply_circuits\nhttps://electronics.stackexchange.com/questions/39465/current-limiters-using-transistors-and-diodes\n">
</Paintings>

View File

@@ -0,0 +1,40 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,19,1716,740,1,0,0>
<Grid=10,10,0>
<DataSet=mbus_master.qucs.dat>
<DataDisplay=mbus_master.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master.qucs.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 160 322 554 252 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/mbus_master:tran.v(txd)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(mbusminus)" #ff0000 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(mbusplus)" #ff00ff 0 3 0 0 0>
</Rect>
<Rect 120 640 575 216 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -2 2 5.22583 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master:tran.v(npnbase)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(rx)" #ff0000 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(baseq1)" #ff00ff 0 3 0 0 0>
</Rect>
<Rect 820 464 576 398 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -2.97992 5 32.9982 1 -1 0.2 1 315 0 225 "" "" "">
<"ngspice/mbus_master:tran.v(mbusminus)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(mbusplus)" #ff0000 0 3 0 0 0>
<"ngspice/mbus_master:tran.v(txd)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,90 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=140,-10,2645,877,0.81227,0,58>
<Grid=10,10,1>
<DataSet=mbus_master.qucs.dat>
<DataDisplay=mbus_master.qucs.dpl>
<OpenDisplay=1>
<Script=mbus_master.qucs.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 200 420 0 0 0 0>
<GND * 1 200 230 0 0 0 0>
<Vrect V2 1 200 370 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<_BJT BC337AP_1 1 460 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 460 440 0 0 0 0>
<GND * 1 600 440 0 0 0 0>
<R_SPICE R4 1 600 390 15 -26 0 1 "22k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 600 170 15 -26 0 1 "39k" 1 "" 0 "" 0 "" 0 "" 0>
<R R1 1 340 340 -26 15 0 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R_SPICE R5 1 900 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BD136_138_140_1 1 900 270 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<GND * 1 900 440 0 0 0 0>
<GND * 1 700 440 0 0 0 0>
<_BJT BC337AP_2 1 800 340 18 -26 1 2 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R6 1 700 170 15 -26 0 1 "33k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R7 1 700 370 15 -26 0 1 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<.DC DC1 1 190 500 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.TR TR1 1 200 580 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<Vdc V3 1 420 610 18 -26 0 1 "5 V" 1>
<GND * 1 420 680 0 0 0 0>
<R_SPICE R9 1 510 540 -26 -53 0 2 "1k" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 800 440 0 0 0 0>
<R_SPICE R3 1 900 390 15 -26 0 1 "82" 1 "" 0 "" 0 "" 0 "" 0>
<NutmegEq NutmegEq1 1 670 610 -27 15 0 0 "tran" 1 "mbusdiff=v(mbusplus)-v(mbusminus)" 1>
<Vdc V1 1 200 170 18 -26 0 1 "34 V" 1>
</Components>
<Wires>
<200 90 200 140 "" 0 0 0 "">
<200 90 600 90 "" 0 0 0 "">
<200 200 200 230 "" 0 0 0 "">
<200 400 200 420 "" 0 0 0 "">
<200 340 310 340 "TxD" 290 310 56 "">
<460 270 600 270 "" 0 0 0 "">
<460 270 460 310 "" 0 0 0 "">
<370 340 430 340 "baseq1" 380 290 22 "">
<460 370 460 440 "" 0 0 0 "">
<600 420 600 440 "" 0 0 0 "">
<600 90 600 140 "" 0 0 0 "">
<600 200 600 270 "" 0 0 0 "">
<600 270 600 360 "" 0 0 0 "">
<600 90 700 90 "" 0 0 0 "">
<900 90 900 140 "mbusplus" 990 100 10 "">
<900 200 900 240 "mbusminus" 980 200 4 "">
<600 270 870 270 "pnpbase" 799 241 160 "">
<900 300 900 340 "" 0 0 0 "">
<900 420 900 440 "" 0 0 0 "">
<700 200 700 290 "" 0 0 0 "">
<700 400 700 440 "" 0 0 0 "">
<900 340 900 360 "" 0 0 0 "">
<830 340 900 340 "npnbase" 810 380 30 "">
<800 290 800 310 "" 0 0 0 "">
<700 290 700 340 "rx" 720 310 8 "">
<700 290 800 290 "" 0 0 0 "">
<700 90 900 90 "" 0 0 0 "">
<700 90 700 140 "" 0 0 0 "">
<420 640 420 680 "" 0 0 0 "">
<420 540 420 580 "" 0 0 0 "">
<420 540 480 540 "" 0 0 0 "">
<540 540 670 540 "" 0 0 0 "">
<670 290 670 540 "" 0 0 0 "">
<670 290 700 290 "" 0 0 0 "">
<800 370 800 440 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 1160 673 755 383 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -0.5 2 6 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/mbus_master:tran.v(txd)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master:tran.mbusdiff" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1190 140 12 #000000 0 "Simulation of complete M-bus part of\nhttps://github.com/rscada/libmbus/raw/master/hardware/MBus_USB.pdf.\n">
</Paintings>

View File

@@ -0,0 +1,34 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-52,2255,800,1,0,52>
<Grid=10,10,0>
<DataSet=mbus_master_002.qucs-s.dat>
<DataDisplay=mbus_master_002.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master_002.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 80 265 558 225 3 #c0c0c0 1 00 1 0 0.1 1 1 -0.1 0.2 1.1 1 -0.1 0.2 1.1 315 0 225 "" "" "">
<"ngspice/mbus_master_002:tran.v(mbusminus)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master_002:tran.v(txd)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 740 443 755 383 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -1.28635 2 14.7499 1 -1 0.2 1 315 0 225 "" "" "">
<"ngspice/mbus_master_002:tran.vdrop" #ff00ff 0 3 0 0 0>
<Mkr 0.00100411 214 -214 3 0 0>
<"ngspice/mbus_master_002:tran.v(txd)" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,66 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=140,-10,2645,927,0.81227,0,58>
<Grid=10,10,1>
<DataSet=mbus_master_002.qucs-s.dat>
<DataDisplay=mbus_master_002.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_002.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 200 420 0 0 0 0>
<GND * 1 200 230 0 0 0 0>
<Vrect V2 1 200 370 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<_BJT BC337AP_1 1 460 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 460 440 0 0 0 0>
<GND * 1 600 440 0 0 0 0>
<R_SPICE R4 1 600 390 15 -26 0 1 "22k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 600 170 15 -26 0 1 "39k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R5 1 900 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BD136_138_140_1 1 900 270 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<GND * 1 900 440 0 0 0 0>
<.DC DC1 1 190 500 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.TR TR1 1 200 580 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<Vdc V1 1 200 170 18 -26 0 1 "34 V" 1>
<.SW SW1 1 460 570 0 59 0 0 "DC1" 1 "lin" 1 "V1" 1 "34V" 1 "12V" 1 "111" 1 "false" 0>
<NutmegEq NutmegEq1 1 680 520 -27 15 0 0 "tran" 1 "mbusdiff=v(mbusplus)-v(mbusminus)" 1 "vdrop=v(mbusplus)-v(mbusdiff)" 1>
<R R1 1 340 340 -26 15 0 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
</Components>
<Wires>
<200 90 200 140 "" 0 0 0 "">
<200 90 600 90 "" 0 0 0 "">
<200 200 200 230 "" 0 0 0 "">
<200 400 200 420 "" 0 0 0 "">
<460 270 600 270 "" 0 0 0 "">
<460 270 460 310 "" 0 0 0 "">
<460 370 460 440 "" 0 0 0 "">
<600 420 600 440 "" 0 0 0 "">
<600 90 600 140 "" 0 0 0 "">
<600 200 600 270 "" 0 0 0 "">
<600 270 600 360 "" 0 0 0 "">
<600 90 900 90 "" 0 0 0 "">
<900 90 900 140 "mbusplus" 990 100 10 "">
<900 200 900 240 "mbusminus" 980 200 4 "">
<600 270 870 270 "pnpbase" 799 241 160 "">
<900 300 900 440 "" 0 0 0 "">
<370 340 430 340 "baseq1" 380 290 22 "">
<200 340 310 340 "TxD" 290 310 56 "">
</Wires>
<Diagrams>
<Rect 1080 590 820 310 3 #c0c0c0 1 00 1 12 2 34 1 8.30002 5 36.2 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_002:v(mbusplus)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master_002:v(mbusminus)" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1190 140 12 #000000 0 "Similar to mbus_master_001 but with RX removed.\n">
<Text 1240 660 12 #000000 0 "The problem with using resistor voltage dividers is that\nthe voltage drop depends on the supply voltage and is not\nconstant 12V like it should be.">
</Paintings>

View File

@@ -0,0 +1,32 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=-67,-43,1685,800,1,67,43>
<Grid=10,10,0>
<DataSet=mbus_master_003.qucs-s.dat>
<DataDisplay=mbus_master_003.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master_003.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 70 268 730 233 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -1.323 2 12 1 -1 0.2 1 315 0 225 "" "" "">
<"ngspice/mbus_master_003:tran.v(pnpbase)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 70 638 728 295 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -1.323 2 12 1 -1 0.2 1 315 0 225 "" "" "">
<"ngspice/mbus_master_003:tran.i(pr1)" #ff00ff 0 3 0 0 0>
<"ngspice/mbus_master_003:tran.i(pr2)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,72 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=140,-10,2645,927,0.81227,0,58>
<Grid=10,10,1>
<DataSet=mbus_master_003.qucs-s.dat>
<DataDisplay=mbus_master_003.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_003.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 200 420 0 0 0 0>
<GND * 1 200 230 0 0 0 0>
<_BJT BC337AP_1 1 460 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 460 440 0 0 0 0>
<GND * 1 600 440 0 0 0 0>
<_BJT BD136_138_140_1 1 900 270 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<GND * 1 900 440 0 0 0 0>
<.DC DC1 1 190 500 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.TR TR1 1 200 580 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<Vdc V1 1 200 170 18 -26 0 1 "34 V" 1>
<.SW SW1 1 460 570 0 59 0 0 "DC1" 1 "lin" 1 "V1" 1 "34V" 1 "12V" 1 "111" 1 "false" 0>
<NutmegEq NutmegEq1 1 680 520 -27 15 0 0 "tran" 1 "mbusdiff=v(mbusplus)-v(mbusminus)" 1 "vdrop=v(mbusplus)-v(mbusdiff)" 1>
<R R1 1 340 340 -26 15 0 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 700 270 -26 16 1 2>
<IProbe Pr2 1 900 370 16 -26 1 3>
<Vrect V2 1 200 370 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "1ms" 0>
<Lib D1 1 600 190 -34 6 0 3 "Z-Diodes" 0 "1N5348B" 0>
<R_SPICE R5 1 900 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R4 1 600 390 15 -26 0 1 "22k" 1 "" 0 "" 0 "" 0 "" 0>
</Components>
<Wires>
<200 90 200 140 "" 0 0 0 "">
<200 90 600 90 "" 0 0 0 "">
<200 200 200 230 "" 0 0 0 "">
<200 400 200 420 "" 0 0 0 "">
<460 270 600 270 "" 0 0 0 "">
<460 270 460 310 "" 0 0 0 "">
<460 370 460 440 "" 0 0 0 "">
<900 90 900 140 "mbusplus" 990 100 10 "">
<900 200 900 240 "mbusminus" 980 200 4 "">
<370 340 430 340 "baseq1" 380 290 22 "">
<200 340 310 340 "TxD" 290 310 56 "">
<730 270 870 270 "pnpbase" 820 240 52 "">
<900 300 900 340 "" 0 0 0 "">
<900 400 900 440 "" 0 0 0 "">
<600 90 900 90 "" 0 0 0 "">
<600 90 600 160 "" 0 0 0 "">
<600 270 670 270 "" 0 0 0 "">
<600 220 600 270 "" 0 0 0 "">
<600 270 600 360 "" 0 0 0 "">
<600 420 600 440 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 1080 590 820 310 3 #c0c0c0 1 00 1 12 2 34 1 1.89113 5 36.919 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_003:v(mbusplus)" #ff00ff 0 3 0 0 0>
<"ngspice/mbus_master_003:v(mbusminus)" #00ff00 0 3 0 0 0>
<"ngspice/mbus_master_003:v(pnpbase)" #00ffff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1190 140 12 #000000 0 "Similar to mbus_master_002 but using a zener instead of R2.\n">
<Text 1240 660 12 #000000 0 "With a zener the voltage drop is constantly 12V like it should be.">
<Text 480 170 12 #000000 0 "11V 5W 1A">
</Paintings>

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

View File

@@ -0,0 +1,33 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-1080,1119,3261,1,0,0>
<Grid=10,10,0>
<DataSet=mbus_master_004.qucs-s.dat>
<DataDisplay=mbus_master_004.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master_004.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 140 -826 936 194 3 #c0c0c0 1 00 1 12 2 34 1 -0.00203476 0.01 0.0223864 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_004:i(pr1)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master_004:i(pr2)" #ff0000 0 3 0 0 0>
<"ngspice/mbus_master_004:i(pr4)" #00ff00 0 3 0 0 0>
</Rect>
<Rect 140 -609 937 161 3 #c0c0c0 1 00 1 12 2 34 1 -0.00203476 0.01 0.0223864 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_004:i(pr3)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,105 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=146,50,2065,969,0.802424,0,0>
<Grid=10,10,1>
<DataSet=mbus_master_004.qucs-s.dat>
<DataDisplay=mbus_master_004.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_004.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<GND * 1 200 230 0 0 0 0>
<Vdc V1 1 200 170 18 -26 0 1 "34 V" 1>
<R_SPICE R5 1 900 150 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<.TR TR1 1 1330 650 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<.SW SW1 1 1540 630 0 59 0 0 "DC1" 1 "lin" 1 "V1" 1 "34V" 1 "12V" 1 "111" 1 "false" 0>
<GND * 1 200 800 0 0 0 0>
<GND * 1 460 800 0 0 0 0>
<GND * 1 900 810 0 0 0 0>
<IProbe Pr2 1 900 660 16 -26 1 3>
<Vdc V3 1 200 740 18 -26 0 1 "5 V" 1>
<_BJT BC337AP_1 1 460 670 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R1 1 320 670 -26 15 0 0 "1k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<_BJT BD136_138_140_1 1 900 530 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<NutmegEq NutmegEq1 1 1790 630 -27 15 0 0 "tran" 1 "mbusdiff=v(mbusplus)-v(mbusminus)" 1>
<VProbe Vdrop 1 1030 160 -16 28 0 3>
<IProbe Pr3 1 460 580 16 -26 1 3>
<_BJT BC337AP_2 1 370 420 -96 -26 1 2 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R8 1 370 320 15 -26 0 1 "6k8" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<_BJT BC337AP_3 1 500 370 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R7 1 440 420 -26 15 0 0 "1" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 710 530 -26 16 1 2>
<IProbe Pr4 1 640 630 -41 -26 0 3>
<R_SPICE R4 1 640 730 15 -26 0 1 "22k" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 640 800 0 0 0 0>
<R R6 1 500 470 15 -26 0 1 "150" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Lib D2 1 640 150 -34 6 0 3 "Z-Diodes" 0 "1N5350B" 0>
<.DC DC1 1 1100 560 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.SW SW2 1 1090 670 0 59 0 0 "SW1" 1 "lin" 1 "R5" 1 "1k" 1 "200k" 1 "200" 1 "false" 0>
</Components>
<Wires>
<200 90 200 140 "" 0 0 0 "">
<200 90 640 90 "" 0 0 0 "">
<200 200 200 230 "" 0 0 0 "">
<900 90 900 110 "mbusplus" 940 70 10 "">
<900 690 900 810 "" 0 0 0 "">
<200 770 200 800 "" 0 0 0 "">
<460 700 460 800 "" 0 0 0 "">
<350 670 430 670 "baseq1" 390 720 42 "">
<200 670 200 710 "" 0 0 0 "">
<200 670 290 670 "TxD" 220 610 56 "">
<900 180 900 190 "" 0 0 0 "">
<900 560 900 630 "" 0 0 0 "">
<1010 110 1010 150 "" 0 0 0 "">
<900 110 900 120 "" 0 0 0 "">
<900 110 1010 110 "" 0 0 0 "">
<1010 170 1010 190 "" 0 0 0 "">
<900 190 900 500 "mbusminus" 940 240 14 "">
<900 190 1010 190 "" 0 0 0 "">
<460 610 460 640 "" 0 0 0 "">
<460 520 460 550 "" 0 0 0 "">
<370 520 460 520 "" 0 0 0 "">
<370 450 370 520 "" 0 0 0 "">
<370 290 430 290 "" 0 0 0 "">
<500 290 500 340 "" 0 0 0 "">
<370 350 370 370 "" 0 0 0 "">
<370 370 370 390 "" 0 0 0 "">
<370 370 470 370 "" 0 0 0 "">
<470 420 500 420 "" 0 0 0 "">
<400 420 410 420 "" 0 0 0 "">
<500 500 500 520 "" 0 0 0 "">
<500 420 500 440 "" 0 0 0 "">
<500 400 500 420 "" 0 0 0 "">
<460 520 500 520 "" 0 0 0 "">
<640 530 680 530 "" 0 0 0 "">
<740 530 870 530 "pnpbase" 790 480 42 "">
<640 530 640 600 "" 0 0 0 "">
<640 660 640 700 "" 0 0 0 "">
<640 760 640 800 "" 0 0 0 "">
<430 290 500 290 "" 0 0 0 "">
<430 240 430 290 "" 0 0 0 "">
<640 240 640 530 "" 0 0 0 "">
<430 240 640 240 "" 0 0 0 "">
<640 180 640 240 "" 0 0 0 "">
<640 90 900 90 "" 0 0 0 "">
<640 90 640 120 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 1160 410 820 310 3 #c0c0c0 1 00 1 12 2 34 1 -2.84689 10 40 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_004:v(mbusplus)" #00ff00 0 3 0 0 0>
<"ngspice/mbus_master_004:v(mbusminus)" #00ffff 0 3 0 0 0>
<"ngspice/mbus_master_004:v(vdrop)" #ff090d 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 500 140 12 #000000 0 "13V 5W 1A\n1N5350B">
<Text 1330 520 12 #000000 0 "For TxD high input, voltage drop is constant 12V for any supply voltage between ~13V to 34V\nand for any bus load between 1 to 200k Ohm.">
</Paintings>

View File

@@ -0,0 +1,25 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-8,1277,979,1,0,0>
<Grid=10,10,0>
<DataSet=mbus_master_100.qucs-s.dat>
<DataDisplay=mbus_master_100.qucs-s.sch>
<OpenDisplay=1>
<Script=mbus_master_100.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,111 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-60,2023,1131,0.84375,0,109>
<Grid=10,10,1>
<DataSet=mbus_master_100.qucs-s.dat>
<DataDisplay=mbus_master_100.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_100.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Lib D1 1 520 140 -34 6 0 3 "Z-Diodes" 0 "1N5350B" 0>
<GND * 1 40 210 0 0 0 0>
<Vrect V2 1 40 640 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<IProbe Pr3 1 520 370 -41 -26 0 3>
<R R1 1 240 600 -26 15 0 0 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 380 560 -26 16 0 0>
<GND * 1 520 670 0 0 0 0>
<GND * 1 40 730 0 0 0 0>
<_BJT BC337AP_Q2 1 400 250 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R4 1 230 170 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R5 1 400 160 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Vdc V1 1 40 140 18 -26 0 1 "42 V" 1>
<IProbe Pr4 1 630 210 -41 -26 0 3>
<R_SPICE R2 1 520 510 15 -26 0 1 "8.6k" 1 "" 0 "" 0 "" 0 "" 0>
<IProbe Pr2 1 120 490 16 -26 0 1>
<GND * 1 230 500 0 0 0 0>
<IProbe Pr5 1 230 440 -41 -26 0 3>
<_BJT BC337AP_Q1 1 230 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R3 1 150 340 -26 -53 0 2 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<VProbe Vdrop2 1 960 180 -16 28 0 3>
<IProbe Pr6 1 830 490 16 -26 1 3>
<GND * 1 830 680 0 0 0 0>
<Vdc V3 1 160 700 18 -26 0 1 "5 V" 1>
<GND * 1 160 790 0 0 0 0>
<R_SPICE R6 1 830 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<.DC DC1 1 1120 120 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<.SW SW2 1 1590 120 0 60 0 0 "DC1" 1 "lin" 1 "R6" 1 "500" 1 "250k" 1 "251" 1 "false" 0>
<.TR TR1 0 1360 120 0 61 0 0 "lin" 1 "0" 1 "5 ms" 1 "11" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<_BJT BC337AP_Q3 1 520 600 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<_BJT BD136_138_140_Q4 1 830 320 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
</Components>
<Wires>
<40 110 230 110 "" 0 0 0 "">
<40 170 40 210 "" 0 0 0 "">
<400 110 520 110 "" 0 0 0 "">
<400 110 400 130 "" 0 0 0 "">
<230 110 400 110 "" 0 0 0 "">
<230 110 230 140 "" 0 0 0 "">
<230 200 230 250 "" 0 0 0 "">
<400 190 400 220 "" 0 0 0 "">
<400 280 520 280 "" 0 0 0 "">
<40 600 40 610 "" 0 0 0 "">
<40 600 120 600 "TxD" 50 560 47 "">
<120 600 160 600 "" 0 0 0 "">
<520 280 520 320 "" 0 0 0 "">
<410 600 490 600 "" 0 0 0 "">
<410 560 410 600 "" 0 0 0 "">
<270 600 350 600 "" 0 0 0 "">
<350 560 350 600 "" 0 0 0 "">
<520 630 520 670 "" 0 0 0 "">
<520 240 520 280 "" 0 0 0 "">
<520 240 630 240 "" 0 0 0 "">
<520 170 630 170 "" 0 0 0 "">
<630 170 630 180 "" 0 0 0 "">
<520 400 520 480 "" 0 0 0 "">
<520 540 520 570 "" 0 0 0 "">
<120 520 120 600 "" 0 0 0 "">
<230 470 230 500 "" 0 0 0 "">
<230 370 230 410 "" 0 0 0 "">
<230 250 230 310 "" 0 0 0 "">
<230 250 370 250 "" 0 0 0 "">
<120 340 120 460 "" 0 0 0 "">
<180 340 200 340 "" 0 0 0 "">
<830 110 830 130 "mbusplus" 870 90 10 "">
<940 130 940 170 "" 0 0 0 "">
<830 130 940 130 "" 0 0 0 "">
<940 190 940 210 "" 0 0 0 "">
<830 210 940 210 "" 0 0 0 "">
<830 130 830 140 "" 0 0 0 "">
<830 200 830 210 "" 0 0 0 "">
<520 110 830 110 "" 0 0 0 "">
<830 210 830 290 "mbusminus" 870 260 14 "">
<520 320 520 340 "" 0 0 0 "">
<520 320 800 320 "pnpbase" 690 340 252 "">
<830 350 830 460 "" 0 0 0 "">
<830 520 830 680 "" 0 0 0 "">
<160 600 210 600 "" 0 0 0 "">
<160 600 160 670 "" 0 0 0 "">
<160 730 160 790 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 1060 532 613 192 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_100:tran.v(pnpbase)" #0000ff 0 3 0 0 0>
<"ngspice/mbus_master_100:tran.v(txd)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 1030 944 618 244 3 #c0c0c0 1 00 0 0 50000 250000 1 12.0429 0.05 12.217 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_100:v(vdrop2)" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1040 590 12 #000000 0 "With 0/5V pulse input (e.g. V2 connected):\n\nThe mbusminus voltage goes properly back to mbusplus when TxD is low.">
<Text 1040 980 12 #000000 0 "With constant 5V input (e.g. V3 connected):\n\nThe voltage drop is between 12 and 12.2V for any load between 500 to 250kOm">
</Paintings>

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

View File

@@ -0,0 +1,156 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=-14,8,2000,1199,0.774686,0,4>
<Grid=10,10,1>
<DataSet=mbus_master_101.qucs-s.dat>
<DataDisplay=mbus_master_101.qucs-s.dpl>
<OpenDisplay=1>
<Script=mbus_master_101.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
<.ID -20 -16 SUB>
<Line -20 20 40 0 #000080 2 1>
<Line 20 20 0 -40 #000080 2 1>
<Line -20 -20 40 0 #000080 2 1>
<Line -20 20 0 -40 #000080 2 1>
</Symbol>
<Components>
<Lib D1 1 520 140 -34 6 0 3 "Z-Diodes" 0 "1N5350B" 0>
<GND * 1 40 210 0 0 0 0>
<Vrect V2 1 40 640 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<IProbe Pr3 1 520 370 -41 -26 0 3>
<R R1 1 240 600 -26 15 0 0 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 380 560 -26 16 0 0>
<GND * 1 520 670 0 0 0 0>
<GND * 1 40 730 0 0 0 0>
<_BJT BC337AP_Q2 1 400 250 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R4 1 230 170 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R5 1 400 160 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Vdc V1 1 40 140 18 -26 0 1 "42 V" 1>
<IProbe Pr4 1 630 210 -41 -26 0 3>
<IProbe Pr2 1 120 490 16 -26 0 1>
<GND * 1 230 500 0 0 0 0>
<IProbe Pr5 1 230 440 -41 -26 0 3>
<_BJT BC337AP_Q1 1 230 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R3 1 150 340 -26 -53 0 2 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<VProbe Vdrop2 1 960 180 -16 28 0 3>
<GND * 1 830 680 0 0 0 0>
<Vdc V3 1 160 700 18 -26 0 1 "5 V" 1>
<GND * 1 160 790 0 0 0 0>
<_BJT BC337AP_Q3 1 520 600 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<_BJT BD136_138_140_Q4 1 830 320 8 -26 1 0 "pnp" 0 "2.9537e-13" 0 "1" 0 "1.021" 0 "1.0993" 0 "0.1" 0 "137" 0 "8.41" 0 "1.8002e-13" 0 "1.5" 0 "7.0433e-12" 0 "1.38" 0 "201.4" 0 "23.765" 0 "0.01" 0 "0.011" 0 "0.01" 0 "0.1109" 0 "1.98" 0 "2.1982e-10" 0 "0.7211" 0 "0.3685" 0 "6.8291e-11" 0 "0.5499" 0 "0.3668" 0 "0.5287" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "0" 0 "0" 0 "0" 0 "0" 0 "0" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1.4883" 0 "3" 0 "1.2343" 0 "26.85" 0 "1" 0>
<IProbe Pr6 1 830 440 16 -26 1 3>
<_BJT BC337AP_Q5 1 1040 510 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<.DC DC1 1 1600 370 0 38 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<R_SPICE R9 1 1330 430 -26 -53 0 2 "1k" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 1240 700 0 0 0 0>
<GND * 1 1040 700 0 0 0 0>
<GND * 1 1450 700 0 0 0 0>
<R_SPICE R10 1 1450 510 -71 -26 0 3 "100k" 1 "" 0 "" 0 "" 0 "" 0>
<IProbe Pr9 1 1450 620 16 -26 1 3>
<IProbe Pr8 1 1240 620 16 -26 1 3>
<IProbe Pr7 1 1040 620 16 -26 1 3>
<R_SPICE R8 1 1240 330 15 -26 0 1 "10k" 1 "" 0 "" 0 "" 0 "" 0>
<Lib D2 1 1240 500 13 6 1 3 "Z-Diodes" 0 "1N750" 0>
<IProbe Pr10 1 1240 220 16 -26 1 3>
<R_SPICE R7 1 830 560 15 -26 0 1 "82" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R6 1 830 170 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<Idc I1 1 730 220 18 -26 1 3 "11 mA" 1>
<.SW SW1 1 1490 120 0 61 0 0 "DC1" 1 "lin" 1 "I1" 1 "6m" 1 "11m" 1 "21" 1 "false" 0>
<.SW SW2 1 1650 120 0 61 0 0 "SW1" 1 "lin" 1 "V1" 1 "21" 1 "42" 1 "22" 1 "false" 0>
<R_SPICE R2 1 520 510 15 -26 0 1 "8.2k" 1 "" 0 "" 0 "" 0 "" 0>
</Components>
<Wires>
<40 110 230 110 "" 0 0 0 "">
<40 170 40 210 "" 0 0 0 "">
<400 110 520 110 "" 0 0 0 "">
<400 110 400 130 "" 0 0 0 "">
<230 110 400 110 "" 0 0 0 "">
<230 110 230 140 "" 0 0 0 "">
<230 200 230 250 "" 0 0 0 "">
<400 190 400 220 "" 0 0 0 "">
<400 280 520 280 "" 0 0 0 "">
<40 600 40 610 "" 0 0 0 "">
<40 600 120 600 "TxD" 50 560 47 "">
<120 600 160 600 "" 0 0 0 "">
<520 280 520 320 "" 0 0 0 "">
<410 600 490 600 "" 0 0 0 "">
<410 560 410 600 "" 0 0 0 "">
<270 600 350 600 "" 0 0 0 "">
<350 560 350 600 "" 0 0 0 "">
<520 630 520 670 "" 0 0 0 "">
<520 240 520 280 "" 0 0 0 "">
<520 240 630 240 "" 0 0 0 "">
<520 170 630 170 "" 0 0 0 "">
<630 170 630 180 "" 0 0 0 "">
<520 400 520 480 "" 0 0 0 "">
<520 540 520 570 "" 0 0 0 "">
<120 520 120 600 "" 0 0 0 "">
<230 470 230 500 "" 0 0 0 "">
<230 370 230 410 "" 0 0 0 "">
<230 250 230 310 "" 0 0 0 "">
<230 250 370 250 "" 0 0 0 "">
<120 340 120 460 "" 0 0 0 "">
<180 340 200 340 "" 0 0 0 "">
<830 110 830 130 "mbusplus" 870 90 10 "">
<940 130 940 170 "" 0 0 0 "">
<830 130 940 130 "" 0 0 0 "">
<940 190 940 210 "" 0 0 0 "">
<830 210 940 210 "" 0 0 0 "">
<830 130 830 140 "" 0 0 0 "">
<830 200 830 210 "" 0 0 0 "">
<520 110 730 110 "" 0 0 0 "">
<830 210 830 290 "mbusminus" 870 260 14 "">
<520 320 520 340 "" 0 0 0 "">
<520 320 800 320 "pnpbase" 690 340 252 "">
<160 600 210 600 "" 0 0 0 "">
<160 600 160 670 "" 0 0 0 "">
<160 730 160 790 "" 0 0 0 "">
<830 350 830 380 "" 0 0 0 "">
<830 470 830 510 "" 0 0 0 "">
<830 590 830 680 "" 0 0 0 "">
<830 510 830 530 "" 0 0 0 "">
<830 510 1010 510 "q5base" 960 440 83 "">
<1240 360 1240 430 "" 0 0 0 "">
<1040 430 1040 480 "" 0 0 0 "">
<1040 430 1240 430 "" 0 0 0 "">
<1240 430 1300 430 "" 0 0 0 "">
<1240 430 1240 470 "" 0 0 0 "">
<1360 430 1450 430 "RxD" 1430 400 39 "">
<1450 430 1450 480 "" 0 0 0 "">
<1040 540 1040 590 "" 0 0 0 "">
<1450 540 1450 590 "" 0 0 0 "">
<1450 650 1450 700 "" 0 0 0 "">
<1240 650 1240 700 "" 0 0 0 "">
<1040 650 1040 700 "" 0 0 0 "">
<1240 530 1240 590 "" 0 0 0 "">
<830 110 1240 110 "" 0 0 0 "">
<1240 110 1240 190 "" 0 0 0 "">
<1240 250 1240 300 "" 0 0 0 "">
<730 110 830 110 "" 0 0 0 "">
<730 110 730 190 "" 0 0 0 "">
<730 250 730 380 "" 0 0 0 "">
<830 380 830 410 "" 0 0 0 "">
<730 380 830 380 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 82 1100 487 230 3 #c0c0c0 1 00 1 0 50000 250000 1 -0.0722351 0.5 0.842553 1 -1 1 1 315 0 225 "" "" "">
<"ngspice/mbus_master_101:v(q5base)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 670 1103 560 223 3 #c0c0c0 1 00 1 0 20000 249006 1 -0.00234274 0.01 0.0263551 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_101:i(pr6)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 1330 1112 512 232 3 #c0c0c0 1 00 1 -1 0.2 1 1 -1 0.5 1 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/mbus_master_101:v(rxd)" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1470 500 12 #000000 0 "Arduino input pin">
<Text 1290 810 12 #000000 0 "RxD swicthes polarity at around 8mA through R7 regardless of the supply voltage.">
</Paintings>

View File

@@ -0,0 +1,30 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-120,1252,800,1,0,0>
<Grid=10,10,0>
<DataSet=minimaster_001.qucs-s.dat>
<DataDisplay=minimaster_001.qucs-s.sch>
<OpenDisplay=1>
<Script=minimaster_001.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 240 471 894 331 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_001:tran.v(mbusminus)" #0000ff 0 3 0 0 0>
<"ngspice/minimaster_001:tran.v(mbusplus)" #ff0000 0 3 0 0 0>
<"ngspice/minimaster_001:tran.v(txd)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,124 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=40,20,1797,1011,0.668012,0,0>
<Grid=10,10,1>
<DataSet=minimaster_001.qucs-s.dat>
<DataDisplay=minimaster_001.qucs-s.dpl>
<OpenDisplay=1>
<Script=minimaster_001.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Vdc V1 1 220 90 18 -26 0 1 "15 V" 1>
<C C1 1 320 90 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<Vdc V2 1 200 730 18 -26 0 1 "15 V" 1>
<C C2 1 290 730 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<GND * 1 220 150 0 0 0 0>
<GND * 1 170 700 0 0 0 0>
<.DC DC1 1 110 260 0 37 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<_BJT BC337AP_1 1 1640 330 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R11 1 1640 660 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R8 1 1540 130 15 -26 0 1 "15k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R9 1 1540 690 15 -26 0 1 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 1190 430 0 0 0 0>
<R_SPICE R6 1 1240 710 15 -26 0 1 "2k2" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R5 1 1240 490 15 -26 0 1 "8k2" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_1 1 1240 630 -117 -23 0 1 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<_BJT BC337AP_2 1 1540 550 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R3 1 970 650 15 -26 0 1 "18k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 610 480 -28 19 0 2 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<.TR TR1 1 140 440 0 60 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<R_SPICE R10 1 1640 130 15 -26 0 1 "82" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BC558AP_2 1 1100 170 28 -28 0 2 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<Diode D_1N4148_3 1 1030 220 -71 -70 0 0 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<R_SPICE R13 1 690 220 -26 -53 0 2 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 540 220 0 0 0 0>
<_BJT BC558AP_1 1 970 390 12 41 1 1 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R7 1 1380 440 15 -26 0 1 "6k8" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_2 1 880 430 -115 -21 0 3 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<GND * 1 710 390 0 0 0 0>
<_BJT BC558AP_3 1 980 270 -101 -1 0 2 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R12 1 1100 320 15 -26 0 1 "8k2" 1 "" 0 "" 0 "" 0 "" 0>
<Vdc V5 1 400 610 18 -26 0 1 "5 V" 1>
<Vrect V4 1 400 510 18 -26 0 1 "20 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
</Components>
<Wires>
<220 60 320 60 "" 0 0 0 "">
<220 120 220 150 "" 0 0 0 "">
<170 700 200 700 "" 0 0 0 "">
<200 700 290 700 "" 0 0 0 "">
<200 760 290 760 "" 0 0 0 "">
<220 120 320 120 "" 0 0 0 "">
<320 60 1100 60 "" 0 0 0 "">
<290 760 400 760 "" 0 0 0 "">
<1540 720 1540 760 "" 0 0 0 "">
<1540 60 1540 100 "" 0 0 0 "">
<1540 160 1540 330 "" 0 0 0 "">
<1540 330 1610 330 "" 0 0 0 "">
<1640 360 1640 630 "mbusplus" 1670 480 151 "">
<1540 760 1640 760 "" 0 0 0 "">
<1640 690 1640 760 "mbusminus" 1670 700 45 "">
<1190 420 1190 430 "" 0 0 0 "">
<1190 420 1240 420 "" 0 0 0 "">
<1240 420 1240 460 "" 0 0 0 "">
<1240 520 1240 550 "" 0 0 0 "">
<1240 660 1240 680 "" 0 0 0 "">
<1240 760 1540 760 "" 0 0 0 "">
<1240 740 1240 760 "" 0 0 0 "">
<1540 580 1540 620 "" 0 0 0 "">
<1540 330 1540 520 "" 0 0 0 "">
<1240 550 1240 600 "" 0 0 0 "">
<1240 550 1510 550 "" 0 0 0 "">
<1540 620 1540 660 "" 0 0 0 "">
<970 760 1100 760 "" 0 0 0 "">
<970 680 970 760 "" 0 0 0 "">
<640 480 880 480 "" 0 0 0 "">
<400 480 580 480 "TxD" 500 450 68 "">
<1540 60 1640 60 "" 0 0 0 "">
<1640 60 1640 100 "" 0 0 0 "">
<1640 160 1640 170 "" 0 0 0 "">
<1100 60 1540 60 "" 0 0 0 "">
<1100 60 1100 140 "" 0 0 0 "">
<1640 170 1640 300 "" 0 0 0 "">
<1130 170 1640 170 "" 0 0 0 "">
<1100 200 1100 220 "" 0 0 0 "">
<1100 760 1240 760 "" 0 0 0 "">
<1060 220 1100 220 "" 0 0 0 "">
<720 220 980 220 "" 0 0 0 "">
<540 220 660 220 "" 0 0 0 "">
<970 420 970 480 "" 0 0 0 "">
<1000 390 1380 390 "" 0 0 0 "">
<1380 390 1380 410 "" 0 0 0 "">
<1380 620 1540 620 "" 0 0 0 "">
<1380 470 1380 620 "" 0 0 0 "">
<880 390 940 390 "" 0 0 0 "">
<970 480 970 620 "" 0 0 0 "">
<880 480 970 480 "" 0 0 0 "">
<880 460 880 480 "" 0 0 0 "">
<880 390 880 400 "" 0 0 0 "">
<710 390 880 390 "" 0 0 0 "">
<1100 220 1100 270 "" 0 0 0 "">
<1100 350 1100 360 "" 0 0 0 "">
<980 220 1000 220 "" 0 0 0 "">
<980 220 980 240 "" 0 0 0 "">
<1100 270 1100 290 "" 0 0 0 "">
<1010 270 1100 270 "" 0 0 0 "">
<980 300 980 360 "" 0 0 0 "">
<1100 360 1100 760 "" 0 0 0 "">
<980 360 1100 360 "" 0 0 0 "">
<400 540 400 580 "" 0 0 0 "">
<400 760 970 760 "" 0 0 0 "">
<400 640 400 760 "" 0 0 0 "">
</Wires>
<Diagrams>
</Diagrams>
<Paintings>
<Text 80 840 12 #000000 0 "Simulation of the complete minimaster.tif circuit, http://www.m-bus.com/files/minimaster.tif.\n\nNotice the input is RS-232, e.g. 5 to 15V input is logical false (space) and -5 to -15V input is logical true (mark).\nFor more details see "Fundamentals of RS232 Serial Communications", Application Note 83, http://ecee.colorado.edu/~mcclurel/dan83.pdf\n\nRxD is ignored.\nTxD is simulated as a +/-10 V pulse.\n">
</Paintings>

View File

@@ -0,0 +1,31 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=40,27,1125,580,1.37051,0,0>
<Grid=10,10,0>
<DataSet=minimaster_002.qucs-s.dat>
<DataDisplay=minimaster_002.qucs-s.sch>
<OpenDisplay=1>
<Script=minimaster_002.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 150 298 928 198 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_002:v(txd)" #0000ff 0 3 0 0 0>
<Mkr 1.83688 304 -98 3 0 0>
<"ngspice/minimaster_002:v(mbusplus)" #ff0000 0 3 0 0 0>
<Mkr 1.68794 284 -242 3 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,102 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=40,-40,1797,971,0.668012,0,0>
<Grid=10,10,1>
<DataSet=minimaster_002.qucs-s.dat>
<DataDisplay=minimaster_002.qucs-s.dpl>
<OpenDisplay=1>
<Script=minimaster_002.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Vdc V1 1 220 90 18 -26 0 1 "15 V" 1>
<C C1 1 320 90 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<Vdc V2 1 200 730 18 -26 0 1 "15 V" 1>
<C C2 1 290 730 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<GND * 1 220 150 0 0 0 0>
<GND * 1 170 700 0 0 0 0>
<.DC DC1 1 110 260 0 37 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<_BJT BC337AP_1 1 1640 330 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R11 1 1640 660 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R8 1 1540 130 15 -26 0 1 "15k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R9 1 1540 690 15 -26 0 1 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<GND * 1 1190 430 0 0 0 0>
<R_SPICE R6 1 1240 710 15 -26 0 1 "2k2" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R5 1 1240 490 15 -26 0 1 "8k2" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_1 1 1240 630 -117 -23 0 1 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<_BJT BC337AP_2 1 1540 550 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R3 1 970 650 15 -26 0 1 "18k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 610 480 -28 19 0 2 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R10 1 1640 130 15 -26 0 1 "82" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BC558AP_1 1 970 390 12 41 1 1 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R7 1 1380 440 15 -26 0 1 "6k8" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_2 1 880 430 -115 -21 0 3 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<GND * 1 710 390 0 0 0 0>
<GND * 1 400 580 0 0 0 0>
<.SW SW1 1 360 180 0 59 0 0 "DC1" 1 "lin" 1 "V3" 1 "0V" 1 "7V" 1 "141" 1 "false" 0>
<Vdc V3 1 400 510 18 -26 0 1 "1.6V" 1>
</Components>
<Wires>
<220 60 320 60 "" 0 0 0 "">
<220 120 220 150 "" 0 0 0 "">
<170 700 200 700 "" 0 0 0 "">
<200 700 290 700 "" 0 0 0 "">
<200 760 290 760 "" 0 0 0 "">
<220 120 320 120 "" 0 0 0 "">
<320 60 1540 60 "" 0 0 0 "">
<290 760 970 760 "" 0 0 0 "">
<1540 720 1540 760 "" 0 0 0 "">
<1540 60 1540 100 "" 0 0 0 "">
<1540 160 1540 330 "" 0 0 0 "">
<1540 330 1610 330 "" 0 0 0 "">
<1640 360 1640 630 "mbusplus" 1670 480 151 "">
<1540 760 1640 760 "" 0 0 0 "">
<1640 690 1640 760 "mbusminus" 1670 700 45 "">
<1190 420 1190 430 "" 0 0 0 "">
<1190 420 1240 420 "" 0 0 0 "">
<1240 420 1240 460 "" 0 0 0 "">
<1240 520 1240 550 "" 0 0 0 "">
<1240 660 1240 680 "" 0 0 0 "">
<1240 760 1540 760 "" 0 0 0 "">
<1240 740 1240 760 "" 0 0 0 "">
<1540 580 1540 620 "" 0 0 0 "">
<1540 330 1540 520 "" 0 0 0 "">
<1240 550 1240 600 "" 0 0 0 "">
<1240 550 1510 550 "" 0 0 0 "">
<1540 620 1540 660 "" 0 0 0 "">
<970 760 1240 760 "" 0 0 0 "">
<970 680 970 760 "" 0 0 0 "">
<640 480 880 480 "" 0 0 0 "">
<400 480 580 480 "TxD" 500 450 68 "">
<1540 60 1640 60 "" 0 0 0 "">
<1640 60 1640 100 "" 0 0 0 "">
<1640 160 1640 300 "" 0 0 0 "">
<970 420 970 480 "" 0 0 0 "">
<1000 390 1380 390 "" 0 0 0 "">
<1380 390 1380 410 "" 0 0 0 "">
<1380 620 1540 620 "" 0 0 0 "">
<1380 470 1380 620 "" 0 0 0 "">
<880 390 940 390 "" 0 0 0 "">
<970 480 970 620 "" 0 0 0 "">
<880 480 970 480 "" 0 0 0 "">
<880 460 880 480 "" 0 0 0 "">
<880 390 880 400 "" 0 0 0 "">
<710 390 880 390 "" 0 0 0 "">
<400 540 400 580 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 595 290 787 170 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_002:v(mbusplus)" #0000ff 0 3 0 0 0>
<"ngspice/minimaster_002:v(txd)" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 80 840 12 #000000 0 "Simular to minimaster_001, but stripping down to just care for TxD.\n\nTxD is simulated as a +/-10 V pulse.\n">
</Paintings>

View File

@@ -0,0 +1,41 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=-140,-62,1413,953,1,46,62>
<Grid=10,10,0>
<DataSet=minimaster_003.qucs-s.dat>
<DataDisplay=minimaster_003.qucs-s.sch>
<OpenDisplay=1>
<Script=minimaster_003.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
<Rect 640 212 726 182 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_003:v(t2base)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 640 448 729 168 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_003:v(t5base)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 630 776 738 236 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_003:v(t4base)" #0000ff 0 3 0 0 0>
<"ngspice/minimaster_003:v(t4emitter)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 0 496 497 146 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_003:i(pr2)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 10 233 480 143 3 #c0c0c0 1 00 1 0 1 15 1 -0.000387336 0.001 0.00426069 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/minimaster_003:i(pr1)" #0000ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,109 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=40,-7,1797,945,0.850882,0,0>
<Grid=10,10,1>
<DataSet=minimaster_003.qucs-s.dat>
<DataDisplay=minimaster_003.qucs-s.dpl>
<OpenDisplay=1>
<Script=minimaster_003.qucs-s.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Vdc V1 1 220 90 18 -26 0 1 "15 V" 1>
<C C1 1 320 90 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<Vdc V2 1 200 730 18 -26 0 1 "15 V" 1>
<C C2 1 290 730 17 -26 0 1 "1 pF" 1 "" 0 "neutral" 0>
<GND * 1 220 150 0 0 0 0>
<GND * 1 170 700 0 0 0 0>
<.DC DC1 1 110 260 0 37 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<_BJT BC337AP_1 1 1640 330 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R_SPICE R11 1 1640 660 15 -26 0 1 "220k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R8 1 1540 130 15 -26 0 1 "15k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R9 1 1540 690 15 -26 0 1 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R2 1 610 480 -28 19 0 2 "3k3" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_2 1 880 430 -115 -21 0 3 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<GND * 1 400 580 0 0 0 0>
<Vdc V3 1 400 510 18 -26 0 1 "1.6V" 1>
<R_SPICE R6 1 1420 710 15 -26 0 1 "2k2" 1 "" 0 "" 0 "" 0 "" 0>
<Diode D_1N4148_1 1 1420 630 -117 -23 0 1 "222p" 1 "1.65" 1 "4p" 0 "0.333" 0 "0.7" 0 "0.5" 0 "0" 0 "0" 0 "2" 0 "68.6m" 0 "5.76n" 0 "0" 0 "0" 0 "1" 0 "1" 0 "75" 0 "1u" 0 "26.85" 0 "3.0" 0 "1.11" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "0.0" 0 "26.85" 0 "1.0" 0 "normal" 0>
<R_SPICE R3 1 700 610 15 -26 0 1 "18k" 1 "" 0 "" 0 "" 0 "" 0>
<R_SPICE R7 1 1080 520 15 -26 0 1 "6k8" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BC558AP_1 1 1080 430 12 -11 1 0 "pnp" 0 "1.15e-14" 0 "0.9872" 0 "0.996" 0 "0.1" 0 "0.012" 0 "84.56" 0 "8.15" 0 "5e-14" 0 "1.4" 0 "1.43e-14" 0 "1.1" 0 "330" 0 "13" 0 "0" 0 "0" 0 "0.95" 0 "0.4" 0 "0.2" 0 "1.6e-11" 0 "0.75" 0 "0.33" 0 "1.05e-11" 0 "0.565" 0 "0.415" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "4.93e-10" 0 "0" 0 "0" 0 "0" 0 "7.355e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<GND * 1 720 400 0 0 0 0>
<IProbe Pr1 1 880 510 16 -26 0 1>
<.SW SW1 1 360 180 0 59 0 0 "DC1" 1 "lin" 1 "V3" 1 "0V" 1 "15V" 1 "301" 1 "false" 0>
<GND * 1 1360 380 0 0 0 0>
<R_SPICE R5 1 1420 400 15 -26 0 1 "8k2" 1 "" 0 "" 0 "" 0 "" 0>
<_BJT BC337AP_2 1 1540 450 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<IProbe Pr2 1 1420 510 -41 -26 0 3>
</Components>
<Wires>
<220 60 320 60 "" 0 0 0 "">
<220 120 220 150 "" 0 0 0 "">
<170 700 200 700 "" 0 0 0 "">
<200 700 290 700 "" 0 0 0 "">
<200 760 290 760 "" 0 0 0 "">
<220 120 320 120 "" 0 0 0 "">
<320 60 1540 60 "" 0 0 0 "">
<290 760 700 760 "" 0 0 0 "">
<1540 720 1540 760 "" 0 0 0 "">
<1540 60 1540 100 "" 0 0 0 "">
<1540 160 1540 330 "" 0 0 0 "">
<1540 330 1610 330 "t5base" 1570 290 36 "">
<1640 360 1640 630 "mbusplus" 1670 480 151 "">
<1540 760 1640 760 "" 0 0 0 "">
<1640 690 1640 760 "mbusminus" 1670 700 45 "">
<640 480 700 480 "" 0 0 0 "">
<400 480 580 480 "TxD" 500 450 68 "">
<400 540 400 580 "" 0 0 0 "">
<1540 560 1540 660 "" 0 0 0 "">
<1420 760 1540 760 "" 0 0 0 "">
<1420 740 1420 760 "" 0 0 0 "">
<1420 660 1420 680 "" 0 0 0 "">
<700 760 1420 760 "" 0 0 0 "">
<700 640 700 760 "" 0 0 0 "">
<1080 560 1540 560 "" 0 0 0 "">
<1080 550 1080 560 "" 0 0 0 "">
<700 480 700 580 "" 0 0 0 "">
<1080 460 1080 490 "" 0 0 0 "">
<720 380 720 400 "" 0 0 0 "">
<720 380 880 380 "" 0 0 0 "">
<880 380 880 400 "" 0 0 0 "">
<1080 380 1080 400 "" 0 0 0 "">
<880 380 1080 380 "" 0 0 0 "">
<1640 60 1640 300 "" 0 0 0 "">
<1540 60 1640 60 "" 0 0 0 "">
<880 540 880 560 "" 0 0 0 "">
<770 560 880 560 "" 0 0 0 "">
<770 480 770 560 "" 0 0 0 "">
<700 480 770 480 "" 0 0 0 "">
<880 560 990 560 "" 0 0 0 "">
<990 430 990 560 "t2base" 1020 470 70 "">
<990 430 1050 430 "" 0 0 0 "">
<880 460 880 480 "" 0 0 0 "">
<1360 350 1360 380 "" 0 0 0 "">
<1360 350 1420 350 "" 0 0 0 "">
<1420 350 1420 370 "" 0 0 0 "">
<1420 430 1420 450 "" 0 0 0 "">
<1540 480 1540 560 "t4emitter" 1570 490 38 "">
<1540 330 1540 420 "" 0 0 0 "">
<1420 450 1510 450 "t4base" 1470 420 46 "">
<1420 450 1420 480 "" 0 0 0 "">
<1420 540 1420 600 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 595 250 787 170 3 #c0c0c0 1 00 1 0 0.2 1 1 -0.1 0.5 1.1 1 -0.1 0.5 1.1 315 0 225 "" "" "">
<"ngspice/minimaster_002:v(mbusplus)" #0000ff 0 3 0 0 0>
<"ngspice/minimaster_002:v(txd)" #ff0000 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 80 840 12 #000000 0 "Same as minimaster_002, but rearranging symbol placement a little.\nAnd removing R10 since only relevant for RX.\n\n">
</Paintings>

View File

@@ -0,0 +1,25 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,-90,1202,800,1,0,0>
<Grid=10,10,0>
<DataSet=zener_test.dat>
<DataDisplay=zener_test.sch>
<OpenDisplay=1>
<Script=zener_test.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
</Components>
<Wires>
</Wires>
<Diagrams>
</Diagrams>
<Paintings>
</Paintings>

View File

@@ -0,0 +1,98 @@
<Qucs Schematic 0.0.20>
<Properties>
<View=0,60,1687,992,1,0,0>
<Grid=10,10,1>
<DataSet=zener_test.dat>
<DataDisplay=zener_test.dpl>
<OpenDisplay=1>
<Script=zener_test.m>
<RunScript=0>
<showFrame=0>
<FrameText0=Title>
<FrameText1=Drawn By:>
<FrameText2=Date:>
<FrameText3=Revision:>
</Properties>
<Symbol>
</Symbol>
<Components>
<Lib D1 1 520 140 -34 6 0 3 "Z-Diodes" 0 "1N5350B" 0>
<GND * 1 40 210 0 0 0 0>
<_BJT BC337AP_1 1 520 600 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<Vrect V2 1 40 640 18 -26 0 1 "5 V" 1 "1 ms" 1 "1 ms" 1 "1 ns" 0 "1 ns" 0 "0 ns" 0>
<Vdc V3 1 160 670 18 -26 0 1 "5 V" 1>
<GND * 1 160 730 0 0 0 0>
<IProbe Pr3 1 520 370 -41 -26 0 3>
<R R1 1 240 600 -26 15 0 0 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<IProbe Pr1 1 380 560 -26 16 0 0>
<.SW SW3 1 230 720 0 59 0 0 "SW2" 1 "lin" 1 "R2" 1 "500" 1 "8.6k" 1 "20" 1 "false" 0>
<GND * 1 520 670 0 0 0 0>
<GND * 1 40 730 0 0 0 0>
<_BJT BC337AP_Q2 1 400 250 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R4 1 230 170 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<R R5 1 400 160 15 -26 0 1 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
<Vdc V1 1 40 140 18 -26 0 1 "42 V" 1>
<.TR TR1 1 870 90 0 59 0 0 "lin" 1 "0" 1 "5 ms" 1 "101" 0 "Trapezoidal" 0 "2" 0 "1 ns" 0 "1e-16" 0 "150" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "26.85" 0 "1e-3" 0 "1e-6" 0 "1" 0 "CroutLU" 0 "no" 0 "yes" 0 "0" 0>
<.SW SW1 1 620 370 0 59 0 0 "DC1" 1 "lin" 1 "R1" 1 "100 Ohm" 1 "100kOhm" 1 "1000" 1 "false" 0>
<.DC DC1 1 620 300 0 37 0 0 "26.85" 0 "0.001" 0 "1 pA" 0 "1 uV" 0 "no" 0 "150" 0 "no" 0 "none" 0 "CroutLU" 0>
<IProbe Pr4 1 630 210 -41 -26 0 3>
<.SW SW2 1 370 720 0 59 0 0 "DC1" 1 "lin" 1 "V1" 1 "12V" 1 "40V" 1 "29" 1 "false" 0>
<R_SPICE R2 1 520 510 15 -26 0 1 "8.6k" 1 "" 0 "" 0 "" 0 "" 0>
<IProbe Pr2 1 120 490 16 -26 0 1>
<GND * 1 230 500 0 0 0 0>
<IProbe Pr5 1 230 440 -41 -26 0 3>
<_BJT BC337AP_Q1 1 230 340 8 -26 0 0 "npn" 0 "3.94e-14" 0 "1" 0 "0.974" 0 "0.8" 0 "0.1" 0 "109.4" 0 "14.25" 0 "7.4e-15" 0 "1.3" 0 "3.16e-13" 0 "1.2" 0 "175" 0 "20.5" 0 "0" 0 "0" 0 "0.0539" 0 "0.1259" 0 "1.1" 0 "6.3e-11" 0 "0.75" 0 "0.33" 0 "1.58e-11" 0 "0.505" 0 "0.39" 0 "1" 0 "0" 0 "0.75" 0 "0" 0 "0.5" 0 "7.5e-10" 0 "0" 0 "0" 0 "0" 0 "8.5e-08" 0 "26.85" 0 "0" 0 "1" 0 "1" 0 "0" 0 "1" 0 "1" 0 "0" 0 "0" 0 "3" 0 "1.11" 0 "26.85" 0 "1" 0>
<R R3 1 150 340 -26 -53 0 2 "10k" 1 "26.85" 0 "0.0" 0 "0.0" 0 "26.85" 0 "european" 0>
</Components>
<Wires>
<40 110 230 110 "" 0 0 0 "">
<40 170 40 210 "" 0 0 0 "">
<400 110 520 110 "" 0 0 0 "">
<400 110 400 130 "" 0 0 0 "">
<230 110 400 110 "" 0 0 0 "">
<230 110 230 140 "" 0 0 0 "">
<230 200 230 250 "" 0 0 0 "">
<400 190 400 220 "" 0 0 0 "">
<400 280 520 280 "" 0 0 0 "">
<40 600 40 610 "" 0 0 0 "">
<160 600 160 640 "" 0 0 0 "">
<40 600 120 600 "Vin" 40 560 35 "">
<120 600 160 600 "" 0 0 0 "">
<520 280 520 340 "" 0 0 0 "">
<160 600 210 600 "" 0 0 0 "">
<410 600 490 600 "" 0 0 0 "">
<410 560 410 600 "" 0 0 0 "">
<270 600 350 600 "" 0 0 0 "">
<350 560 350 600 "" 0 0 0 "">
<520 630 520 670 "" 0 0 0 "">
<520 240 520 280 "out" 550 270 21 "">
<520 240 630 240 "" 0 0 0 "">
<520 170 630 170 "" 0 0 0 "">
<630 170 630 180 "" 0 0 0 "">
<520 400 520 480 "" 0 0 0 "">
<520 540 520 570 "" 0 0 0 "">
<120 520 120 600 "" 0 0 0 "">
<230 470 230 500 "" 0 0 0 "">
<230 370 230 410 "" 0 0 0 "">
<230 250 230 310 "coll" 170 260 31 "">
<230 250 370 250 "" 0 0 0 "">
<120 340 120 460 "" 0 0 0 "">
<180 340 200 340 "" 0 0 0 "">
<40 670 40 730 "" 0 0 0 "">
</Wires>
<Diagrams>
<Rect 526 916 495 202 3 #c0c0c0 1 00 1 12 2 40 0 0 0.002 0.001 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/i(pr4)" #0000ff 0 3 0 0 0>
</Rect>
<Rect 870 549 555 139 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -3.47585 10 40 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/tran.v(coll)" #ff0000 0 3 0 0 0>
</Rect>
<Rect 870 377 557 147 3 #c0c0c0 1 00 1 0 0.0005 0.005 1 -3.47585 10 40 1 -1 0.5 1 315 0 225 "" "" "">
<"ngspice/tran.v(vin)" #0000ff 0 3 0 0 0>
<"ngspice/tran.v(out)" #ff00ff 0 3 0 0 0>
</Rect>
</Diagrams>
<Paintings>
<Text 1050 720 12 #000000 0 "With a constant 5V input (e.g. V3 connected):\n\nFor R2 values up till 8.6k, D1 is loaded with 1mA or more for all\nV1 voltages over 21V (the minimum M-Bus bus voltage).\n\nThus, assuming the zener diode operates down to 1mA,\n8.6kOhm is the highest usable value for R2.\nIf the diode needs mode current than 1mA decrease\nR2 correspondingly. If the power supply is well above 21V\nthen 10kOhm is fine.\n">
<Text 1030 80 12 #000000 0 "With a 0/5V pulse input (e.g. V2 connected):\n\nQ1 inverts the input and shifts the voltage levels, e.g. 0V in (base)\ngives Vcc out (collector), and 5V in gives 0V out.\n\nR5 is a pullup resistor turned on/off by Q2. Without R5 then\nVout will not properly transition back to VCC.">
</Paintings>

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB