Plecs { Name "full_bridge_peak_current_mode_TL431" Version "3.7" CircuitModel "ContStateSpace" StartTime "0.0" StopTime "simuation_total_time" Solver "radau" MaxStep "1e-3" InitStep "-1" FixedStep "1e-3" Refine "1" ZCStepSize "1e-9" RelTol "1e-3" AbsTol "-1" TurnOnThreshold "0" SyncFixedStepTasks "2" UseSingleCommonBaseRate "1" LossVariableLimitExceededMsg "3" NegativeSwitchLossMsg "3" DivisionByZeroMsg "2" StiffnessDetectionMsg "2" MaxConsecutiveZCs "1000" AssertionAction "1" InitializationCommands "fid = fopen(\"myfile.txt\");\n\nfor i = 1:100\n\tfli" "ne = fgetl(fid);\n\t\n\tif(fline == -1)\n\t\tbreak;\n\tend\n\n\tdisp(fline);" "\n\teval(fline);\n\t\t\n\t\nend\n\nfclose(fid)" InitialState "1" SystemState "" CodeGenTopologies "[]" CodeGenSwitchingAlgorithm "1" CodeGenMatrixCodingStyle "1" CodeGenParameterInlining "2" CodeGenInliningExceptions "AAAACwAAAAAA" CodeGenIntegerWordSize "32" CodeGenAbsTimeUsageMsg "3" CodeGenBaseName "" CodeGenOutputDir "" CodeGenExtraOpts "" ExtendedMatrixPrecision "1" MatrixSignificanceCheck "2" Schematic { Location [0, 45; 3840, 2060] ZoomFactor 1.40437 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Capacitor Name "Cz" Show on Position [760, 825] Direction left Flipped off Parameter { Variable "C" Value "Cz_TL431" Show on } Parameter { Variable "v_init" Value "0" Show off } } Component { Type Resistor Name "R4" Show on Position [1010, 755] Direction down Flipped on Parameter { Variable "R" Value "Rupper" Show on } } Component { Type Resistor Name "R5" Show on Position [1010, 890] Direction down Flipped on Parameter { Variable "R" Value "Rbottom_TL431" Show on } } Component { Type Subsystem Name "TL431" Show on Position [680, 855] Direction left Flipped off Frame [-10, -10; 10, 10] LabelPosition [13, 13] LabelAlign topleft SampleTime "-1" MaskType "TL431 Shunt Regulator" MaskDescription "The TL431 is an adjustable three-terminal regulator wit" "h a reference voltage of 2.5 volts." MaskDisplay "line([-6, -6, 6, -6], [-7, 7, 0, -7])\nline([6, 6], [-7, " "7])\nline([6, 3], [-7, -7])\nline([6, 9], [7, 7])\nline([-20, -6], [0, 0])\nl" "ine([20, 6], [0, 0])\nline([0, 0], [4, 20])\n" MaskIconFrame off MaskIconOpaque on MaskIconRotates on Parameter { Variable "Vref" Prompt "Internal reference voltage" Type FreeText Value "2.5" Show on Tunable off TabName "" } Parameter { Variable "Vmax" Prompt "Maximum output voltage" Type FreeText Value "Inf" Show off Tunable off TabName "" } Terminal { Type Port Position [0, 15] Direction down } Terminal { Type Port Position [15, 0] Direction right } Terminal { Type Port Position [-15, 0] Direction left } Schematic { Location [422, 761; 819, 973] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Port Name "Vref" Show on Position [60, 70] Direction right Flipped off Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "K" Show on Position [300, 80] Direction right Flipped on Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "A" Show on Position [300, 145] Direction right Flipped on Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Subsystem Name "Op-Amp1" Show off Position [185, 80] Direction up Flipped off Frame [-20, -20; 20, 20] LabelPosition [0, -23] LabelAlign down SampleTime "-1" MaskType "Op-Amp" MaskDescription "Ideal op-amp with finite gain." MaskHelp "opamp.html" MaskDisplay "line([-20, -20, 20, -20], [20, -20, 0, 20])\ntext(-14" ", 10, '+')\ntext(-14, -10, '-')" MaskIconFrame off MaskIconOpaque on MaskIconRotates on MaskInit "tau=1/(2*pi*fc)" Parameter { Variable "A" Prompt "Open-loop gain" Type FreeText Value "750" Show on Tunable off TabName "" } Parameter { Variable "fc" Prompt "Cutoff frequency (Hz)" Type FreeText Value "2.5e3" Show on Tunable off TabName "" } Parameter { Variable "Vsat" Prompt "Vo max" Type FreeText Value "Vmax" Show on Tunable off TabName "" } Terminal { Type Port Position [-25, 10] Direction left } Terminal { Type Port Position [-25, -10] Direction left } Terminal { Type Port Position [25, 0] Direction right } Terminal { Type Port Position [0, 15] Direction down } Schematic { Location [1271, 681; 1745, 814] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Port Name "+" Show on Position [30, 25] Direction right Flipped off Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "-" Show on Position [30, 65] Direction right Flipped off Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "out" Show on Position [405, 25] Direction right Flipped on Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Voltmeter Name "Vm1" Show on Position [80, 45] Direction up Flipped off } Component { Type VoltageSource Name "V" Show on Position [355, 45] Direction down Flipped on Parameter { Variable "DiscretizationBehavior" Value "2" Show off } Parameter { Variable "StateSpaceInlining" Value "2" Show off } } Component { Type Port Name "gnd" Show on Position [405, 65] Direction right Flipped on Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Gain Name "Gain" Show on Position [130, 45] Direction right Flipped off Parameter { Variable "K" Value "A" Show off } Parameter { Variable "Multiplication" Value "1" Show off } } Component { Type TransferFunction Name "Transfer Fcn" Show on Position [280, 45] Direction right Flipped off Frame [-30, -15; 30, 15] LabelPosition [0, 18] LabelAlign up Parameter { Variable "Numerator" Value "[1]" Show off } Parameter { Variable "Denominator" Value "[tau 1]" Show off } Parameter { Variable "X0" Value "0" Show off } } Component { Type Saturation Name "Saturation" Show on Position [195, 45] Direction right Flipped off Parameter { Variable "UpperLimit" Value "Vsat" Show on } Parameter { Variable "LowerLimit" Value "0" Show on } } Connection { Type Wire SrcComponent "+" SrcTerminal 1 DstComponent "Vm1" DstTerminal 1 } Connection { Type Wire SrcComponent "-" SrcTerminal 1 DstComponent "Vm1" DstTerminal 2 } Connection { Type Signal SrcComponent "Vm1" SrcTerminal 3 DstComponent "Gain" DstTerminal 1 } Connection { Type Wire SrcComponent "V" SrcTerminal 1 DstComponent "out" DstTerminal 1 } Connection { Type Wire SrcComponent "V" SrcTerminal 2 DstComponent "gnd" DstTerminal 1 } Connection { Type Signal SrcComponent "Transfer Fcn" SrcTerminal 2 DstComponent "V" DstTerminal 3 } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 DstComponent "Saturation" DstTerminal 1 } Connection { Type Signal SrcComponent "Saturation" SrcTerminal 2 DstComponent "Transfer Fcn" DstTerminal 1 } } } Component { Type DCVoltageSource Name "V_dc2" Show off Position [120, 115] Direction down Flipped on Parameter { Variable "V" Value "Vref" Show on } } Component { Type Diode Name "D1" Show off Position [245, 80] Direction right Flipped off Parameter { Variable "Vf" Value "Vref" Show on } Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Connection { Type Wire SrcComponent "Op-Amp1" SrcTerminal 1 Points [120, 90] DstComponent "V_dc2" DstTerminal 1 } Connection { Type Wire SrcComponent "Op-Amp1" SrcTerminal 3 DstComponent "D1" DstTerminal 2 } Connection { Type Wire SrcComponent "Op-Amp1" SrcTerminal 2 DstComponent "Vref" DstTerminal 1 } Connection { Type Wire SrcComponent "A" SrcTerminal 1 Points [185, 145] Branch { Points [120, 145] DstComponent "V_dc2" DstTerminal 2 } Branch { DstComponent "Op-Amp1" DstTerminal 4 } } Connection { Type Wire SrcComponent "D1" SrcTerminal 1 DstComponent "K" DstTerminal 1 } } } Component { Type Subsystem Name "Sub5" Show off Position [650, 670] Direction left Flipped on Frame [-25, -25; 25, 25] LabelPosition [0, 0] SampleTime "-1" MaskType "Optocoupler" MaskDescription "Behavioral model of an optocoupler. The optocoupler is " "modeled with an diode at the input and a controlled current source at the out" "put. The current transfer ratio is constant." MaskDisplay "line([6, 6, -6, 6], [-22, -8, -15, -22])\nline([-6, -6], " "[-22, -8])\nline([-15, -6], [-15, -15])\nline([15, 6], [-15, -15])\n\nline([5" ", 5], [-3, 7])\nline([5, 3], [8, 3])\nline([5, 7], [8, 3])\nline([-5, -5], [-" "3, 7])\nline([-5, -3], [8, 3])\nline([-5, -7], [8, 3])\n\nline([-10, 10], [13" ", 13])\nline([5, 15], [13, 22])\nline([-5, -15], [13, 22])\n\nline([-15, -13]" ", [22, 17])\nline([-15, -9.5], [22.5, 20.5])\n\nline([-15, -15], [-15, -25])" "\nline([15, 15], [-15, -25])\nline([-15, -15], [23, 25])\nline([15, 15], [22," " 25])" MaskIconFrame on MaskIconOpaque on MaskIconRotates on Parameter { Variable "Vled" Prompt "Diode Forward Voltage Drop" Type FreeText Value "VF_opto" Show off Tunable off TabName "" } Parameter { Variable "ctr" Prompt "Current Transfer Ratio" Type FreeText Value "CTR" Show off Tunable off TabName "" } Parameter { Variable "Vsat" Prompt "Vce sat" Type FreeText Value "VCE_sat" Show off Tunable off TabName "" } Parameter { Variable "Cvce" Prompt "Capacitance (Vce)" Type FreeText Value "Copto" Show off Tunable off TabName "" } Terminal { Type Port Position [15, -30] Direction up } Terminal { Type Port Position [-15, -30] Direction up } Terminal { Type Port Position [-15, 30] Direction down } Terminal { Type Port Position [15, 30] Direction down } Schematic { Location [99, 762; 691, 998] ZoomFactor 1 SliderPosition [0, 0] ShowBrowser off BrowserWidth 100 Component { Type Ammeter Name "Am1" Show off Position [95, 120] Direction up Flipped off } Component { Type CurrentSource Name "I" Show on Position [355, 115] Direction down Flipped off Parameter { Variable "DiscretizationBehavior" Value "2" Show off } Parameter { Variable "StateSpaceInlining" Value "2" Show off } } Component { Type Port Name "1" Show off Position [45, 45] Direction right Flipped off Parameter { Variable "Index" Value "1" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "2" Show off Position [45, 160] Direction right Flipped off Parameter { Variable "Index" Value "2" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "e" Show on Position [515, 160] Direction right Flipped on Parameter { Variable "Index" Value "3" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Port Name "c" Show on Position [515, 60] Direction right Flipped on Parameter { Variable "Index" Value "4" Show on } Parameter { Variable "Width" Value "-1" Show off } } Component { Type Diode Name "LED" Show on Position [95, 75] Direction up Flipped off Parameter { Variable "Vf" Value "Vled" Show on } Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type Capacitor Name "C1" Show on Position [450, 115] Direction up Flipped off Parameter { Variable "C" Value "Cvce" Show on } Parameter { Variable "v_init" Value "0" Show off } } Component { Type Gain Name "Gain" Show on Position [290, 115] Direction right Flipped off Parameter { Variable "K" Value "ctr" Show off } Parameter { Variable "Multiplication" Value "1" Show off } } Component { Type SignalMux Name "Mux" Show off Position [155, 115] Direction right Flipped off Parameter { Variable "Width" Value "2" Show off } } Component { Type Voltmeter Name "Vm1" Show off Position [395, 115] Direction up Flipped off } Component { Type Function Name "Limit" Show on Position [215, 115] Direction right Flipped off Frame [-20, -10; 20, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "f(u)" Value "min(u[1]/Vsat,1)*u[2]" Show off } } Connection { Type Wire SrcComponent "1" SrcTerminal 1 Points [95, 45] DstComponent "LED" DstTerminal 1 } Connection { Type Wire SrcComponent "2" SrcTerminal 1 Points [95, 160] DstComponent "Am1" DstTerminal 2 } Connection { Type Wire SrcComponent "LED" SrcTerminal 2 DstComponent "Am1" DstTerminal 1 } Connection { Type Wire SrcComponent "I" SrcTerminal 1 Points [355, 60; 395, 60] Branch { Points [450, 60] Branch { DstComponent "c" DstTerminal 1 } Branch { DstComponent "C1" DstTerminal 1 } } Branch { DstComponent "Vm1" DstTerminal 1 } } Connection { Type Wire SrcComponent "I" SrcTerminal 2 Points [355, 160; 395, 160] Branch { Points [450, 160] Branch { DstComponent "e" DstTerminal 1 } Branch { DstComponent "C1" DstTerminal 2 } } Branch { DstComponent "Vm1" DstTerminal 2 } } Connection { Type Signal SrcComponent "Vm1" SrcTerminal 3 Points [425, 115; 425, 35; 140, 35] DstComponent "Mux" DstTerminal 2 } Connection { Type Signal SrcComponent "Mux" SrcTerminal 1 DstComponent "Limit" DstTerminal 1 } Connection { Type Signal SrcComponent "Am1" SrcTerminal 3 DstComponent "Mux" DstTerminal 3 } Connection { Type Signal SrcComponent "Limit" SrcTerminal 2 DstComponent "Gain" DstTerminal 1 } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 DstComponent "I" DstTerminal 3 } Annotation { Name "Limits effective ctr\nwhen Vce < Vsat" Position [215, 160] } } } Component { Type Resistor Name "Rz" Show on Position [860, 825] Direction left Flipped on Parameter { Variable "R" Value "Rz_TL431" Show on } } Component { Type Resistor Name "Rled" Show on Position [680, 765] Direction up Flipped on Parameter { Variable "R" Value "Rled" Show on } } Component { Type Resistor Name "Rbias" Show on Position [715, 690] Direction up Flipped on Parameter { Variable "R" Value "1e3" Show on } } Component { Type Resistor Name "Rpullup" Show on Position [535, 620] Direction up Flipped on Parameter { Variable "R" Value "Rp" Show on } } Component { Type DCVoltageSource Name "V_dc1" Show off Position [500, 560] Direction left Flipped on Parameter { Variable "V" Value "Vref_IC" Show on } } Component { Type Ground Name "Ground4" Show off Position [455, 560] Direction right Flipped off } Component { Type Ground Name "Ground2" Show off Position [1010, 940] Direction up Flipped off } Component { Type Ground Name "Ground3" Show off Position [535, 755] Direction up Flipped off } Component { Type Voltmeter Name "iref1" Show on Position [430, 680] Direction down Flipped off } Component { Type Gain Name "Gain" Show on Position [365, 680] Direction left Flipped off Parameter { Variable "K" Value "-1" Show off } Parameter { Variable "Multiplication" Value "1" Show off } } Component { Type Ground Name "Ground5" Show off Position [430, 755] Direction up Flipped off } Component { Type Capacitor Name "Cp1" Show on Position [535, 675] Direction up Flipped off Parameter { Variable "C" Value "Cp_TL431" Show on } Parameter { Variable "v_init" Value "0" Show off } } Component { Type Resistor Name "R6" Show on Position [960, 655] Direction right Flipped on Parameter { Variable "R" Value "Rfl" Show on } } Component { Type Capacitor Name "C2" Show on Position [900, 680] Direction down Flipped on Parameter { Variable "C" Value "1e-6" Show on } Parameter { Variable "v_init" Value "Vz" Show on } } Component { Type Ground Name "Ground6" Show off Position [900, 715] Direction up Flipped off } Component { Type Reference SrcComponent "Components/Electrical/Power Semiconductors/Z1" Name "Z1" Show on Position [785, 680] Direction left Flipped off Frame [-10, -10; 10, 10] LabelPosition [13, 0] LabelAlign left Parameter { Variable "Vz" Value "Vz" Show on } Parameter { Variable "Rz" Value "0.01" Show off } Parameter { Variable "Vf" Value "0.9" Show off } Parameter { Variable "Rf" Value "0.01" Show off } Terminal { Type Port Position [15, 0] Direction right } Terminal { Type Port Position [-15, 0] Direction left } } Component { Type Ground Name "Ground7" Show off Position [785, 715] Direction up Flipped off } Component { Type Comparator Name "Comparator2" Show on Position [395, 1070] Direction right Flipped off } Component { Type Sum Name "Sum3" Show off Position [325, 1155] Direction left Flipped off Parameter { Variable "IconShape" Value "2" Show off } Parameter { Variable "Inputs" Value "|++" Show off } } Component { Type TriangleGenerator Name "Artifical Ramp2" Show on Position [375, 1155] Direction left Flipped off Parameter { Variable "Min" Value "0" Show off } Parameter { Variable "Max" Value "Va" Show off } Parameter { Variable "f" Value "fsw" Show off } Parameter { Variable "DutyCycle" Value "0.99" Show off } Parameter { Variable "Delay" Value "0" Show off } } Component { Type Saturation Name "Saturation" Show on Position [265, 1075] Direction right Flipped off Parameter { Variable "UpperLimit" Value "VM_i*0.99" Show on } Parameter { Variable "LowerLimit" Value "VM_i*0.01" Show on } } Component { Type Label Name "Label4" Show off Position [1010, 615] Direction up Flipped off Parameter { Variable "Tag" Value "Vout" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type From Name "From1" Show off Position [325, 1195] Direction up Flipped off Parameter { Variable "Tag" Value "Ipri" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type PulseGenerator Name "Pulse\nGenerator1" Show on Position [425, 1000] Direction right Flipped off Parameter { Variable "Hi" Value "1" Show off } Parameter { Variable "Lo" Value "0" Show off } Parameter { Variable "f" Value "fsw" Show off } Parameter { Variable "DutyCycle" Value "0.01" Show off } Parameter { Variable "Delay" Value "0" Show off } } Component { Type Reference SrcComponent "Components/Control/Logical/SR Flip-flop" Name "SR Flip-flop" Show on Position [520, 1060] Direction up Flipped off Frame [-20, -20; 20, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "x_init" Value "0" Show off } Terminal { Type Input Position [-20, 10] Direction left } Terminal { Type Input Position [-20, -10] Direction left } Terminal { Type Output Position [24, -10] Direction right } Terminal { Type Output Position [24, 10] Direction right } } Component { Type Reference SrcComponent "Components/Control/Logical/JK Flip-flop" Name "JK Flip-flop" Show on Position [670, 1050] Direction up Flipped off Frame [-20, -20; 20, 20] LabelPosition [0, 23] LabelAlign up Parameter { Variable "trigger" Value "1" Show off } Parameter { Variable "x_init" Value "0" Show off } Terminal { Type Input Position [-20, -10] Direction left } Terminal { Type Input Position [-20, 0] Direction left } Terminal { Type Output Position [24, -10] Direction right } Terminal { Type Output Position [24, 10] Direction right } Terminal { Type Input Position [-20, 10] Direction left } } Component { Type Constant Name "Constant" Show on Position [575, 1000] Direction right Flipped off Frame [-10, -10; 10, 10] LabelPosition [0, 13] LabelAlign up Parameter { Variable "Value" Value "1" Show off } } Component { Type LogicalOperator Name "Logical\nOperator" Show on Position [840, 1010] Direction up Flipped off Parameter { Variable "Operator" Value "1" Show off } Parameter { Variable "Inputs" Value "2" Show off } } Component { Type From Name "From" Show off Position [800, 1015] Direction right Flipped off Parameter { Variable "Tag" Value "osc" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type From Name "From2" Show off Position [800, 995] Direction right Flipped off Parameter { Variable "Tag" Value "Q1" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type LogicalOperator Name "Logical\nOperator1" Show on Position [840, 1090] Direction up Flipped off Parameter { Variable "Operator" Value "1" Show off } Parameter { Variable "Inputs" Value "2" Show off } } Component { Type From Name "From3" Show off Position [800, 1095] Direction right Flipped off Parameter { Variable "Tag" Value "osc" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type From Name "From4" Show off Position [800, 1075] Direction right Flipped off Parameter { Variable "Tag" Value "Q2" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Goto Name "Goto2" Show off Position [605, 1095] Direction right Flipped off Parameter { Variable "Tag" Value "osc" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Goto Name "Goto3" Show off Position [720, 1040] Direction right Flipped off Parameter { Variable "Tag" Value "Q1" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Goto Name "Goto4" Show off Position [720, 1060] Direction right Flipped off Parameter { Variable "Tag" Value "Q2" Show off } Parameter { Variable "Visibility" Value "2" Show off } } Component { Type Goto Name "Goto5" Show off Position [885, 1010] Direction right Flipped off Parameter { Variable "Tag" Value "PWM1" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Goto Name "Goto6" Show off Position [885, 1090] Direction right Flipped off Parameter { Variable "Tag" Value "PWM2" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type DCVoltageSource Name "V_dc" Show off Position [240, 250] Direction down Flipped on Parameter { Variable "V" Value "Vinput" Show on } } Component { Type Inductor Name "L1" Show off Position [745, 170] Direction left Flipped off Parameter { Variable "L" Value "Lout" Show on } Parameter { Variable "i_init" Value "0" Show off } } Component { Type Resistor Name "R" Show off Position [995, 265] Direction down Flipped off Parameter { Variable "R" Value "Rload50" Show on } } Component { Type Capacitor Name "C1" Show off Position [915, 330] Direction down Flipped on Parameter { Variable "C" Value "Cout" Show on } Parameter { Variable "v_init" Value "Vout" Show on } } Component { Type PlecsProbe Name "Probe\nIL-Vo" Show on Position [105, 240] Direction right Flipped off } Component { Type SignalDemux Name "Demux1" Show off Position [150, 240] Direction right Flipped on Parameter { Variable "Width" Value "2" Show off } } Component { Type Voltmeter Name "Vout" Show on Position [1150, 275] Direction up Flipped off } Component { Type Goto Name "Goto" Show off Position [1190, 275] Direction right Flipped off Parameter { Variable "Tag" Value "Vo" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Resistor Name "R1" Show off Position [1050, 420] Direction down Flipped off Parameter { Variable "R" Value "Rload50" Show on } } Component { Type Switch Name "S1" Show on Position [1050, 465] Direction down Flipped off Parameter { Variable "s_init" Value "0" Show off } } Component { Type PulseGenerator Name "50% to 100%" Show on Position [995, 465] Direction right Flipped off Parameter { Variable "Hi" Value "1" Show off } Parameter { Variable "Lo" Value "0" Show off } Parameter { Variable "f" Value "fdisturbance" Show off } Parameter { Variable "DutyCycle" Value "0.5" Show off } Parameter { Variable "Delay" Value "0" Show off } } Component { Type Ground Name "Ground" Show off Position [1050, 515] Direction up Flipped off } Component { Type Transformer Name "Tr2" Show on Position [565, 260] Direction right Flipped on Parameter { Variable "Windings" Value "[1 1]" Show off } Parameter { Variable "n" Value "[primary_turns_number secondary_turns_number]" Show off } Parameter { Variable "Polarity" Value "+" Show off } Parameter { Variable "Lm" Value "inf" Show off } Parameter { Variable "im0" Value "0" Show off } } Component { Type Mosfet Name "T2" Show off Position [460, 320] Direction down Flipped on Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "s_init" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type From Name "From9" Show off Position [505, 320] Direction left Flipped off Parameter { Variable "Tag" Value "PWM1" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Mosfet Name "T3" Show off Position [460, 195] Direction down Flipped on Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "s_init" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type From Name "From10" Show off Position [505, 195] Direction left Flipped off Parameter { Variable "Tag" Value "PWM2" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Ground Name "Ground1" Show off Position [915, 405] Direction up Flipped off } Component { Type Mosfet Name "T4" Show off Position [340, 320] Direction down Flipped on Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "s_init" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type Mosfet Name "T5" Show off Position [340, 195] Direction down Flipped on Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "s_init" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type From Name "From12" Show off Position [385, 195] Direction left Flipped off Parameter { Variable "Tag" Value "PWM1" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type From Name "From13" Show off Position [385, 320] Direction left Flipped off Parameter { Variable "Tag" Value "PWM2" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Diode Name "D1" Show on Position [620, 185] Direction down Flipped off Parameter { Variable "Vf" Value "0" Show off } Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type Diode Name "D2" Show on Position [620, 330] Direction down Flipped off Parameter { Variable "Vf" Value "0" Show off } Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type Diode Name "D3" Show on Position [670, 185] Direction down Flipped off Parameter { Variable "Vf" Value "0" Show off } Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type Diode Name "D4" Show on Position [670, 330] Direction down Flipped off Parameter { Variable "Vf" Value "0" Show off } Parameter { Variable "Ron" Value "0" Show off } Parameter { Variable "thermal" Value "" Show off } Parameter { Variable "T_init" Value "0" Show off } } Component { Type Label Name "Label3" Show off Position [1050, 145] Direction up Flipped off Parameter { Variable "Tag" Value "Vout" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Component { Type Resistor Name "R2" Show off Position [915, 250] Direction down Flipped off Parameter { Variable "R" Value "Cout_ESR" Show on } } Component { Type Resistor Name "R3" Show off Position [815, 170] Direction left Flipped off Parameter { Variable "R" Value "Lout_ESR" Show on } } Component { Type Scope Name "Scope" Show on Position [190, 240] Direction up Flipped off Location [0, 0; 0, 0] State "" SavedViews "" HeaderState "" PlotPalettes "" Axes "2" TimeRange "0" ScrollingMode "1" SingleTimeAxis "1" Open "0" Ts "-1" SampleLimit "0" XAxisLabel "" Axis { Name "IL" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "Vout" AutoScale 1 MinValue 0 MaxValue 1 Signals {} SignalTypes [ ] Untangle 0 KeepBaseline off BaselineValue 0 } Fourier { SingleXAxis on AxisLabel "Frequency" Scaling 0 PhaseDisplay 0 Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } Axis { Name "" AutoScale 1 MinValue 0 MaxValue 1 Signals {} Untangle 0 KeepBaseline off BaselineValue 0 } } } Component { Type Resistor Name "Rsense" Show on Position [290, 360] Direction right Flipped off Parameter { Variable "R" Value "Rsense" Show off } } Component { Type Voltmeter Name "Vm" Show on Position [290, 410] Direction right Flipped off } Component { Type Goto Name "Goto1" Show off Position [290, 445] Direction down Flipped off Parameter { Variable "Tag" Value "Ipri" Show off } Parameter { Variable "Visibility" Value "1" Show off } } Connection { Type Wire SrcComponent "Cz" SrcTerminal 1 Points [680, 825] Branch { DstComponent "TL431" DstTerminal 2 } Branch { DstComponent "Rled" DstTerminal 1 } } Connection { Type Wire SrcComponent "Cz" SrcTerminal 2 DstComponent "Rz" DstTerminal 2 } Connection { Type Wire SrcComponent "R4" SrcTerminal 1 Points [1010, 655] Branch { DstComponent "R6" DstTerminal 2 } Branch { DstComponent "Label4" DstTerminal 1 } } Connection { Type Wire SrcComponent "R4" SrcTerminal 2 Points [1010, 855] Branch { Points [910, 855] Branch { DstComponent "TL431" DstTerminal 1 } Branch { Points [910, 825] DstComponent "Rz" DstTerminal 1 } } Branch { DstComponent "R5" DstTerminal 1 } } Connection { Type Wire SrcComponent "R5" SrcTerminal 2 Points [1010, 920] Branch { Points [680, 920] DstComponent "TL431" DstTerminal 3 } Branch { DstComponent "Ground2" DstTerminal 1 } } Connection { Type Wire SrcComponent "Sub5" SrcTerminal 1 Points [715, 655] Branch { Points [785, 655] Branch { Points [900, 655] Branch { DstComponent "R6" DstTerminal 1 } Branch { DstComponent "C2" DstTerminal 1 } } Branch { DstComponent "Z1" DstTerminal 1 } } Branch { DstComponent "Rbias" DstTerminal 2 } } Connection { Type Wire SrcComponent "Sub5" SrcTerminal 2 Points [680, 720] Branch { DstComponent "Rled" DstTerminal 2 } Branch { Points [715, 720] DstComponent "Rbias" DstTerminal 1 } } Connection { Type Wire SrcComponent "Sub5" SrcTerminal 3 Points [620, 705; 535, 705] Branch { DstComponent "Ground3" DstTerminal 1 } Branch { DstComponent "Cp1" DstTerminal 2 } } Connection { Type Wire SrcComponent "Sub5" SrcTerminal 4 Points [535, 655] Branch { DstComponent "Cp1" DstTerminal 1 } Branch { DstComponent "Rpullup" DstTerminal 1 } Branch { Points [430, 655] DstComponent "iref1" DstTerminal 2 } } Connection { Type Wire SrcComponent "V_dc1" SrcTerminal 1 Points [535, 560] DstComponent "Rpullup" DstTerminal 2 } Connection { Type Wire SrcComponent "V_dc1" SrcTerminal 2 DstComponent "Ground4" DstTerminal 1 } Connection { Type Wire SrcComponent "iref1" SrcTerminal 1 DstComponent "Ground5" DstTerminal 1 } Connection { Type Signal SrcComponent "iref1" SrcTerminal 3 DstComponent "Gain" DstTerminal 1 } Connection { Type Wire SrcComponent "Ground6" SrcTerminal 1 DstComponent "C2" DstTerminal 2 } Connection { Type Wire SrcComponent "Z1" SrcTerminal 2 DstComponent "Ground7" DstTerminal 1 } Connection { Type Signal SrcComponent "Artifical Ramp2" SrcTerminal 1 DstComponent "Sum3" DstTerminal 3 } Connection { Type Signal SrcComponent "Sum3" SrcTerminal 1 Points [325, 1065] DstComponent "Comparator2" DstTerminal 1 } Connection { Type Signal SrcComponent "Saturation" SrcTerminal 2 DstComponent "Comparator2" DstTerminal 2 } Connection { Type Signal SrcComponent "Gain" SrcTerminal 2 Points [205, 680; 205, 1075] DstComponent "Saturation" DstTerminal 1 } Connection { Type Signal SrcComponent "Constant" SrcTerminal 1 Points [605, 1000; 605, 1040] Branch { DstComponent "JK Flip-flop" DstTerminal 1 } Branch { Points [605, 1060] DstComponent "JK Flip-flop" DstTerminal 5 } } Connection { Type Signal SrcComponent "Logical\nOperator" SrcTerminal 1 DstComponent "Goto5" DstTerminal 1 } Connection { Type Signal SrcComponent "From" SrcTerminal 1 DstComponent "Logical\nOperator" DstTerminal 3 } Connection { Type Signal SrcComponent "From2" SrcTerminal 1 Points [810, 995] DstComponent "Logical\nOperator" DstTerminal 2 } Connection { Type Signal SrcComponent "Logical\nOperator1" SrcTerminal 1 DstComponent "Goto6" DstTerminal 1 } Connection { Type Signal SrcComponent "From3" SrcTerminal 1 DstComponent "Logical\nOperator1" DstTerminal 3 } Connection { Type Signal SrcComponent "From4" SrcTerminal 1 Points [810, 1075] DstComponent "Logical\nOperator1" DstTerminal 2 } Connection { Type Signal SrcComponent "JK Flip-flop" SrcTerminal 4 DstComponent "Goto4" DstTerminal 1 } Connection { Type Signal SrcComponent "JK Flip-flop" SrcTerminal 3 DstComponent "Goto3" DstTerminal 1 } Connection { Type Signal SrcComponent "SR Flip-flop" SrcTerminal 3 Points [575, 1050] Branch { DstComponent "JK Flip-flop" DstTerminal 2 } Branch { Points [575, 1095] DstComponent "Goto2" DstTerminal 1 } } Connection { Type Signal SrcComponent "Pulse\nGenerator1" SrcTerminal 1 Points [485, 1000] DstComponent "SR Flip-flop" DstTerminal 2 } Connection { Type Signal SrcComponent "Comparator2" SrcTerminal 3 DstComponent "SR Flip-flop" DstTerminal 1 } Connection { Type Wire SrcComponent "R" SrcTerminal 2 Points [995, 170] Branch { Points [915, 170] Branch { DstComponent "R2" DstTerminal 2 } Branch { DstComponent "R3" DstTerminal 2 } } Branch { Points [1050, 170] Branch { Points [1150, 170] DstComponent "Vout" DstTerminal 1 } Branch { DstComponent "R1" DstTerminal 2 } Branch { DstComponent "Label3" DstTerminal 1 } } } Connection { Type Signal SrcComponent "Probe\nIL-Vo" SrcTerminal 1 DstComponent "Demux1" DstTerminal 1 } Connection { Type Signal SrcComponent "Vout" SrcTerminal 3 DstComponent "Goto" DstTerminal 1 } Connection { Type Wire SrcComponent "R" SrcTerminal 1 Points [995, 385] Branch { Points [915, 385] Branch { DstComponent "C1" DstTerminal 2 } Branch { Points [670, 385] Branch { Points [620, 385] DstComponent "D2" DstTerminal 1 } Branch { DstComponent "D4" DstTerminal 1 } } Branch { DstComponent "Ground1" DstTerminal 1 } } Branch { Points [1150, 385] DstComponent "Vout" DstTerminal 2 } } Connection { Type Wire SrcComponent "S1" SrcTerminal 2 DstComponent "R1" DstTerminal 1 } Connection { Type Signal SrcComponent "50% to 100%" SrcTerminal 1 DstComponent "S1" DstTerminal 3 } Connection { Type Wire SrcComponent "S1" SrcTerminal 1 DstComponent "Ground" DstTerminal 1 } Connection { Type Signal SrcComponent "From9" SrcTerminal 1 DstComponent "T2" DstTerminal 3 } Connection { Type Signal SrcComponent "From10" SrcTerminal 1 DstComponent "T3" DstTerminal 3 } Connection { Type Wire SrcComponent "T2" SrcTerminal 2 Points [460, 360; 340, 360] Branch { Points [325, 360] Branch { DstComponent "Rsense" DstTerminal 1 } Branch { Points [325, 410] DstComponent "Vm" DstTerminal 1 } } Branch { DstComponent "T4" DstTerminal 2 } } Connection { Type Wire SrcComponent "T3" SrcTerminal 1 Points [460, 150; 340, 150] Branch { Points [240, 150] DstComponent "V_dc" DstTerminal 1 } Branch { DstComponent "T5" DstTerminal 1 } } Connection { Type Wire SrcComponent "T5" SrcTerminal 2 Points [340, 240] Branch { DstComponent "T4" DstTerminal 1 } Branch { DstComponent "Tr2" DstTerminal 1 } } Connection { Type Wire SrcComponent "T2" SrcTerminal 1 Points [460, 270] Branch { DstComponent "T3" DstTerminal 2 } Branch { DstComponent "Tr2" DstTerminal 2 } } Connection { Type Signal SrcComponent "From12" SrcTerminal 1 DstComponent "T5" DstTerminal 3 } Connection { Type Signal SrcComponent "From13" SrcTerminal 1 DstComponent "T4" DstTerminal 3 } Connection { Type Wire SrcComponent "Tr2" SrcTerminal 3 Points [575, 220; 620, 220] Branch { DstComponent "D1" DstTerminal 1 } Branch { DstComponent "D2" DstTerminal 2 } } Connection { Type Wire SrcComponent "Tr2" SrcTerminal 4 Points [670, 270] Branch { DstComponent "D4" DstTerminal 2 } Branch { DstComponent "D3" DstTerminal 1 } } Connection { Type Wire SrcComponent "D1" SrcTerminal 2 Points [670, 170] Branch { DstComponent "D3" DstTerminal 2 } Branch { DstComponent "L1" DstTerminal 1 } } Connection { Type Wire SrcComponent "C1" SrcTerminal 1 DstComponent "R2" DstTerminal 1 } Connection { Type Wire SrcComponent "R3" SrcTerminal 1 DstComponent "L1" DstTerminal 2 } Connection { Type Signal SrcComponent "Demux1" SrcTerminal 2 DstComponent "Scope" DstTerminal 1 } Connection { Type Signal SrcComponent "Demux1" SrcTerminal 3 DstComponent "Scope" DstTerminal 2 } Connection { Type Wire SrcComponent "V_dc" SrcTerminal 2 Points [240, 360; 255, 360] Branch { DstComponent "Rsense" DstTerminal 2 } Branch { Points [255, 410] DstComponent "Vm" DstTerminal 2 } } Connection { Type Signal SrcComponent "Vm" SrcTerminal 3 DstComponent "Goto1" DstTerminal 1 } Connection { Type Signal SrcComponent "From1" SrcTerminal 1 DstComponent "Sum3" DstTerminal 2 } } ProbeBlock { Tag "full_bridge_peak_current_mode_TL431/Probe\\nIL-Vo" Probe { Component "L1" Path "" Signals {"Inductor current"} } Probe { Component "C1" Path "" Signals {"Capacitor voltage"} } } } DemoSignature "c72A1dKNFbJtmAygvdFaRl7WaDHtF61nYXbM+saNBnk="