one shots

An area for asking questions, making suggestion, share ideas and place circuit examples.
Post Reply
billw
Posts: 8
Joined: Fri Oct 16, 2009 11:33 am

one shots

Post by billw »

Is there any way to implement a one-shot delay?
Last edited by billw on Mon Oct 19, 2009 2:47 pm, edited 2 times in total.
User avatar
admin
Site Admin
Posts: 407
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: one shots

Post by admin »

There are no delays per se, but gates get evaluated in same way as real signal will be spread. That means that if you need to have your signal delayed you can add two inverters and they do the trick.
However this technic is not reliable both in the program itself as well as in the real life circuit. You’d better try to find a logical solution for your problem. If you can share what you are trying to achieve we can think about it together.
billw
Posts: 8
Joined: Fri Oct 16, 2009 11:33 am

Re: one shots

Post by billw »

Eugene,

Thanks for the response!!
I have implemented one-shots using counters. It is a count to n and stop. A positive input trigger clears the counter and starts counting clock pulses until the desired count is reached and it stops and outputs a positive transition. This of course, requires that you carefully consider the over all timing scheme if clocking is required for other circuits. I have made re-triggerable and non re-triggerable circuits. I will try to find a place to upload them so I can share them.

It would still be nice to have some type of user defined delay elements to substitute for r/c charging schemes used in many circuits (i.e. power on resets, oscillators, multi-vibrators, watchdog timers, etc.) that must be independent of the master clock. Perhaps you can consider this for a future version.

Thanks Again,
Bill
Last edited by billw on Fri Oct 30, 2009 10:09 am, edited 3 times in total.
User avatar
admin
Site Admin
Posts: 407
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: one shots

Post by admin »

Hi Bill,
You can upload your circuit right here or create a new topic.
Thanks,
Eugene
billw
Posts: 8
Joined: Fri Oct 16, 2009 11:33 am

Re: one shots

Post by billw »

Here is a circuit for a 4 bit programmable re-trigerable one shot. It can be expanded by adding more timer elements and expanding the NAND gate (see drawing). Each timer element consists of 1 D flip flop, 1 JK flip flop and 1 exclusive NOR gate.
1. Apply the bits to each element (MSB on top)
2. Load the bits into the elements by applying a positive transition on the Load pin.
3. Start the timer by applying a positive transition to the Trig pin.
4. The one shot will time out when a count of n-1 has been reached (a value of 9 will give a 8 clock cycle pulse)
5. Enjoy!
Attachments
timer2.png
timer2.png (34.18 KiB) Viewed 18702 times
Last edited by billw on Fri Oct 30, 2009 4:45 pm, edited 1 time in total.
User avatar
admin
Site Admin
Posts: 407
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: one shots

Post by admin »

Thank you for your wonderful contribution. Can you also upload the project file itself so people will just need to copy/paste what they want?
:D
billw
Posts: 8
Joined: Fri Oct 16, 2009 11:33 am

Re: one shots

Post by billw »

Eugene,

How do I upload projects? I can't seem to upload a circuitproject file as an attachment.

Bill
User avatar
admin
Site Admin
Posts: 407
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: one shots

Post by admin »

Sorry, this extension was not allowed. I’ve enabled it. Can you please try again?
billw
Posts: 8
Joined: Fri Oct 16, 2009 11:33 am

Re: one shots

Post by billw »

Here is the project file
Attachments
timer.CircuitProject
Programmable One Shot
(167.9 KiB) Downloaded 1064 times
Post Reply