All About Circuits Forum  

Go Back   All About Circuits Forum > Electronics Forums > Homework Help

Notices

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.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 11-17-2008, 06:59 AM
cheesemaster7 cheesemaster7 is offline
New Member
 
Join Date: Nov 2008
Posts: 2
Default 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.
Reply With Quote
  #2  
Old 11-18-2008, 07:58 PM
RiJoRI RiJoRI is offline
Senior Member
 
Join Date: Aug 2007
Location: Long Island,NY (GMT-5)
Posts: 536
Default

That's why I use microcontrollers!

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

--Rich
Reply With Quote
  #3  
Old 11-19-2008, 03:31 PM
cheesemaster7 cheesemaster7 is offline
New Member
 
Join Date: Nov 2008
Posts: 2
Default

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.
Reply With Quote
  #4  
Old 11-19-2008, 04:57 PM
RiJoRI RiJoRI is offline
Senior Member
 
Join Date: Aug 2007
Location: Long Island,NY (GMT-5)
Posts: 536
Default

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
Reply With Quote
  #5  
Old 10-21-2012, 07:32 PM
Ahmedthabet Ahmedthabet is offline
New Member
 
Join Date: Oct 2012
Posts: 2
Default

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

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

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
at your service
Reply With Quote
  #8  
Old 10-23-2012, 07:09 AM
crutschow's Avatar
crutschow crutschow is offline
Senior Member
 
Join Date: Mar 2008
Location: L.A. USA
Posts: 6,560
Blog Entries: 1
Default

Quote:
Originally Posted by Ahmedthabet View Post
Can Any of you teach me how to design a 5 bit binary counter that counts from 0 to 27 then resets?
Don't hijack someone else's thread. Please start your own new thread.
__________________
Zapper
Curmudgeon Elektroniker
Reply With Quote
  #9  
Old 10-23-2012, 07:15 AM
crutschow's Avatar
crutschow crutschow is offline
Senior Member
 
Join Date: Mar 2008
Location: L.A. USA
Posts: 6,560
Blog Entries: 1
Default

Quote:
Originally Posted by cheesemaster7 View Post
....................................
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
Reply With Quote
Reply   Post New Thread

Tags
, , , ,


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
Up/down counter with master slave flip flops saltykarp General Electronics Chat 0 11-10-2008 08:05 PM
Designing a 3-bit counter with D flip flops Mearyk81 Homework Help 4 05-31-2008 10:44 PM
3 minute timer circuit using 74LS163 counter and flip flops circuit help zeneez Homework Help 8 03-22-2008 03:16 PM
How to design Asynchronous circuit (microcontroller (16 bit to 64)) Brian The Projects Forum 3 02-14-2007 11:07 PM
4bit synchronous counter using D Flip Flops dankipiti Homework Help 1 02-14-2005 08:21 AM

Thread Tools
Display Modes

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 Jump


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


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Powered by vBulletin
Copyright ©2000 - 2014, vBulletin Solutions, Inc.