Answer Key
Answer Key
ANSWER KEY
Year: IV Max.Marks:50
PART A
Q4. The output of the sensor can be measured using Analog to Digital
converter which converts voltage into required binary output.
(2 marks)
entity binary_4_bit_adder_top is
Port ( NUM1 : in STD_LOGIC_VECTOR (4 downto 0) := "00000";
NUM2 : in STD_LOGIC_VECTOR (4 downto 0) := "00000";
SUM : out STD_LOGIC_VECTOR (4 downto 0));
end binary_4_bit_adder_top;
end Behavioral; (2
When an interrupt
marks) occurs, the following sequence is followed.
Explanations about
Block Diagram (5
marks)
Example
(6 marks)
// define the pins that the motor is attached to. You can use
#include <Stepper.h>
#define motorPin1 8
#define motorPin2 9
#define ledPin 13
myStepper.setSpeed(60);
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
blink(3);
} (10
marks)