Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

counter implementation

hello,

 

I'm working on a project of a counter - my counter gets as an input 8 pulses of 5 volts with frequency of 40K Hz. Since I don't want to use counter block, or any IC components, my idea of implementation was to use FF's to act as a shift register - on the first pulse, the first FF passes the 5 volt and lights up the first diode, on the second pulse, the second FF get's activated and lights up the second diode, and so on.

 

I tried to implement a FF of my own, using logic gates, but for some reason, it doesn't work. When I tried using the FF component, I linked the FF's in a row, but the second FF get's contaminated too soon, before the second pulse arrives - thus activating the diode before the time. perhaps anyone could give me some advice on what am i doing wrong:
1. what's the problem with the way I connected the FF's in the first picture?
2. why does the logic gate implementation of my FF doesn't work?

 

 

Full design:

 

the full designthe full design

 

 

 

 

the simulation result of the blue point X marked in picture (1) - the AND gate output:

 

simulation result of the AND gate outputsimulation result of the AND gate output

 

 

the simulation result of the FF's as depicted in picture (1):

 

simulation result of FF'ssimulation result of FF's

 

 

 

NOTE: the second pulse arrives after 2.5x(10^-5) sec, but the second FF (depicted in green in the 3rd picture) gets contaminated and activates the diode after 2x(10^-9) sec

 

and last, my FF implementation using logic gates which refuses to work:

 

FF implementation using logic gatesFF implementation using logic gates

 

 

 

Thank you very much for your time and attention!

0 Kudos
Message 1 of 1
(1,924 Views)