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.

LTspice simple syntax problem

cupoftea

Advanced Member level 6
Advanced Member level 6
Joined
Jun 13, 2021
Messages
3,057
Helped
62
Reputation
124
Reaction score
139
Trophy points
63
Activity points
15,948
Hi,
How do i make the time of a "Pulse" source equal to the voltage of a node in LTspice?
The attached LTspice wont work. Do you know how to solve?
 

Attachments

  • LTspice syntax.png
    LTspice syntax.png
    21.2 KB · Views: 84
SPICE parameters are static, not dependent on voltages and currents. You can vary parameters per run but not during run.

To generate dynamical variable pulse times, use pwm generator circuits or similar.
 
I've experimented (simulated) with a circuit similar to sample-n-hold.

1) Expose a capacitor to an incoming voltage charging it to that voltage.
2) Have it turn on a transistor.
3) The cap discharges as it biases the transistor to generate a pulse.
4) The pulse length is roughly comparable to the original voltage.
--- Updated ---

Components need to be adjusted: capacitor, discharge resistance, threshold levels, etc.

sample-n-hold produces pulse length comparable to incoming V.png
 
Last edited:
How do i make the time of a "Pulse" source equal to the voltage of a node in LTspice?
Isn´t this the classical analog way of generating PWM?

comparator:
* IN1 = triangle
* IN2 = control voltage
* OUTPUT = pulses where the pulse width linearely depends on control voltage

Klaus
 
Last edited:

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top