![]() | ![]() | ![]() |
| | |||||||
| 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 don't have multisim but I simulated the divide-by-five counter on Electronic Workbench. I found a couple problems on my simulation and I don't know whether they apply to your problems but you might check: 1. The standard clock generator model generated two clocks out of phase, i.e. the rising edge of the 1000Hz clock appeared on the following edge of the 500Hz clock. The two rising edges need to be coincident. I corrected that by generating the 500Hz clock from the 1000Hz using the 7474 FF connected as a divide-by-2 (connect D to Q'). 2. My 74LS190 simulation model gave an incorrect RCO output. It should be only the width of the negative clock pulse, but it was equal to a whole clock pulse. I corrected that with an added OR gate. (This should only be needed if the simulation model is incorrect. The actual circuit should operate as stated.) I corrected these errors and it appears to work properly, counting 5, 3, 2, 1, 0, 5, 4,... Attached is a view of the logic simulation. TRACES Top - 1000Hz Clock 2nd - 500Hz Clock 3rd - Counter QA Out 4th - Counter QB Out 5th - Counter QC Out 6th - Counter QD Out (Always 0) 7th - RCO Out 8th - D FF Out Hope this Helps Counter Out.JPG | |
| |
| | (permalink) |
| I'll give that a try and see if it works in multisim. | |
| |
| | (permalink) |
| So are you saying to use 2 FF, one to cut the time in half and the other to control the div counting? | |
| |
| | (permalink) | |
| Quote:
P.S. I noticed in my schematic that the 7474 was not grounded. Pin 7 should go to ground. | ||
| |
| | (permalink) |
| So I should use the output of the FF that cuts the clock in half to go into the CLK input of the second FF for div counting right? Could I use the output of the FF that cuts the time in half on all of the DIV counters? Or should I have a different one for each div counter? So I know I have to cut the time in half for the tens of seconds, but do I need to cut it in half again for the tens of minutes? | |
| |
| | (permalink) |
| I may have completely miss understood what you were saying, but I think I wired this the way you suggested. I'm having 2 problems now, first it counts down from 59-9-59-50-59-50-49-9 it's also decrementing the minutes on the second 59 count, it's just strange. (I only modified the counter for tenths of seconds) | |
| |
| | (permalink) | |
| Quote:
You did the clocks backwards. If you look at my circuit the high frequency goes to the load FF (U17 in your circuit) and the divide-by-2 frequency goes to the counter. ----------------------------- I used to be fast and sloppy. But now that I'm getting older, I'm losing my speed. | ||
| |
| | (permalink) |
| Yes I misspoke, or mis-wrote rather. Tens of seconds is what I meant, sorry. I'll take a closer look at this, I thought I had it setup the same way you did. I apologize if I missed something. | |
| |
| | (permalink) |
| So I connected it like this: I think this is what you meant, but now they count independently. The seconds count like this: 59-50-59-50-49-40-49-40-39-30-39-30-29... | |
| |
| | (permalink) |
| Sorry, I wasn't more clear. The divide-by-2 FF clock is now your main 1 second clock and goes to all the counters. The undivided clock goes only to the carry FF's. | |
| |
| 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 |