Skip to main content

Logic Gates & Flip Flops


A digital computer uses binary number system for its operation. In the binary system there are only 2 digits, 0 and 1. The manipulation of binary information is done by logic circuit known as logic gates. The important logical operations which are frequently performed in the design of a digital system are: (1) AND (2) OR (3) NOT (4) NAND (5) NOR and EXCLUSIVE OR.

An electronic circuit which performs a logical operation is called a logic gate.

Digital multiplexer


A digital multiplexer has N inputs & only one output. By applying control signals any one input can be made, available at the output terminal. It‟s called data sector. 

Combinational & Sequential Circuits


There are two types of logic circuits, Combinational & Sequential. A combinational circuit is one in which the state of the O/P at any instant is entirely determined by the states of the I/P‟s at that time. Combinational circuits are those logic circuits whose operation can be completely described by a truth table.

A sequential circuit consists of a combinational logic & storage elements. The O/P of a sequential circuit is not only a function of the present I/P‟s but also of past I/P‟s. The state of the storage elements depends upon this preceding I/Ps and the preceding states of the elements.


Flip Flops


A device is said to be bi-stable if it has 2 stable elements. A flip-flop is a bi-stable device. It has 2 stable stales. Its O/P remains either high or low. The high stable state is called SET. The other stable state is called RESET. It can store binary bit, rather 0 or 1. Thus, it has storing capability, i.e., memory.

Types of Flip Flops 

The following types of flip-flops are listed below :

S-R Flip-Flop : A SR flip flop can be realized by connecting 2 NOR

 J-K Flip-Flops : In an S-R flip flop, the state of the O/P is unpredictable when S-R =1. A J–K Flip flop allows inputs J=K = 1. In this situation, the state of the O/P is changed. The complement of the previous state is available at the output terminal.

D-Flip Flops : An S-R flip flop has 2 inputs S& R. To store 1, a high S and low R an required. To store 0, a high R & low S are needed. Thus, 2 signals are to be generated to drive a S-R flip flop.

T-Flip Flop : A T-flip flop acts a toggle switch. Toggle means to switch over to the opposite state.

Shift Registers

In a shift register, the flip-flops are connected in series. The O/P of each flip-flop is connected to the I/P of the adjacent flip flop. The contents of a shift register can be shifted within the registers without changing the order of the bits. Data are shifted one position left or right at a time when 1 clock pulse is applied. Shift register are used for the temporary storage of data. They are suited for processing serial data; converting serial data to parallel data & vice versa. Then are 4 types of shift registers.

(ii) Serial In - Serial Out
(iii) Serial In - Parallel Out
(iv) Parallel In - Serial Out
(v) Parallel In - Parallel Out

Counter

A decoder is similar to demultiplexer without any data input. Most digital system require decoding of data. Decoding is necessary in applications such as data demultiplexing digital display, digital to analog converters etc. A decoder is a logic circuit that converts an n-bit binary input code (data) in 2^n O/P lines, such that each O/P lines will be activated for only one of the possible combinations of I/Ps.
In a decoder, the number of O/P is greater than the number of I/Ps.

Popular posts from this blog

Putimage function in c

putimage function outputs a bit image onto the screen. Declaration:- void putimage(int left, int top, void *ptr, int op); putimage puts the bit image previously saved with getimage back onto the screen, with the upper left corner of the image placed at (left, top). ptr points to the area in memory where the source image is stored. The op argument specifies a operator that controls how the color for each destination pixel on screen is computed, based on pixel already on screen and the corresponding source pixel in memory. c smiling face animation This animation using c draws a smiling face which appears at random position on screen. See output below the code, it will help you in understanding the code easily. C programming code #include<graphics.h> #include<conio.h> #include<stdlib.h>   main() { int gd = DETECT, gm, area, temp1, temp2, left = 25, top = 75; void *p;   initgraph(&gd,&gm,"C:\\TC\\BGI");   setcolor(YELLOW)...

What are selection statements in C++ ? If and Switch

There are several statements that we can use in C++ programming that help in choosing a set of instructions for using the code depending upon an expression truth value.  What are Selection Statements in C++? As mentioned above there are several statements that we can use to choose a set of pre-defined instructions within a program in any section of the program as per the need. These are called selection statements in C++  In C++ Program there are two types of Selection statements  1. If  2. Switch  The If Statement of C++ To understand "if statement" let's look at an example.  Example - If you have 10 rupees then you can buy the chocolate.  Here, there is a condition in buying chocolate, if you have 10 rupees then only you can buy it.  This shows that the If is a condition which can be true or false, If it is false it won't be executed, in this example, if you don't have 10 rupees i.e. the condition is false you cant buy the chocolate.  So, I...

What are the characteristics of a good program in C++

The program should be written in a good style so that it is understandable to a reader. A good program is efficient in solving the given program.  Here are some of the characteristics of a good program : Effective and Efficient  User Friendly  Self-Documenting Code  Reliable  Portable  I.  Effective and Efficient The program produces correct results and works faster, taking into account of the memory constraints.  II.  User Friendly The user should not be concerned about inside the program, a program should work with the user by understandable messages and user work should be very low. The user should only be responsible to provide input the rest of the program should do.  III.  Self-Documenting Code A good program must be self-documented. The source code uses meaningful names for variables, subprograms and other constants.  IV.  Reliable The program must be able to handle unexpected situations like wrong data or no data,...