| Back to Questions Page |
| |
| Question |
What is the difference detween ISR & function call |
Rank |
Answer Posted By |
|
Question Submitted By :: Vishnu948923 |
| This Interview Question Asked @ Bosch , Infosys, Genearal Motors, Bosch |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | in isr there is no return value but in function call there
is return value  |
| Venkatesh |
| |
| |
| Answer | In function call the main program and the funtion have some
relations but in ISR there is no need for this so there is
no need of return value in ISR.  |
| Senthilkumar.l [No] |
| |
| |
| Answer | In case of a function call the arguments,local variables and
return address is stored in the stack where as in case of an
ISR, after executing the current instruction the context is
saved with no return value.  |
| SunitaKN [No] |
| |
| |
|
|
| |
| Answer | isr will be executed only when the system is interrupted
whereas the function call meant for any operations to
perform eventhough when there is no interrupt  |
| Priyavadhanam [No] |
| |
| |
| Answer | Simply, an ISR (interrupt service routine) can be defined
as a hardware function call. Generally, a CPU must
immediately pay attention to a hardware interrupt call. An
ISR is always given higher priority than a normal function
call.  |
| Vasanth [No] |
| |
| |
| Answer | this is with reference to ARM7. The function call is made
when cpu is in User mode(non-priveleged).
But an ISR is called from an Interrupt handler and cpu is
in one of the priveleged modes. Whenever an interrupt
occurs the control moves to a particular address in vector
table.
regards
Achal  |
| Achal [No] |
| |
| |
| Answer | Here are some of the differences:
1. Fuction call has no inputs and return args
2. ISR is triggered by external events
3. ISR may need special interrupt handling upon entry and
exit.
i.e. IRQs masking to enable or disable interupts,
4. Function call and ISR stack frame are different
5. ISR returns with an interupt return (IRET) to
restored not only call stack context but also
interrupt level.  |
| Kent Sar [No] |
| |
| |
| Question |
7. What are tri-state devices and why they are
essential in a bus oriented system? |
Rank |
Answer Posted By |
|
Question Submitted By :: Sayan |
| This Interview Question Asked @ Wipro , Satyam |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | In a multiplexed bus system, many devices are connected to
a common bus. If 2 or more devices attempt to use the bus
at the same time , then data will be lost. Thus only one
one device must be allowed to use the bus at a time. O e
method is to connect the devices through tri-state
devices , which when disabled will effectively discoonect
devices from the bus.  |
| Debarun Kar |
| |
| |
| Answer | A device which has one input,one enable and one output line
is called tri-state device,if two different devices wants a
common bus then tri-state device are essential to assign bus
to any one of them in bus orientation system.  |
| Santosh V Pai |
| |
| |
| Question |
what do you mean by embedded system? |
Rank |
Answer Posted By |
|
Question Submitted By :: Asma |
| This Interview Question Asked @ Wipro |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | It's a combination of software and hardware Which are
embedded by Kiel compiler.It 1s a device that do a specific
task.  |
| Raji |
| |
| |
| Answer | it is a combination of hardware and software to perform
desired task  |
| Ajitha.nayeni |
| |
| |
| Answer | where the software is embedding into the hardware is called
embedded. here software is embedded into haraware by using
device programmer.  |
| Sureshreddy |
| |
| |
| Answer | Embedded System is nothing but a combination of Hardware
with dedicated software designed for the specific application  |
| Sushen |
| |
| |
| Answer | Embedded System is one which performs one didicated task
with dedicated hardware and software and over which user
can not add and remove h/w and s/w. May be system hard or
soft real time.  |
| Revansiddappa P.h. |
| |
| |
| Answer | Embedded system means that the software provied the
intellengence to the electronic  |
| Pruthvi |
| |
| |
| Answer | embedded system is a combination of h/w n s/w for the
execution of a desired task repeatedly...  |
| Atul |
| |
| |
| Answer | pruthvi is right only to a certain extent.
In short, Embedded System gives intelligence to machines.
Machines may be either electrical or electronic or
mechanical or a combination of all.  |
| Vasanth |
| |
| |
| Answer | Embedded system is nothing but that system using which we
can perform only one task.  |
| Sanjay |
| |
| |
| Answer | Embedded system is one in which all hardware components
required for the system are implemented on a same platform.  |
| Santosh Pai |
| |
| |
| Question |
write an assembly code which can call function in a loop
with al value from 0 to 9 |
Rank |
Answer Posted By |
|
Question Submitted By :: PK |
| This Interview Question Asked @ Google |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | xor ax, ax
loop1:
call foo
inc al
cmp ax, 10
jb loop1  |
| PK |
| |
| |
| Answer | mov ro,#10h
here:
acall fun
inc a1
djnz ro,here  |
| Sivasyam |
| |
| |
| Answer | org 00h
mov r0,#09
mov r1,#01
loop : acall func; ; calling function in loop 9-0 times
djnz r0,loop
func : inc r1 ; output will be in r1 register
ret
end
if any thing plz mail to me laxman_balu@hotmail.com  |
| Laxman |
| |
| |
| Question |
Explain the working of a binary counter? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | binary counter with the number of bits available.
initiallly counter is set to zero. then bits are checked
against logic 1 or 0,if they are either logic 1 or 0,then
counter is incremented.  |
| Deepa |
| |
| |
| Answer | in binary counter the flip flop of lowest order position is
complemented with every pulse.this means that JK input
position must me maintained with logic one  |
| Yasmeen Sultana |
| |
| |
| Question |
Explain RC circuit?s charging and discharging? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Epsilon |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Charging a Capacitor:
The voltage across the capacitor is not instantaneously
equal to that of the voltage across the battery when the
switch is closed. The voltage on the capacitor builds up as
more and more charges flows onto the capacitor until the
battery is no longer able to "push" any more charge onto
the capacitor, at which point the capacitor becomes fully
charged.
The initial flow of charges from the battery to the
capacitor means that there is a current flowing through the
system until the capacitor is charged. This current flow
decays exponentially from some initial value to zero.
DisCharging a Capacitor:
Switch remains open and voltage across capaciotr decreses
untill it reaches zero.  |
| Kamakshi Vairagi |
| |
| |
| Answer | the capacitor is charge when the current flow through the
ckt and its discharge whenever appllied voltage is stopped.  |
| Khyati |
| |
| |
| Answer | Capacitor is made of say two plates seperated by dielctic
material. When volage is apllied the ions on the plate are
zero so initially more current will flow like in short
circuit.
As time passes the charges(+ve and -ve) accumalate on
plates over a time and it opposes current flow. Now we say
capacitor charged fully. Now the time taken to charge fully
is called time constant of a capacitor. This time can be
varied by connecting a resistor in series with capacitor.
When high resisor is connected voltage drop across
capacitor is reduced so it take long time to charge fully.
Vica-versa for low resitor. The relation is exponetial
charging and discharging. Discharging process is also
similar way.  |
| Revansiddapp P.h. |
| |
| |
| Question |
Design any FSM in VHDL or Verilog? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | -----By RAHUL SINGHAL----
----This is the code of a FSM that implements a toll booth -
----controller
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL; ----using all functions of
specific package---
ENTITY tollbooth2 IS
PORT (Clock,car_s,RE : IN STD_LOGIC;
coin_s : IN STD_LOGIC_VECTOR(1 DOWNTO 0);
r_light,g_light,alarm : OUT STD_LOGIC);
END tollbooth2;
ARCHITECTURE Behav OF tollbooth2 IS
TYPE state_type IS
(NO_CAR,GOTZERO,GOTFIV,GOTTEN,GOTFIF,GOTTWEN,CAR_PAID,CHEATE
D);
------GOTZERO = PAID $0.00---------
------GOTFIV = PAID $0.05----------
------GOTTEN = PAID $0.10----------
------GOTFIF = PAID $0.15----------
------GOTTWEN = PAID $0.20---------
SIGNAL present_state,next_state : state_type;
BEGIN
-----Next state is identified using present state,car &
coin sensors------
PROCESS(present_state,car_s,coin_s)
BEGIN
CASE present_state IS
WHEN NO_CAR =>
IF (car_s = '1') THEN
next_state <= GOTZERO;
ELSE
next_state <= NO_CAR;
END IF;
WHEN GOTZERO =>
IF (car_s ='0') THEN
next_state <= CHEATED;
ELSIF (coin_s = "00") THEN
next_state <= GOTZERO;
ELSIF (coin_s = "01") THEN
next_state <= GOTFIV;
ELSIF (coin_s ="10") THEN
next_state <= GOTTEN;
END IF;
WHEN GOTFIV=>
IF (car_s ='0') THEN
next_state <= CHEATED;
ELSIF (coin_s = "00") THEN
next_state <= GOTFIV;
ELSIF (coin_s = "01") THEN
next_state <= GOTTEN;
ELSIF (coin_s <= "10") THEN
next_state <= GOTFIV;
END IF;
WHEN GOTTEN =>
IF (car_s ='0') THEN
next_state <= CHEATED;
ELSIF (coin_s ="00") THEN
next_state <= GOTTEN;
ELSIF (coin_s="01") THEN
next_state <= GOTFIV;
ELSIF (coin_s="10") THEN
next_state <= GOTTWEN;
END IF;
WHEN GOTFIF =>
IF (car_s ='0') THEN
next_state <= CHEATED;
ELSIF (coin_s = "00") THEN
next_state <= GOTFIF;
ELSIF (coin_s ="01") THEN
next_state <= GOTTWEN;
ELSIF (coin_s = "10") THEN
next_state <= GOTTWEN;
END IF;
WHEN GOTTWEN =>
next_state <= CAR_PAID;
WHEN CAR_PAID =>
IF (car_s = '0') THEN
next_state <= NO_CAR;
ELSE
next_state<= CAR_PAID;
END IF;
WHEN CHEATED =>
IF (car_s = '1') THEN
next_state <= GOTZERO;
ELSE
next_state <= CHEATED;
END IF;
END CASE;
END PROCESS;-----End of Process 1
-------PROCESS 2 for STATE REGISTER CLOCKING--------
PROCESS(Clock,RE)
BEGIN
IF RE = '1' THEN
present_state <= GOTZERO;
----When the clock changes from low to high,the state of
the system
----stored in next_state becomes the present state-----
ELSIF Clock'EVENT AND Clock ='1' THEN
present_state <= next_state;
END IF;
END PROCESS;-----End of Process 2-------
---------------------------------------------------------
-----Conditional signal assignment statements----------
r_light <= '0' WHEN present_state = CAR_PAID ELSE '1';
g_light <= '1' WHEN present_state = CAR_PAID ELSE '0';
alarm <= '1' WHEN present_state = CHEATED ELSE '0';
END Behav;  |
| Rahul Singhal |
| |
| |
| Question |
How do you detect a sequence of "1101" arriving serially
from a signal line? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | try finite state machine logic it will definitely give the
output  |
| Neelesh Bansal |
| |
| |
| Answer | Use 4 D-bascules connected in serial, all synchronized with
the same CLK. Then connect all 4 outputs, & 2nd output must
reverse, of the D-bascule to an AND logic. The output of
the AND logic sould have '1' when it detectes "1101". This
technic oftenly use for glitch detection in the signal.  |
| Av |
| |
| |
| Question |
How do you detect if two 8-bit signals are same? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Intel |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | By using XNOR gate if the signals are same then only the
output will be one otherwise not.  |
| Priyanka Kokil |
| |
| |
| Answer | by using X-OR(Exclusive-OR ) gate and checking using zero
flag ( it should be set if two 8-bit signals are same) .
also the accumulator contents will also become all bits
areoooo oooo.  |
| Pvsreddy |
| |
| |
| Answer | PVSReddy is correct answer.
In Ex-OR gate:
1 - 1:0
1 - 0:1
0 - 1:1
0 - 0:0  |
| Nag |
| |
| |
| Question |
Design a Transmission Gate based XOR. Now, how do you
convert it to XNOR? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | put one bubble in front of xor gate....  |
| Sunil Yadav |
| |
| |
| Question |
Give the truth table for a Half Adder, Give a gate level
implementation of the same? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
| This Interview Question Asked @ Wipro |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | x y c s
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0  |
| Yasmeen Sultana |
| |
| |
| Question |
What are the different Adder circuits you studied? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Half adder and full adder  |
| Priyanka Kokil |
| |
| |
| Answer | Half Adder (for addition of two bits)
Full Adder (for addition of three bits)
Carry propagate adder
Carry save adder
Carry look ahead adder  |
| Priyanka Kokil |
| |
| |
| Answer | ripple carry adder
carry select adder
conditional sum adder
bit serial adder
bit parallel adder  |
| Nishi |
| |
| |
|
| |
|
Back to Questions Page |