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.

Generating fixed-width pulses with pseudo-random periods

Status
Not open for further replies.

alec_t

Well-Known Member
Most Helpful Member
I've been tinkering with LTspice's rand(), random() and white() functions without success, trying to model a pulse generator for fixed-width pulses at random (or pseudo-random) intervals. In the end I gave up and just used the circuit below. Anyone know of a simpler model ?
PseudoRandomPeriod.gif
 

Attachments

  • PseudoRandomPeriod.asc
    1 KB · Views: 324
  • Like
Reactions: jjw
A bit more tinkering and I think I've sussed those Spice functions. In case anyone's interested, here's my solution:
TestingRandom()&White().gif
 

Attachments

  • TestingRandom()&White().asc
    665 bytes · Views: 349
I am not familiar at all with those functions, Alec. In fact I did not know they were there.

Is it the equivalent to randomly varying frequency and also duty cycle, right?

I do not intend to derail your thread. My question: what would be the expresion governing duty cycle? Random as well? Thinking of this if I had to implement this with a micro.
 
what would be the expresion governing duty cycle? Random as well?
Hi Agustin. Yes, since pulse width is fixed and period is random the duty cycle will also be random.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top