Professional Documents
Culture Documents
Emb Questions
Emb Questions
C language Embedded C
Q) What is ISR?
An ISR refers to the Interrupt Service Routines. These are procedures stored
at specific memory addresses which are called when a certain type of interrupt
occurs.
The Cortex-M processors family has the NVIC that manages the execution of
the interrupt.
The interval between the two signals (interrupt latency) may be easily read
from the instrument.
If stack overflow occurs, the program can crash or you can say that
segmentation fault that is the result of the stack overflow.
Q) What is the difference between the I2c and SPI
communication Protocols?
In the embedded system, I2C and SPI both play an important role. Both
communication protocols are the example of synchronous communication but
still, both have some important differences.
Microcontroller have I/O, memory, etc. built into it and specifically designed
for control
Interrupt latency is a time taken to return from the interrupt service routine
post handling a specific interrupt.
Ans: The ARM compilers support inline functions with the keyword __inline.
These results in each call to an inline function being substituted by its body, instead
of a normal call.
This results in faster code, but it adversely affects code size, particularly if the inline
function is large and used often.
Don’t give an answer to the interviewer that is best. As per industry requirement
and project need all three are best.
Every protocol has its unique quality to show performance in industry project.
Applications:-1)Visitors Counter
2)Speedometer
1) The Compiler used to compile a source code for the same type of platform only.
The Compiler used to compile source code for different kinds of platforms.
2) A Native Compiler generates codes for the same machine (the host).
A Cross Compiler generates code for another machine (the target).
3)Ex:-Turbo C, GCC
Ex:-C51,ARMCC
52.
What Is Machine Cycle?
Answer :
The steps performed by computer processor for each machine language instruction
received. The machine cycle is 4 process cycle.
o Fetch: Retrieve an instruction from memory
o Decode: Translate the retrieved instruction into series of computer
commands.
o Execute: Execute the computer command.
o Store: Send and write the result back into memory.