Important Questions On Microprocessor and Microcontroller
Important Questions On Microprocessor and Microcontroller
Microcontroller
What is a Microprocessor?
Microprocessor is a program-controlled device, which fetches the instructions from memory,
decodes and executes the instructions. Most Micro Processor are single- chip devices.
What are the flags in 8086?
In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag,
Interrupt flag, Direction flag, and Sign flag.
Why crystal is a preferred clock source?
Because of high stability, large Q (Quality Factor) & the frequency that doesnt drift with
aging. Crystal is used as a clock source most of the times.
In 8085 which is called as High order / Low order Register?
Flag is called as Low order register & Accumulator is called as High order Register.
What is Tri-state logic?
Three Logic Levels are used and they are High, Low, High impedance state. The high and
low are normal logic levels & high impedance state is electrical open circuit conditions. Tristate logic has a third line called enable line.
What happens when HLT instruction is executed in processor?
The Micro Processor enters into Halt-State and the buses are tri-stated.
Which Stack is used in 8085?
LIFO (Last In First Out) stack is used in 8085.In this type of Stack the last stored information
can be retrieved first
What is Program counter?
Program counter holds the address of either the first byte of the next instruction to be fetched
for execution or the address of the next byte of a multi byte instruction, which has not been
completely fetched. In both the cases it gets incremented automatically one by one as the
instruction bytes get fetched. Also Program register keeps the address of the next instruction.
What are the various registers in 8085?
Accumulator register, Temporary register, Instruction register, Stack Pointer, Program
Counter are the various registers in 8085
Whats the speed and device maximum specs for Firewire?
IEEE 1394 (Firewire) supports the maximum of 63 connected devices with speeds up to 400
Mbps. Wheres MBR located on the disk? Main Boot Record is located in sector 0, track 0,
head 0, cylinder 0 of the primary active partition.
Where does CPU Enhanced mode originate from?
Intels 80386 was the first 32-bit processor, and since the company had to backward-support
the 8086. All the modern Intel-based processors run in the Enhanced mode, capable of
switching between Real mode (just like the real 8086) and Protected mode, which is the
current mode of operation.
How many bit combinations are there in a byte?
Byte contains 8 combinations of bits.
Have you studied buses? What types?
There are three types of buses.
Address bus: This is used to carry the Address to the memory to fetch either Instruction or
Data.
Data bus : This is used to carry the Data from the memory.
Control bus : This is used to carry the Control signals like RD/WR, Select etc.
What is the Maximum clock frequency in 8086?
5 Mhz is the Maximum clock frequency in 8086.
What is meant by Maskable interrupts?
An interrupt that can be turned off by the programmer is known as Maskable interrupt.
What is Non-Maskable interrupts?
An interrupt which can be never be turned off (ie. disabled) is known as Non-Maskable
interrupt
What are the different functional units in 8086?
Bus Interface Unit and Execution unit, are the two different functional units in 8086.
What are the various segment registers in 8086?
Code, Data, Stack, Extra Segment registers in 8086.
What does EU do?
Execution Unit receives program instruction codes and data from BIU, executes these
instructions and store the result in general registers.
Which Stack is used in 8086? k is used in 8086?
FIFO (First In First Out) stack is used in 8086.In this type of Stack the first stored
information is retrieved first.
EI
DI
RIM
SIM
What is polling?
In polling, the microprocessors software simply checks each of the I/O devices every so
often. During this check, the microprocessor tests to see if any device needs servicing.
What are the different types of interrupts?
Hardware
Software
Hardware interrupts- The interrupts where the CPU pins are used to receive interrupt requests
, are called hardware interrupts.
Software interrupts This interrupt is caused by the execution of the instruction. These are
special instructions supported bythe microprocessor.
TRAP
RST 7.5
RST 6.5
RST 5.5
INTR
4. No Multiple addresses.
What is ALE?
The ALE (Address latch enable) is a signal used to demultiplex the address and data lines
using an external latch. It is used to enable the external latch.
Where is the READY signal used?
READY is an input signal to the processor, used by the memory or input/output devices to
get extra time for data transfer or to introduce wait states in the bus cycles.
Give some examples of port devices used in 8085 microprocessor based system?
The various port devices used in 8085 are
8212,8155,8156,8255,8355,8755.
What is the need for timing diagram?
The timing diagram provides information regarding the status of various signals, when a
machine cycle is executed. The knowledge of timing diagram is essential for system designer
to select matched peripheral devices like memories, latches, ports etc from a microprocessor
system.
What operation is performed during first T-state of every machine cycle in 8085?
In 8085, during the first T-state of every machine cycle the low byte address is latched into an
external latch using ALE signal.
What is interrupt acknowledge cycle?
The interrupt acknowledge cycle is a machine cycle executed by 8085 processor to get the
address of the interrupt service routine in order to service the interrupt device.
What is vectored and non-vectored interrupt?
When an interrupt is accepted, if the processor control branches to a specific address defined
by the manufacturer then the interrupt is called vectored interrupt. In Non-vectored interrupt
there is no specific address for storing the interrupt service routine. Hence the interrupted
device should give the address of the interrupt service routine.
The interrupt controller is employed to expand the interrupt inputs. It can handle the interrupt
request from various devices and allow one by one to the processor.
What is synchronous data transfer scheme?
For synchronous data transfer scheme, the processor does not check the readiness of the
device after a command have been issued for read/write operation. For this scheme the
processor will request the device to get ready and then read/write to the device immediately
after the request.
What is asynchronous data transfer scheme?
In asynchronous data transfer scheme, first the processor sends a request to the device for
read/write operation. Then the processor keeps on polling the status of the device. Once the
device is ready, the processor executes a data transfer instruction to complete the process.
What are the internal devices of 8255?
The internal devices of 8255 are port-A, port-B, port-C. The ports can be programmed for
either input or output function in different operating modes.
What is USART?
The device which can be programmed to perform Synchronous or Asynchronous serial
communication is called USART (Universal Synchronous Asynchronous Receiver
Transmitter). Eg: INTEL 8251
What is scanning in keyboard and what is scan time?
The process of sending a zero to each row of a keyboard matrix and reading the columns for
key actuation is called scanning. The scan time is the time taken by the processor to scan all
the rows one by one starting from first row and coming back to the first row again.
What is programmable peripheral device?
If the function performed bythe peripheral device can be altered or changed bya program
instruction then the peripheral device is called programmable device. It have control register.
The device can be programmed by sending control word in the prescribed format to
the control register.
What is baud rate?
The baud rate is the rate at which the serial data are transmitted. Baud rate is defined as (The
time for a bit cell). In some systems one bit cell has one data bit, then the baud rate and
bits/sec are same.
What are the tasks involved in keyboard interface?
The tasks involved in keyboard interfacing are sensing a key actuation, Debouncing the key
and generating key codes( Decoding the key). These tasks are performed software if the
keyboard is interfaced through ports and they are performed by hardware if the keyboard is
interfaces through 8279.
How a keyboard matrix is formed in keyboard interface using 8279?
The return lines, RL0 toRL7 of 8279 are used to form the columns of keyboard matrix. In
decoded scan lines SL0 t0SL3 of 8279 are used to form the rows of keyboard matrix. In
encoded scan mode, the output lines of external decoder are used as rows of keyboard matrix.
What is GPIB?
GPIB is the General Purpose interface Bus. It is used to interface the test instruments to the
system controller.
Advantages of differential data transfer?