Professional Documents
Culture Documents
PART A
1. Draw the flag register for 8086.
OF = Overflow flag
DF = Direction flag
IF = Interrupt enable flag
TF = Trap flag
SF = Sign flag
ZF = Zero flag
AF = Auxiliary carry flag
PF = Parity flag
CF = Carry flag
The purpose of BIU is to interface 8086 with the outside world. It provides a 16-
bit bidirectional data bus and 20-bit address bus. This unit is responsible for
performing external bus operations.
Functions
The ALE signal is used to demultiplex the address /data line (AD 0 to AD7). It is
needed to latch the lower half of an address throughout the machine cycle.
4. What are the sizes of the data bus and address bus of 8086?
The sizes of data bus and address bus of 8086 are 16-bit and 20-bit respectively.
Memory segmentation is dividing the linear memory space into “chunks” called
segments. 8086 segmented memory system has four segments Code segment, Data
segment, Extra segment, and Stack segment.
8. What is pipelining?
Pipelining is the feature of fetching the next instruction while the current
instruction is executing.
Physical addressing is used to address 1MB memory of 8086. The 8086 memory
address is 20 bits but all the registers used for memory calculation are of 16 bit
length. The 20 bit physical address is computed by summing the contents of the
segment register (shifted left by 4 bits) and an effective (offset) address. The
segment register holds the upper 16 bits of the 20 bit memory address. The
effective address represents the offset from the starting address of the segment
The segment override prefix allows the programmer to deviate from the default
segment. It is an additional 8-bit code selects the alternate segment register. The
code byte for the segment override prefix as the format 001XX110. The XX
represents 2 bits which are as follow: ES=00, CS=01, SS=10, DS=11.
12. When is the 8086 processor operated in minimum mode and maximum
mode?
The 8086 processor is operated in (single processor) minimum mode, when MN /
(MX) = 1(or 5 V) and it is operated in maximum mode (multi processor) when MN /
(MX) = 0 (or GND)
The system with single processor is called minimum mode system in 8086
microprocessor. System bus control signals are generated by the processor.
1. How will carry and zero flags reflect the result of the instruction CMP BX,
CX?
Set = 1, Reset = 0
4. WAIT
Load Effective Address (LEA) instruction determines the offset of the variable or
memory location named as the source and loads this address in the specified 16-bit
register. Flags are not affected by LEA instruction.
6. State the function of the given 8085 instructions JP, JPE, JPO, and JNZ.
2. WAIT
a) AAD
b) RCL
a) AAD (ASCII Adjust for Division) instruction adjusts the unpacked BCD dividend in
AX before a division operation
b) RCL (Rotate through carry left) instruction rotates the contents left through carry
by the specified number of bits in count operand.
The ALP for 8086 to multiply two 16 bit unsigned numbers is given below
MOV AX, 4589
MOV CX, 5693
MUL CX
MOV [1200], AX
MOV [1202], DX
HLT
14. What is the function of the assembler directives ALIGN and ASSUME?
Example: ALIGN 8.
15. What is the function of the assembler directives SEGMENT and ENDS?
The function of the assembler directives SEGMENT and ENDS is to define the
start of the segment and the end of the segment.
Name ENDS
16. What is the function of the assembler directives TITLE and TYPE?
The function of the assembler directive TITLE is to control the format of a listing
of an assembled program. It causes a title for the program to print on line 2
of each page of the program listing. Maximum 60 characters are allowed.
The function of the assembler directive TYPE is to determine the type of specified
variable in bytes.
Word, TYPE = 2
3. What is microprocessor?
A microprocessor is a computer processor which incorporates the functions of
a computer's central processing unit (CPU) on a single integrated circuit (IC), or
at most a few integrated circuits. The microprocessor is a
multipurpose, clock driven, register based, digital-integrated circuit which
accepts binary data as input, processes it according to instructions stored in
its memory, and provides results as output.
4. What is microcontroller?
A microcontroller is a self-contained system with peripherals, memory and a
processor that can be used as an embedded system. Most programmable
microcontrollers that are used today are embedded in other consumer products
or machinery including phones, peripherals, automobiles and household
appliances for computer systems.
6. What is RTOS?
A real-time operating system (RTOS) is an operating system (OS) intended to
serve real-time applications that process data as it comes in, typically without
buffer delays.
8. Define bus
A distinct set of conductors carrying data and control signals within a computer
system, to which pieces of equipment may be connected in parallel.
The group of machine language instructions that a computer can follow, which
may range from a handful to several hundred. It is a fundamental architectural
component of a CPU and is either built into the CPU or into microcode, a layer
between the instruction set and the circuitry. The instruction length is generally
from one to four bytes long
1.The computer has single storage 1.The computer has two separate
system(memory) for storing data as memories for storing data and
well as program to be executed. program.
CISC RISC
Higher clock cycles per second. Low clock cycle per second.
Mainly used in normal pc, Mainly used for real time applications.
workstations & servers.
16. Write the difference between memory mapped i/o & i/o mapped i/o?
Control Signals used are like Control signals used are like IOR(bar),
MEMR(bar), MEMW(bar) IOW(bar)
Register mode
Indexed mode
Symbolic mode
Smart homes. Smart Home stands out, ranking as highest Internet of Things
application.
Smart City.
Smart grids
Industrial internet.
Connected car.
Connected Health (Digital health/Telehealth/Telemedicine)
Smart retail.
UNIT IV
1. Write various low power modes of MSP 430?
Low power operation is a key feature of the MSP430. Its design gives very low
leakage, and it operates from a single supply rail. This gives an extremely low
current drain when the processor is in standby mode.
Several low power modes are supported, which balance the needs of different
applications. As the number of the LPM mode number rises, the number of things
disabled on the chip also rises:
LPM3 - The DCO oscillator and its DC generator are also disabled.
The DMA controller is a state-driven address and control signal generator, which
permits data to be transferred directly from an I/O device to memory or vice
versa without ever being stored in a temporary register. This can greatly increase
the data transfer rate for sequential operations, in processor.. Computers that
have DMA channels can transfer data to and from devices with much less CPU
overhead than computers without DMA channels.
The Real-Time Clock module provides a clock with calendar that can also be
configured as a general purpose counter.
Non-volatile memory
100x faster writes than Flash
250x lower energy writes than Flash
High endurance - 10^15 write cycles
Resistance to electric/magnetic fields and radiation
Unified memory – flexible code and data partitioning
8. What is an interrupt?
In system programming, an interrupt is a signal to the processor emitted by
hardware or software indicating an event that needs immediate attention. An
interrupt alerts the processor to a high-priority condition requiring the
interruption of the current code the processor is executing.
9. What is a comparator?
A comparator is a circuit that accepts two voltages, V1 and V2 and outputs zero
volts if V1>V2 or outputs a positive voltage level if V2>V1. Comparators can be
built from operational amplifiers.
LPM1 - The loop control for the fast clock (MCLK) is also disabled.
LPM3 - The DCO oscillator and its DC generator are also disabled.
There are many applications for embedded devices with a Wi-Fi interface:
Industrial process and control applications where wired connections are too costly
or inconvenient, e.g., continuously moving machinery.
Emergency applications that require immediate and transitory setup, such as
battlefield or disaster situations.
Mobile applications, such as asset tracking.
Surveillance cameras (maybe you don’t want them easily noticed, cables are
difficult to hide).
Vertical markets like medical, education, and manufacturing.
Communication with other Wi-Fi devices, like a laptop or a PDA.
• The I2C bus physically consists of 2 active wires and a ground connection. The
active wires, called SDA and SCL, are both bi-directional. SDA is the Serial Data
line, and SCL is the Serial Clock line.
• Every device hooked up to the bus has its own unique address, no matter
whether it is an MCU, LCD driver, memory, or ASIC. Each of these chips can act
as a receiver and/or transmitter, depending on the functionality. Obviously, an
LCD driver is only a receiver, while a memory or I/O chip can be both transmitter
and receiver.