Author Topic: Problems with a ripple counter + logic gates. Please help!  (Read 908 times)

0 Members and 1 Guest are viewing this topic.

Offline PauloConstantinoTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 154
  • Country: gb
Problems with a ripple counter + logic gates. Please help!
« on: January 10, 2017, 08:51:34 pm »
Hey friends,

this is my first post here.

I was designing a circuit and in the end it didnt work. I tried to identify the problem and I noticed something really weird. Basically I have a 4bit binary ripple counter, and I take 2 of the outputs 3 and 2 say, and send them into an OR gate. Then I probe the output with my scope and I see a waveform which is kind of a superposition of the two inputs, rather than an actual OR. I can't tell if it's just my scope that is going nuts, or whether I can't gate the outputs of the counter.

Here are some photos of the waveforms:

The first two are the input waves into the OR gate. The last is the output, as you can see it's garbage. As far as Im concerned, the main problem is not hazards, although there are small hazards embedded in the signal. But for the most part the signal is just an undecided signal. I dont know if my scope is loading the signal and changing it, but my scope is working perfectly. If I probe the inputs, they look perfect. It's just the outputs that are undecided. Please please help me!!






« Last Edit: January 10, 2017, 08:58:27 pm by PauloConstantino »
 

Offline Andy Watson

  • Super Contributor
  • ***
  • Posts: 2123
Re: Problems with a ripple counter + logic gates. Please help!
« Reply #1 on: January 10, 2017, 09:05:37 pm »
Try triggering the scope on the slowest output. The glitch at each clock looks like a race-condition - one of the gotchas of using non-synchronous logic.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf