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 ?
 

Attachments

  • PseudoRandomPeriod.asc
    1 KB · Views: 334
Reactions: jjw
A bit more tinkering and I think I've sussed those Spice functions. In case anyone's interested, here's my solution:
 

Attachments

  • TestingRandom()&White().asc
    665 bytes · Views: 361
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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…