Thursday, 21 June 2018

Adder and Substractor


Here the output ‘1’of ‘10’ becomes the carry-out. The result is shown in a truth-table below. ‘SUM’ is the normal output and ‘CARRY’ is the carry-out.From the equation it is clear that this 1-bit adder can be easily implemented with the help of EXOR Gate for the output ‘SUM’ and an AND Gate for the carry.

For complex addition, there may be cases when you have to add two 8-bit bytes together. This can be done only with the help of full-adder logic.

Full Adder :- This type of adder is a little more difficult to implement than a half-adder. The main difference between a half-adder and a full-adder is that the full-adder has three inputs and two outputs. The first two inputs are A and B and the third input is an input carry designated as CIN. The output carry is designated as COUT and the normal output is designated as S. Take a look at the truth-table.
 




From the above truth-table, the full adder logic can be implemented. We can see that the output S is an EXOR between the input A and the half-adder SUM output with B and CIN inputs. We must also note that the COUT will only be true if any of the two inputs out of the three are HIGH.

Subtractor : Subtractor is the one which used to subtract two binary number(digit) and provides Difference and Borrow as a output.In digital electronics we have two types of subtractor. 1.Half Subtractor     2.Full Subtractor  

  1. Half Subtractor :Half Subtractor is used for subtracting one single bit binary digit from another single bit binary digit.The truth table of Half Subtractor is shown below.

Logic Diagram


 
 
 
 
 
 
 
 
 
Like Adders Here also we need to calculate the equation of  Difference and Borrow

Difference = A'B+AB'=A B
Borrow=A'B

Full Subtractor : A logic Circuit Which is used for Subtracting Three Single bit Binary digit is known as Full Subtractor.The Truth Table of Full Subtractor is Shown Below.
LOGIC DIAGRAM
 
 
 
 From the Truth Table The Difference and Borrow will written as
Difference=A'B'C+A'BB'+AB'C'+ABC
Reduce it like adder
Then We got
Difference=A B C
Borrow=A'B'C+A'BC'+A'BC+ABC
=A'B'C+A'BC'+A'BC+A'BC+A'BC+ABC    ---------->  A'BC=A'BC+A'BC+A'BC
=A'C(B'+B)+A'B(C'+C)+BC(A'+A)
Borrow=A'C+A'B+BC
 

 
 
 
 
 

Tuesday, 24 October 2017

Hands on with NI ELVIS-II+

Objective:

  • Test different Components given with NI ELVIS Instrument Launcher.
  • Design a function generator in LabVIEW generate the waveform through any Analog OUTPUT Port of ELVIS and show it on the SCOPE of Instrument Launcher.
  • Design a Passive Low Pass and High Pass filter over the ELVIS board and observe its frequency response on the Bode Plot of Instrument Launcher. Compare the Theoretical and Practical result of Cut-off frequency.
Apparatus Required:

  • NI ELVIS-II+.
  • Power and USB cord.
  • Testing components.
  • BNC and Banana probe.

Monday, 2 October 2017

Real Time Four Way Traffic Light Control System Using LaVIEW and NI 6008.

Objective:

  • Simulate the traffic light control system using LabVIEW software.
  • Implement the real time traffic light control system using NI6008.


The front panel should look like the fig. shown below




Friday, 29 September 2017

Interface Arduino with LabVIEW

Objective:

  • Connect Arduino with LabVIEW
  • Perform basic programming like Analog input output and digital input output with Arduino and LabVIEW
  • Interface some digital and Analog sensors using Arduino and LabVIEW.


Apparatus and tools required:

  • PC with latest version LabVIEW and Arduino preinstalled.
  • Arduino UNO R3
  • Tacktile switch, potentiometer, LED, resistors and some jumper cable
  • DHT22 humidity and temperature sensor.
  • SR-04 ultrasonic distance sensor.

Thursday, 15 September 2016

NI sbRIO Robotic Vehicle

Objective:


  • Drive the robotic vehicle back and forth with variable speed.
  • Turn the vehicle left and right.
  • Use the ping sensor to protect the vehicle from the obstacle.
  • Design the front panel as shown in the fig.


Apparatus Required:


  • NI sbRIO based Robotic vehicle.
  • Charger.
  • Ethernet cable.