All About Circuits Forum 5-bit Asynchronous Counter using JK Flip-Flops, counts from 01001 to 11011
 Blogs FAQ Members List Today's Posts Search Today's Posts Mark Forums Read

 Homework Help Stuck on a textbook question or coursework? Cramming for a test and need help understanding something? Post your questions and attempts here and let others help.

#1
11-17-2008, 06:59 AM
 cheesemaster7 New Member Join Date: Nov 2008 Posts: 2
5-bit Asynchronous Counter using JK Flip-Flops, counts from 01001 to 11011

I need some help with a problem I'm facing. I'm to design a 5-bit asynchronous counter in multisim using 74LS76 (JKs). Here's the catch. It must count from 9 (01001) to 27 (11011) continuously. When the circuit is started up, it has to start counting from "0". It only passes through "0" once upon initialization.

Now I've figured out how to count from 0 to 27, you just connect all the Q outputs to the next sequential JK flip-flop's clock input. Then connect the Q0,Q1,Q3 and Q4 outputs to a 4-input AND gate which is connected to each JK flip-flop's reset. When the count reachs 11011, the flip-flops get reset back to zero. I would like them to reset to nine AFTER the initial count starts at zero

Does anyone know how I can start the circuit at zero, then count from 9 to 27? I can't really get it to start counting on anything but zero. I know there's some logic gates involved here, but I'm not sure where their outputs go. I know this is complicated and my explanation may not be the best, but any help would be much appreciated, thanks.
#2
11-18-2008, 07:58 PM
 RiJoRI Senior Member Join Date: Aug 2007 Location: Long Island,NY (GMT-5) Posts: 536

That's why I use microcontrollers!

Hint: Take a look at the 74xx76's PRESET inputs, and their effect on the outputs.

--Rich
#3
11-19-2008, 03:31 PM
 cheesemaster7 New Member Join Date: Nov 2008 Posts: 2

Thanks for the tip Rojori. I've set the PRESET inputs so that the counter counts from 9 to 27, but I'm having trouble initialize the count at zero. Essentially, this counter should count like this (in HEX): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1A, 1B, 9, 10, 11...1B, 9...
Currently, my counter starts at 9, counts to 27 (1B), then starts over at 9 again. I want it to start at 0, count to 27, start again back at 9, then continuously repeat.
I built a detection circuit so that when the counter hits 27, all of the flip-flops are cleared and, simultaneously, the presets on the first and fourth bit are set low, thus enabling the count to start at 9.
The hardest part is making this count correctly from 0 to 27 the first time, then count from 9 to 27 everytime other than the first. Any more help would be appreciated, thanks.
#4
11-19-2008, 04:57 PM
 RiJoRI Senior Member Join Date: Aug 2007 Location: Long Island,NY (GMT-5) Posts: 536

I want it to start at 0, count to 27, start again back at 9, then continuously repeat. I built a detection circuit so that when the counter hits 27, all of the flip-flops are cleared and, simultaneously, the presets on the first and fourth bit are set low, thus enabling the count to start at 9.

Hmmmm, sounds like we're getting to the "show me the schematic" stage. But before that, I would look at what the detector is doing at power-up; that is, why is it detecting a 1B instead of a 00? Disconnect the clock circuit, tie the input to the counter LOW, power up the circuit and snoop around, checking voltage levels.

--Rich
#5
10-21-2012, 07:32 PM
 Ahmedthabet New Member Join Date: Oct 2012 Posts: 2

Can Any of you teach me how to design a 5 bit binary counter that counts from 0 to 27 then resets?
#6
10-21-2012, 07:33 PM
 Ahmedthabet New Member Join Date: Oct 2012 Posts: 2

0 to 25 sorry!
#7
10-21-2012, 08:48 PM
 MrCarlos Senior Member Join Date: Jan 2010 Location: México Posts: 195

Hello Ahmedthabet

This binary counter, will be developed with Flip-Flip-s?
What would identification number?
What to do when the counter reaches 25?
Reset to zero and stop??
Reset to zero and continue counting from 0 to 25?

regards
#8
10-23-2012, 07:09 AM
 crutschow Senior Member Join Date: Mar 2008 Location: L.A. USA Posts: 6,560 Blog Entries: 1

Quote:
 Originally Posted by Ahmedthabet Can Any of you teach me how to design a 5 bit binary counter that counts from 0 to 27 then resets?
__________________
Zapper
Curmudgeon Elektroniker
#9
10-23-2012, 07:15 AM
 crutschow Senior Member Join Date: Mar 2008 Location: L.A. USA Posts: 6,560 Blog Entries: 1

Quote:
 Originally Posted by cheesemaster7 .................................... The hardest part is making this count correctly from 0 to 27 the first time, then count from 9 to 27 everytime other than the first. Any more help would be appreciated, thanks.
Seems simple enough. What determines the "first time"? Is it a switch closure or power-on? Either way you use that to reset all the counters to zero. Then when it detects 27 it presets the counters to 9.
__________________
Zapper
Curmudgeon Elektroniker

 Tags 5bit, asynchronous, counter, counts, flipflops

 Related Site Pages Section Title Worksheet Counters Worksheet Flip-flop circuits Worksheet Digital codes Textbook Finite-state machines : Principles Of Digital Computing Video Lecture Asynchronous Counters - Digital Video Lecture Counters - Digital Textbook Finite State Machines : Sequential Circuits Counters Textbook Asynchronous counters : Sequential Circuits Counters Textbook Synchronous counters : Sequential Circuits Counters Textbook Asynchronous flip-flop inputs : Multivibrators

 Similar Threads Thread Thread Starter Forum Replies Last Post saltykarp General Electronics Chat 0 11-10-2008 08:05 PM Mearyk81 Homework Help 4 05-31-2008 10:44 PM zeneez Homework Help 8 03-22-2008 03:16 PM Brian The Projects Forum 3 02-14-2007 11:07 PM dankipiti Homework Help 1 02-14-2005 08:21 AM

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Electronics Forums     General Electronics Chat     The Projects Forum     Homework Help     Electronics Resources Software, Microcomputing, and Communications Forums     Programmer's Corner     Embedded Systems and Microcontrollers     Computing and Networks     Radio and Communications Circuits and Projects     The Completed Projects Collection Abstract Forums     Math     Physics     General Science All About Circuits Commmunity Forums     Off-Topic     The Flea Market     Feedback and Suggestions

All times are GMT. The time now is 03:12 AM.