Making a Simple 2-Bit Asynchronous counter in WinCupl

Posted by Kevin M. on Stack Overflow See other posts from Stack Overflow or by Kevin M.
Published on 2010-06-07T17:27:32Z Indexed on 2010/06/07 17:32 UTC
Read the original article Hit count: 449

Filed under:

/* ****** INPUT PINS **********/ PIN 1 = clock ; /* clock input */

/* ****** OUTPUT PINS **********/ PIN 14 = Q1 ; /* output / PIN 15 = Q2 ; / output */

Q1.ck = clock; Q1.d = !Q1;

Q2.d = !Q2;

This is my code and the two lines below the output pins create a 1 bit ripple counter but I'm unsure how to transfer the output of the first flip flop to be the clock input for the second flip flip.

© Stack Overflow or respective owner

Related posts about embedded