Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 3rd October 2005, 03:18 PM   (permalink)
Default Weird results from Electronics Workbench... pls advise.

I built an asynchronous counter, as shown in figure below, using Multisim v8.0.45 from Electronics Workbench. The timing diagram of the circuit is given in the 2nd figure below. In my opinion, after 1010 (see circled part), the asynchronous counter should be reset to 1110. But in the simulation result, the output after 1010 was 0010. Would anyone pls advise why? Thanks in advance.



student2005 is offline  
Old 3rd October 2005, 07:00 PM   (permalink)
Default

I came up with the same result as you did when I did a simple-minded analysis on paper, but I ran a sim and got the same results as your sim did! The reason it does this is that, because of propagation delays, the preset ends at about the same time the last two stages get clocked. This allows both of them to toggle immediately after preset ends. You should be able to see this by probing the preset, Q, and clock inputs to each FF.

Try removing the inverters, and instead clock each of the last 3 stages off the Q* output from the previous stage. I think you'll get the results you expected (I did).
BTW, why did you use the inverters?
__________________
Ron

Roff is offline  
Old 3rd October 2005, 09:58 PM   (permalink)
Default

Quote:
Originally Posted by Ron H
BTW, why did you use the inverters?
I add inverters because I wish to make the JK FF as positive-edge-triggered (PET) JK FF. Any JK FF that has PET input clock? Or, any suggestion to modify the circuit to rectify the problem? Thanks.
student2005 is offline  
Old 3rd October 2005, 10:47 PM   (permalink)
Default

Quote:
Originally Posted by student2005
Quote:
Originally Posted by Ron H
BTW, why did you use the inverters?
I add inverters because I wish to make the JK FF as positive-edge-triggered (PET) JK FF. Any JK FF that has PET input clock? Or, any suggestion to modify the circuit to rectify the problem? Thanks.
Read my lips.
Quote:
Try removing the inverters, and instead clock each of the last 3 stages off the Q* output from the previous stage. I think you'll get the results you expected (I did).
Clocking off Q* (~Q) is the same as clocking off inverters which are driven by the Q outputs, but without the delay of the inverter (unless the inverter is internal to the FF). You can leave the inverter that drives the first FF.
__________________
Ron

Roff is offline  
Old 3rd October 2005, 11:47 PM   (permalink)
Default

I still could not see how the inverter will cause the problem... I got the following timing diagram. May be you could help me to understand it. Thanks.

student2005 is offline  
Old 4th October 2005, 12:21 AM   (permalink)
Default

Well, it's pretty obvious that Q2 and Q3 are toggling as a result of the previous stage being changed by the NAND output. I can't tell you why that is, because it is a function of the model. I posted a detailed zoom of what I am talking about below.

As I said, my sim did the same thing, and I was able to "cure" it by removing the inverters and clocking from the ~Q output of the previous stage. This works because the clocks will now arrive while the NAND output is still present, which will override the clocks. See attached schematic.
Attached Images
File Type: gif clocking.gif (7.5 KB, 408 views)
File Type: gif asynctr_5c_mod.gif (10.0 KB, 408 views)
__________________
Ron

Roff is offline  
Old 4th October 2005, 12:25 AM   (permalink)
Default

Do you think there is any JK FF with positive-edge-triggered input clock in the market? Thanks.
student2005 is offline  
Old 4th October 2005, 02:32 AM   (permalink)
Default

Quote:
Originally Posted by student2005
Do you think there is any JK FF with positive-edge-triggered input clock in the market? Thanks.
Not that I know of. Are you having difficulty understanding that what I described is logically identical to what you simulated?
__________________
Ron

Roff is offline  
Old 4th October 2005, 04:15 AM   (permalink)
Default

Quote:
Originally Posted by Ron H
Quote:
Originally Posted by student2005
Do you think there is any JK FF with positive-edge-triggered input clock in the market? Thanks.
Not that I know of. Are you having difficulty understanding that what I described is logically identical to what you simulated?
Yes... I understood. Thanks.
student2005 is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 07:25 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker