Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Limiting voltage value of a net in LTspice

Status
Not open for further replies.

analog_match

Member level 2
Member level 2
Joined
Nov 4, 2008
Messages
50
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
USA
Activity points
1,641
How can I limit the voltage value of a net within a certain range in LTspice. For example, I want to supply a voltage to my model which will act as the duty cycle control so its value must be between 0 and 0.9, but the output of the Gcv block is higher and so I need to restrict it in the range above.
 

If LTspice supports full Spice then there are MAX & MIN parameters you can add to a G source. However, I suspect it doesn't. If so you will gave to try to construct some more complex circuit to get round it.

A couple of switches which are triggered when the output of the G source reaches a certain value and changes the output to a fixed voltage may do the trick.

Keith.
 

Consult the LTspice manual for the description of the "B" Arbitrary behavioral voltage or current source element.
It allows powerful behavioral circuit definition, e.g. using a max() function in your case.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top