![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I've searched the forums and there is a thread with this exact title and a very similar question already posted, however the person only reported they figured it out and did not share his method. I'm trying to build a countdown clock, I'm at step one which is simply getting one of the circuits to run. I can't get the counter to work at all. I'm using multisim 9 educational, I've attached the diagram of what I have so far. I've pulled the count enable line to high and low with no result. Any advice is greatly appreciated. Last edited by chelm; 6th April 2008 at 04:38 PM. | |
| |
| | (permalink) |
| Pin 4 enable needs to be low. The load terminal needs to held high and brought low for an instant. I think you need to put the 220 ohm resistors to Vcc and let the dip switch pull the appropiate load terminal low.
__________________ The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best. Show me a different way. I have an open mind. | |
| |
| | (permalink) |
| Thanks for the reply! So is what I have for the most part correct? I'm attaching my latest revision. A couple questions: (pin 11) How would I go about setting the load to low and then holding it high? I'm not sure how to do that. (pin 12 MIN/MAX) Should I do anything with this? I'm not quite sure what it is for. Last edited by chelm; 6th April 2008 at 08:03 PM. | |
| |
| | (permalink) |
| So this circuit now works from: 99:99:99 But I can't get it to work for: 23:59:59 Again any help anyone can offer is greatly appreciated. I modified it further an can now get it to set a time to count down. I need to figure out a way to have the div counts start back from what they are set. Currently it counts 5,4,3,2,1,0,9,8,7,6,5,4,3,2,1,0,9... (where it starts at five) Last edited by chelm; 7th April 2008 at 02:08 AM. | |
| |
| | (permalink) |
| When counters are cascaded like this one of the outputs can be used to load the counters. I am not sure how to do it, perhaps another forum member can be of help. You do need some despiking capacitors of 100nF on a working circuit.
__________________ The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best. Show me a different way. I have an open mind. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| I've got it so it sets the time now, so I can set it to whatever I want. But you've hit the nail on the head, everything I've tried to do to do a div6, div5, and div3 just mess up the circuit. I tried putting in a D Flip flop, and I've tried logic gates but I can't get any of it to work. If anyone can help lead me down the right path I'd greatly appreciate it. I think that for the first div6 I need the logic to do the following: The 74LS190 U4 chip -- when MIN/MAX (pin 12) goes high it means that it has reached zero, so I need to pull the LOAD (pin 11) to Low without pulling the whole line that is connected to the J7 switch. The J7 switch is being used to set the number of hours, minutes and seconds. When it pulls the line to ground the numbers from the bottom row of switches are loaded. Then when I put it back to high the circuit counts down. (with the exception of the div by # not working. I just want to figure out what I'm doing wrong... I've tried the following with a D flip-flop, but it messes the circuit up. It doesn't count correctly and I have to completely disconnect the set line (Switch J7). Last edited by chelm; 7th April 2008 at 06:20 AM. | |
| |
| | (permalink) |
| I think I may have used the wrong chips for this. I'm not quite sure how to do a div6 while still being able to preset the numbers. I'm beginning to think it is impossible. | |
| |
| | (permalink) |
| Not impossible, just difficult. Difficult we do right away. Impossible just takes a little longer. You could use a Quad 2-Input Mux such as the 74LS157 to set the counter values for the divide by 6 counters. The Mux SELECT input is controlled by the J7 Preset/Load switch. This allows selection of either the load switch values or the divide by 6 values for the Counter Preset. (The Mux is not needed for the counters that go to 0 and rollover to 9.) The Mux Select input goes to J7. The Mux I0 DATA inputs go to the Counter Preset Switches and the Mux I1 data inputs go to the desired count preset value for a divide by 6. The Mux outputs go to the counter DATA inputs. In the J7 load position (Mux Select Low), the counter presets are thus connected to the switches. In the J7 run position (Select High) the presets are set to the hardwired values to cause the proper divide ratio. For example the 10's minute digit would be loaded to binary 5 on the next count after it reaches zero. Since the counter load control is asynchronous you will need a D flip-flop to delay the counter load signal until the count following 00 for the counters you want to divide by 6. Otherwise it would instantly load 5 when it reached 00. Connect the RCO signal from the counter to the D FF input and the FF Q output to the counter LOAD input. The FF clock should be 2Hz for proper sync of the LOAD signal. You will also need to add 2-input AND gates at the divide by 6 counter LOAD inputs. The AND inputs are the FF output and J7 so either can control the LOAD function for the divide by 6 counters. Hope you can follow all that. I could draw if for you but what's the fun in that. As they say in the textbooks, that's left as an exercise for the reader. It's not a trivial addition to the circuit but, I think, doable. | |
| |
| | (permalink) |
| Thanks, I'll give this a try this weekend. | |
| |
| | (permalink) | |
| Quote:
Last edited by chelm; 13th April 2008 at 06:13 PM. | ||
| |
| | (permalink) |
| I thought I had this figured out, but now it counts like this: 15-14-13-12-11-10-9-58-57-56... I have no idea why. | |
| |
| | (permalink) | |
| I modified this back to the origional circuit you looked at, I've tried everything I can think off with the clock input of the D FF, I put in a second clock at 2Hz, I've connected it to everything I can think of and it doesn't count quite correctly. It will either not count down the tens of seconds or it will miss a time, it counts the 5 twice when it flips. 00-59-58-57-56-54-53-52-51-50-59-58-57-56-54-53-52-51-50-49-48... Quote:
Last edited by chelm; 13th April 2008 at 10:14 PM. | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| I have the clock ramped up for testing. I thought that doubling the clock may be what you meant, so I tried it with 400kHz and it doesn't work. I'll attach a diagram of the circuit, basically it counts 5 for the tens of seconds twice and does some really strange stuff with carrying through to the minutes place. It's kind of hard to explain. I'll attach my mulitisim file for anyone who may want to have a go at this. I'm about to throw my hands in the air, I've spent an awful lot of time on this and it's just for my own purposes. I recently got my hands on a copy of multisim so I thought I'd see what I could remember from college physics, which is apparently very little. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| USBIO to step a Decade Counter? | lamedust | General Electronics Chat | 1 | 1st April 2008 10:41 PM |
| binary to decade counter | yankos243 | General Electronics Chat | 2 | 29th February 2008 09:21 AM |
| How we can do it in Assembly..Help Needed | Ayne | Micro Controllers | 37 | 29th December 2006 06:49 PM |
| 74190 up/down decade counter help | RAA | Electronic Projects Design/Ideas/Reviews | 21 | 1st December 2004 11:31 PM |
| up/down counter | bogdanfirst | Datasheet/Parts Requests | 13 | 27th April 2003 04:31 PM |