Physics Forums

Physics Forums (http://www.physicsforums.com/index.php)
-   Electrical Engineering (http://www.physicsforums.com/forumdisplay.php?f=102)
-   -   Tips for test? (http://www.physicsforums.com/showthread.php?t=16069)

david90 Mar11-04 01:17 AM

tips for test?
 
My intro to digital system teacher is hard. He gives question that ask u design circuit such as make a counter that count 3 5 9 0 3 using mod-6 counter + encoder + decoder. Do question like this have a systematic way of solving or is only solvable if u have mad experience? He seems to give question that test ur EXPERIENCE rather than steps. What should I do? I don't think I can do every problem cuz heisquestions have a big range.

Guybrush Threepwood Mar11-04 02:38 AM

ok, some ideeas
a mod-6 counter is easy to made by resetting the counter when the output reaches 6 = 110b. So it will count 0, 1, 2, 3, 4, 5 for ever ... btw are you sure you didn't forget a number in your series?

the output of the counter goes into a decoder and the outputs of the decoder are scrambled to the inputs of the encoder according to the series you want to get.

PS: i would draw a picture but I'm a bit busy so I'll try later if you didn't understand.....

david90 Mar11-04 02:15 PM

the example that I gave you was just a sample. here is the real problem.

Using a MOD-8 counter, 3 to 8 decoder and a 8 to 3 priority encoder, make a circuit that will count 0 > 5 > 2 > 7 > 4 > 1 > 6 > 3 > back to zero

Guybrush Threepwood Mar12-04 01:22 AM

same things apply just use a 3 bit counter (that would be a usual mod-8 counter since it counts from 0 to 7)

david90 Mar13-04 02:45 AM

elaborate or give an example of what u mean by scamble

Guybrush Threepwood Mar15-04 01:33 AM

OK, so your 8-bit counter counts from 0 to 7
When you put n (n beeing the output of the counter) on the selection inputs of the 3to8 decoder you get an level of 0 on decoder output n.
So in our example you will get the outputs of the decoder to have 0 logic in the order 0 to 7.
Then you connect output 0 of the decoder to input 0 on the priority encoder. Output 1 of the decoder will be connected to input 5 on the priority encoder. Output 2 of the decoder will be connected to input 2 of the priority encoder. And so on ... get the picture?
In this way when your counter is working at the output of the priority encoder you'll find your series. If you want another series just connect the decoder and priority encoder in a different way....

david90 Mar15-04 01:48 PM

"OK, so your 8-bit counter counts from 0 to 7
When you put n (n beeing the output of the counter) on the selection inputs of the 3to8 decoder you get an level of 0 on decoder output n.
So in our example you will get the outputs of the decoder to have 0 logic in the order 0 to 7.
Then you connect output 0 of the decoder to input 0 on the priority encoder. Output 1 of the decoder will be connected to input 5 on the priority encoder. Output 2 of the decoder will be connected to input 2 of the priority encoder. And so on ... get the picture?
In this way when your counter is working at the output of the priority encoder you'll find your series. If you want another series just connect the decoder and priority encoder in a different way...."


Thank you Guybrush Threepwood for saving my ***. I totally get what ur saying but there is a problem.

If you connect output 0 of decoder to input 0 of the PE, what will you do when the counter outputs a 4 and into the decoder and decoder output is 5? Not sure if i'm right or not but I think the output 0 of the decoder shouldn't be connected to anything to make the PE output a zero. countter > 0, input decoder >0, output of decoder is 0 and if u connect that to 0 input of the PE, wouldn't that make the PE output a 1 instead of zero?

Guybrush Threepwood Mar15-04 02:45 PM

Quote:

Originally posted by david90
If you connect output 0 of decoder to input 0 of the PE, what will you do when the counter outputs a 4 and into the decoder and decoder output is 5? Not sure if i'm right or not but I think the output 0 of the decoder shouldn't be connected to anything to make the PE output a zero. countter > 0, input decoder >0, output of decoder is 0 and if u connect that to 0 input of the PE, wouldn't that make the PE output a 1 instead of zero?
not sure I completely understand you but once the counter starts there is only one output active at one time for the decoder. So there's only one input for the priority encoder to interpret. Maybe you should tell how your decoder works (there are a lot of models of decoders out there....)

PS: may work computer is broken so expect some delay in my response ..... :frown: :frown:


All times are GMT -5. The time now is 12:41 PM.

Powered by vBulletin Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2014 Physics Forums