Beruflich Dokumente
Kultur Dokumente
Q-1. (A) Why should we normally use either hardware or software debouncing for
interfacing keys as input devices ? Give the hardware debouncing circuit, with
typical component values, for interfacing a key to a CMOS inverting gate. Show
the input and output waveforms for both the transitions.
Q-2. A microcontroller has two 8-pin I/O ports: port A with outputs having internal
passive pull-ups, port B with open collector outputs.
Show the most appropriate circuit for connecting the LED's and keys to the port
pins.
If the LED's are available either as common anode or common cathode, which
type should be used?
[10 marks]
Q-3 A) Show the circuit for driving an EM relay using an open drain output (max
sink = 1 mA), BJT, R, diodes. The relay and microcontroller both are operated
with 5 V. The relay has coil resistance of 100 . Find the min of the transistor.
B) Show the above circuit using an optocoupler. What is the advantage of using
an optocoupler in the relay drive circuit?
C) Give an appropriate external circuit for interfacing the 8 open drain output
pins of a microcontroller to an 8-segment LCD with a single backplane.
B) Describe the sequence of events which take place after an exception occurs.
How does the interrupt handler return control to the program which was
running when the interrupt occurred? Your description should indicate which of
these actions are automatically taken by the processor and which have to be
taken by the programmer.
PAPER ENDS
REFERENCE DATA