<< INTMUL Integer palette LOGIC >>

Scilab Help >> Xcos > palettes > Integer palette > JKFLIPFLOP

JKFLIPFLOP

JK flip-flop

Block Screenshot

Contents

Description

The JK flip flop is the most versatile of the basic flip-flops. It has two inputs traditionally labeled J (Set) and K (Reset).

The !Q output is the logical negation of Q

It can also act as a T flip-flop to accomplish toggling action if J and K are tied together. This toggle application finds extensive use in binary counters.

The user can set the initial output state with Initial Value parameter.

The truth table of this block is:

J K Qn !Qn
0 0 Qn-1 !Qn-1 Hold
0 1 0 1 Reset
1 0 1 0 Set
1 1 !Qn-1 Qn-1 Toggle

where Qn-1 is the previous state of Qn .

Data types

The block supports the following types :

Parameters

Default properties

Example

The following example builds a 3 bits asynchronous counter with JK flipflops wired as T flipflops. You can show on the right the timing diagram of the Q0 to Q2 outputs of counter.

Interfacing function

See also


Report an issue
<< INTMUL Integer palette LOGIC >>