|
|||||||
| Home | Forums | Rules | Articles | Store | Gallery | Blogs | Register | Donations | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Search |
| Digital Line Level DACs, Digital Crossovers, Equalizers, etc. |
|
Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving |
|
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
diyAudio Member
Join Date: Jul 2008
|
I have a 555 generating pulses feeding a 4029 or a 4017 which counts them. When the 4029/4017 reaches, say, 5 counts, I detect it with a couple of AND gates and then reset the 4029/4017 so it starts counting again from 0.
This works fine when the output of the divider/counter is used to drive say a 7-seg display or an LED. However this technique of resetting still allows the count to reach number '5' even for a few milliseconds and this is undesirable. What is the proper way of counting to X and resetting at X+1 but without allowing X+1 to appear at the output ? |
|
|
|
#2 |
|
diyAudio Member
|
Are you really seeing a few mS of '5'? I can imagine a spike of less than a microsecond, but if it's milliseconds there's something wrong.
Do you have a schematic? jan
__________________
/Yes! Its out: Linear Audio Vol 5! I'm not an "accademic", just a plodder who loves a challenge - Ian Hegglun |
|
|
|
#3 |
|
diyAudio Member
Join Date: Jul 2008
|
Maybe not 100s of milliseconds but there is a spike at the output. As you can see the outputs will also need to drive relay switches, and I am scared that some relays receiving spikes and maybe even accidentally switch on.
|
|
|
|
#4 |
|
diyAudio Member
Join Date: Nov 2009
Location: Cape Town
|
Maybe skip the and gates? Here's something similar for inspiration: PROPORTIONAL RADIO CONTROL by SM0VPO
edit: Oops, cross-post. |
|
|
|
#5 | |
|
diyAudio Member
|
Quote:
So you should use the gate detection of '5' to reset and clock the counter at the same time. You can combine clocks with a couple of diodes. Or maybe you should invest some time in using a microcontroller. Cheaper and simpler, but needs a learning curve. jan
__________________
/Yes! Its out: Linear Audio Vol 5! I'm not an "accademic", just a plodder who loves a challenge - Ian Hegglun |
|
|
|
|
#6 | |
|
diyAudio Member
Join Date: Jul 2008
|
Quote:
Maybe this spike is nothing to worry about, I am just looking for a cleaner way. I have no experience with microcontrollers, but I have read they are programmable in assembly, and I do code in assembly (Z80, 68000 and mostly 80x86) - however it probably is a huge learning curve for me right now. |
|
|
|
|
#7 |
|
diyAudio Member
|
I did my share of assembly, but that's sooo 20th century ;-)
Now adays I use Flowcode to just 'draw' the flowchart, sim it to check and let the computer worry how to convert it to a hex file and load it into the controller. ![]() jan
__________________
/Yes! Its out: Linear Audio Vol 5! I'm not an "accademic", just a plodder who loves a challenge - Ian Hegglun |
|
|
|
#8 | |
|
diyAudio Member
Join Date: Nov 2009
Location: Los Angeles
|
Quote:
Or, take a totally different approach and use a microcontroller and do the 7 segment decoding in software where you can easily implement text in addition to digits. Of course I'm advocating mission creep but fewer packages. Or use a multicharacter display instead of discrete 7 segment units. G² |
|
|
|
|
#9 |
|
diyAudio Member
Join Date: May 2007
|
Use a low pass filter to drive a Schmitt trigger? That will smooth away the spike. Remember, all digital circuits are merely overdriven analogue circuits so you can use analogue tricks - the circuit itself is using all sorts of analogue tricks you don't want (stray capacitance, ground bounce etc.) so why not add one you do want?
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| irs2092 resetting with low frequencies. | nigelwright7557 | Class D | 84 | 20th February 2011 09:06 PM |
| Digital counter for counting to e.g 4 or 8 | lykkedk | Digital Source | 0 | 17th May 2004 06:30 PM |
| Nineteen Hundred Ninety Nine Posts And Counting ;-)... | mrfeedback | Everything Else | 12 | 21st May 2003 05:59 PM |
| New To Site? | Need Help? |