Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

LTSpice - Digital - Pulse Generator on Edge? (monostable)

Status
Not open for further replies.

ACharnley

Member
Is there an out-the-box digital control that'll do it?

I can generate using components but want to keep it clean with a single digital control if possible (better replication of the MCU which will be doing it in software).
 
Is this what you are trying to do ?

1643632033704.png


The above also allows you to control the pulse width generated at output.

Or is this -

1643632172858.png


What is the rate at the input, latency to output, and output pulse width range you want ?


Regards, Dana.
 
Hi

There is no pre-made leading edge detector in LTspice.

but you can make one like this:

1643638422683.png

The two schmitt buffer devices provide input hysteresis for the AND device
The inverter "delay" device sets the pulse width using the Td parameter.

A trailing edge detector:

1643638724914.png
 
Brill will try that in an hour. Currently doing it as the attached. Works fine but want to keep to digital representation.
 

Attachments

  • Screenshot_2022-01-31_14-35-48.png
    Screenshot_2022-01-31_14-35-48.png
    31.5 KB · Views: 256
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top