Tuesday 27 November 2012

DIPLOMA MICROPROCESSORS QUESTION PAPER OCT/NOV-2012


C-09-EC-404
3470
BOARD DIPLOMA EXAMINATION, (C-09)
OCT/NOV-2012
DCME-FOURTH SEMESTER EXAMINATION
DIPLOMA MICROPROCESSORS QUESTION PAPER
Time: 3 hours]                   [Total Marks: 80
PART-A
Instructions: (1) Answer all questions
Each question carries three marks.
 Answers should be brief and straight to the point and shall not exceed five simple sentences.
1.       Explain cache memory.
2.       Describe instruction format
3.       List the types of interrupts of 8086.
4.       State the purpose of pointer and index registers.
5.       Write any six features of Intel 8086 microprocessor.
6.       List any three instructions which affect flags of 8086
7.       Generate the machine code for the instruction MOV AX, [SI]. The opcode for MOV is 100010.
8.       Explain RETURN instruction.
9.       Write any six features of 80486
10.   List any six features of 80386.

PART-B
Instructions: (1) Answer any five questions.
(2) Each question carries ten marks.
(3) Answers should be comprehensive and the criteria for valuation is the content but not the length of the answer
11.   (a) explain the fixed-point and floating-point representations with examples and compare them. (b) define micro-operation and macro-operation
12.   Draw the bock diagram of accumulator-based CPU and explain the function of each unit.
13.   (a) write any five differences between 8-bit and 16-bit microprocessors. (b) explain the concept of parallel processing.
14.   Describe block diagram and bus-cycle timing diagram of 8086 minumum mode.
15.   (a) describe any five assembler directives. (b) list any two assembly language development tools and describe them.
16.   Write an assembly language program to find the smallest of ‘N’ 8-bit number stored from SOURCE. Store the smallest number at RESULT.
17.   Write any five differences among 80286, 80386, 80486 and Pentium.
18.   Explain the architecture of 80286 with a neat diagram.


Home              previous      Next
MICRO PROCESSOR

POLYTECHNIC DIPLOMA PREVIOUS QUESTION PAPERS WITH ANSWERS FOR CPP

Friday 10 February 2012

Mtech Assignment Questions


M.TECH ISEM ASSIGNMENT
SUBJECT:CSD
1.Discuss IA-32 Pentium processor addressing, instruction set (MMX,SIMD)?
2. Write the differences between interrupts and exceptions? Briefly discuss about the
exceptions.
3. Why is the wait-for-Memory-Function-completed step needed when reading from or
writing to the main memory? Explain.
4. Differentiate the micro-operation, micro-instruction and micro-program.
5. What is Pipelining? Discuss about pipeline performance issues?
6. Explain in detail store program concept?(Von-Neumann architecture).
7. what do you mean by cycle stealing and explain in detail direct memory access method?
8.What is I/O interface, Device driver, Interrupt handler and explain their codes?
9. explain Hardwired control and Micro programmed control in detail and give differences?
10.Explain execution of complete instruction and multiple bus organization?

Wednesday 28 December 2011

DIPLOMA MICROPROCESSORS QUESTION PAPER OCT/NOV-2012


C-09-EC-
3470
BOARD DIPLOMA EXAMINATION, (C-09)
OCT/NOV-2012
DCME-FOURTH SEMESTER EXAMINATION
DIPLOMA MICROPROCESSORS QUESTION PAPER
Time: 3 hours]                   [Total Marks: 80
PART-A
Instructions: (1) Answer all questions
Each question carries three marks.

  1. Write the purpose of INTR and MN/MX pins of 8086.
  2. What are the microcomputer and microprocessor?
  3. State the use of assembler and debugger.
  4. Explain ADD and CMP instructions.
  5. What is the parameter passing in procedures?
  6. What is interrupt? List the interrupts of 8086.
  7. Write an assembly language program to subtract a 16-bit number num2 from another 16-bit number num1 and store at num3.
  8. List any six features of keyboard/display controller.
  9. What is direct memory access?
  10.  List any six features of 8086.
PART-B
Instructions: (1) Answer any five questions.
(2) Each question carries ten marks.
(3) Answers should be comprehensive and the criteria for valuation is the content but not the length of the answer
  1. Explain any five addressing modes of 8086.
  2. Briefly explain any five instructions that affect flags of 8086.
  3. What us subroutines? Explain the CALL and RET instructions of  8086.
  4. write an assembly language program to find large of N 8-bit numbers stored from source and store at result.
  5. Explain the working of USART with diagram.
  6. Draw the diagram of programmable peripheral interface of operations.
  7. Draw and explain the internal block of diagram of Pentium IV processor.
  8. (a) Write the function of instruction queue, sp, ip , bp of 8086.
      

Wednesday 23 November 2011

microprocessor previous question papers for diploma


C05-CM-404
459
BOARD DIPLOMA EXAMINATION, (C-05)
OCT/NOV-2011
DCME IV SEMESTER EXAMINATION
MICROPROCESSOR
Time : 3 Hours]                                                               [Total Marks: 100
PART-A    10*4=40
Instructions: (1) Answer all questions and each question caries four marks. (2) Answers should be brief and straight to t the point and shall not exceed five simple sentences.
1.    Define the concept of multiplexing in microprocessor.
2.    Draw flag register of 8086
3.    Draw the diagram of DRAM.
4.    Define the instruction execution time.
5.    List the sources of interrupt in 8086
6.    Define procedure of macro’s
7.    Define DMA data transfer.
8.    What do you mean by “parallel Data communication”?
9.    Write any four features of Pentium-IV
10. Differentiate between real mode and protected virtual addressing modes



PART-B                                              5*12=60
Instructions: (1) Answer any five questions and each question caries twelve marks. (2) The Answers should be comprehensive and criteria for valuation is the Content but not the length of the answer.

11. Draw and explain the functional block diagram of 8086
12. (a) explain the types of instruction formats. (b) classify the semiconductor memory
13.  (a) explain any six processor/machine control instructions (b) explain the concept of interfacing SRAM and EPROM.
14. (a) explain the levels of programming. (b) explain the classification of interrupts
15. Draw and explain the interfacing of 8259A with 8086
16. Draw and explain the functional block diagram of 8251A- USART.
17. Draw and explain the architecture of 80386 Microprocessor.
18. Draw and explain the architecture of 80486 Microprocessor




Wednesday 31 August 2011

Introduction to Micro Processor


Chapter 1 Introduction to the microprocessor   

1.1 History
         The microprocessor is the combination of solid – state technology development and the advancing computer technologies which came together in the early 1970s. With the low cost of a device and the flexibility of a computer, microprocessor is a product which performs both control and processing functions.

A brief history

         The microprocessor of two major technologies; digital computer and solid – state circuits. These two technologies came together in the early 1970s, allowing engineers to produce the microprocessor.
         The digital computer is a set of digital circuit controlled by a program that makes it do the job you want done. The program tells the digital how to move process data. It does this by using the digital computer’s calculating logic, memory circuits, and I/O devices. The way the digital computer’s logic circuits are put together to build the calculating logic, memory circuits, and I/O devices is called its architecture. 
         The microprocessor is like the digital computer because both do computations under programming control.

         Figure 1-1 shows the major events in the two technologies as they developed over the last five decades from the days of World War II.
During World War II, scientists developed computers for military use. The latter half of the 1994s, digital computer was developed to do scientific and business work, Electronic circuit technology also advanced during World War II. Radar work increased the understanding of fast digital circuits called pulse circuits. After the war, scientists made great progress in solid-state physics. Scientists at Bell Laboratories invented the transistor, a solid- state device, in 1948.
In the early 1950s, the first general-purpose digital computer appeared. Vacuum tubes were used for active electronic components. They were used to build basic logic circuits such as gates and flip-flops. Vacuum tubes also formed part of the machines built to communicate with the computer – the I/O (input/output) devices. The first digital computers were huge, because the vacuum tubes were hot and required air-conditioning. Vacuum tubes made the early computer expensive to run and maintain. Solid-state circuit technology also made great strides during the 1950s. The knowledge of semiconductors increased. The use of silicon lowered costs, because silicon is much more plentiful than germanium, which had been the chief material for making the early semiconductors. Mass production methods made transistors common and inexpensive.
        In the late 1950s, the designers of digital computers jumped at the chance to replace vacuum tubes with transistors.
In the early 1960s, the art of building solid-state computers was divided in two directions. The first direction was building huge solid-state computer by IBM. IT still required large, air-conditioned rooms and very complicated. IT could process large amounts of data. These large data processing systems were used for commercial and scientific application.
         The big computer was still very expensive. In order to pay for it had to be run 24 hours a day, 7 days a week. Another direction of development is began building small computers. These minicomputers were not as powerful as their larger relatives, but they were not as expensive either. And they still performed many useful functions. By the early 1960s, the semiconductor industry found a way to put a number of transistors on one silicon wafer. The transistors are connected together with small metal traces. When the transistors are connected together, they become a circuit which performs a function, such as a gate, flip-flop, register, or adder. This new technology created basic semiconductor building blocks. The building blocks or circuit modules made this way are called an integrated circuit (IC).
By the mid-1960s, the technology of ICs pushed to develop low-cost manufacturing techniques. The use of ICs let minicomputers become more and more powerful for their size. The desk-sized minicomputers of the 1960s became as powerful as a room-sized computer of the late 1950s. Now $10,000, drawer-sized minicomputers were as powerful as the older $100,000.
The late 1960s and early 1970, large-scale integration (LSI) become common. Large-scale integration was making it possible to produce more and more digital circuits in a single IC.
By the 1980s, very large-scale integration (VLSI) gave us ICs with over 100,000 transistors. By the mid 1970s, LSI had reduced the calculator to a single circuit. After the calculator was reducing, the next natural step was to reduce the architecture of the computer to a single IC. The microprocessor was the resulting circuit of achievement. The microprocessor made possible the manufacture of powerful calculators and many other products. Microprocessor could be programmed to carry out a single task> Products like microwave ovens, telephone dialers and automatic temperature-control systems become common place.
         The early microprocessor processed digital data 4 bits (4 binary digits) at a time. These microprocessors were slow and did not compare to minicomputers. But new generations of microprocessors came fast. The 4 bit microprocessors grew into 8 bit microprocessors, then into 16 bit microprocessors, and then into 32 bit microprocessors. During the early 1980s, complete 8 bit microprocessor systems (microprocessors with memory and communications ability) were developed. These microcontrollers, or single-chip microprocessors, have become popular as the basis of controllers for keyboards, VCRs, TVs, microwave ovens, smart telephones, and a host of other industrial and consumer electronic devices.

1.2 What is a microprocessor?
         The microprocessor uses the same type of logic that is used in a digital computer’s central processing unit (CPU). Because it is similar to the CPU and it is constructed with microcircuit (IC) technology. The microprocessor has digital circuit for data handling and computation under program control. (The microprocessor is a data processing unit) Data processing is the microprocessor’s main function. Data processing includes both computation and data handling. Computation is performed by logic circuits that make up what is usually called the arithmetic logic unit (ALU). These logic circuits enable us to use functions that cause data changes. Among these functions are Add, Subtract, AND, OR, XOR, Compare, Increment, and Decrement. The ALU cannot perform any of these functions with out data operation on. In order to process data, the microprocessor must have control logic which tells the microprocessor how to decode and execute the program.
Text Box: Program is a set of instructions for processing the data      

The control logic steps the microprocessors through the stored program steps (instructions) in memory. It calls (fetches) them one at a time. After the instruction is fetched, the microprocessor’s control logic decodes the instruction. Then the control logic carries out (executes) the decoded instruction. Because the instructions are stored in memory, you can change them when you want to.
Review: The microprocessor’s purpose is to process data. To do this, it must have logic to process and handle data, and control logic. The processing logic moves data from place and performs operations on the data.
        Microprocessor is a multipurpose, programmable, clock-driven, register-base, electronic device that reads binary instructions from a storage device called memory, accepts binary data as input and processes data according to those instructions, and provides results as output.







1.2.1   4 components of microprocessor
Text Box: Input 

 


Text Box: Microprocessor
Text Box: Output




Text Box: Memory

-         The physical components of this system are called hardware.
-         A set of instructions written for the microprocessor to perform a task is called a program.
-         A group of programs is called software.
         The microprocessors applications are classified primarily in two categories: reprogrammable systems and embedded systems. In reprogrammable systems, such as microcomputers, the microprocessor is used for computing and data processing, a Personal Computer (PC) is a typical illustration. In an embedded system, the microprocessor is a part of a final product and is not available for reprogramming to the end user.
         The microprocessor operates in binary digits, 0 and 1, also known as bits. Bit is an abbreviation for the term binary digit. These digits are represented in terms of electrical voltages.
         Each microprocessor recognizes and processes a group of bits called the word, and microprocessor are classified according to their word length. The fact that the microprocessor is programmable means it can be instructed to perform given tasks within its capability. The instructions are entered or stored in a storage device called memory, which can be read by the microprocessor.
         Memory is like the pages of a notebook with space for a fixed number of binary numbers on each line.

1.2.2 The microprocessor operations
The microprocessors fetches (gets) an instruction
 


The control logic decodes what the instruction says to do
 


Decoding
 

The microprocessor executes (carries out) the instruction
(Fetch-and-execute cycle, or the fetch/execute cycle)

1.3 Microprocessor Microcomputer
The microprocessor is the heart of many products, but the microprocessor is never a complete, working by itself. It still needs I/O, memory, data storage or program storage and power.
1.3.1 What is a microcomputer?
The words “Microprocessor” and “Microcomputer” are used to mean the same thing, but in fact these words have different meanings. The microprocessor is an IC (data processing and control). The microcomputer is a complete computing system built around a microprocessor.
1.3.2      What is the power of a microprocessor?
Almost all microprocessors are made on silicon die (IC). These ICs are about ¼ inch (in), or 0.64 centimeters (cm), on a side. The power of a microprocessor is its capacity to process data. These are three main measures of the power of a microprocessor: the length of the microprocessor’s data word; the number of memory words that the microprocessor can address; and the speed with which the microprocessor can execute an instruction.

The lengths of microprocessor’s data words are including 4 bits, 8 bits, 16 bits, 32 bits and 64 bits. The 8 bits data word is so common that it has been given the special name byte. Because the byte is so commonly used, 16 bit microprocessors often have instructions that let them process their 16 bits data word in two 8 bit bytes.


Figure: A 16bit digital word showing the high and low byte breakdown
The 4 bit microprocessor was the first one developed. Microprocessors of this word length are still popular in some types of work. Four bits is the length needed for a binary-coded decimal (BCD) numbers. In some applications, including; calculators, simple consumer products and toys, the microprocessor deals only with BCD numbers. The 8 bits word length was the next developed after the 4 bits.
1.3.3 The advantages of 8 bit microprocessor
1.  The 8 bit word length is twice 4 bits.
2.  The 8 bit word length allows two BCD numbers for each CPU data word
3.  The 8 bit word length can hold all the data needed for one character in
American Standard Code for Information Interchange (ASC II), ASCII characters are used widely in data processing to represent numbers, letters, and many special symbols.
         Each time the microprocessor’s word length doubles, the processor becomes more powerful. Greater word lengths have required improved LSI technology. For example, the LSI used to develop some of the new 64 bit microprocessors uses a similar sized chip, but it comes over 23 million transistors.
         Another common measure of microprocessor power is the number of memory bytes that the microprocessor can address. For example, a 4 bit microprocessor stores 4 bit word in memory. The length of the data word is the same as the length of the data word used by the microprocessor. Each word in memory is assigned a location number or address.
Binary Address

Memory contents
(4 bits long)
1111

Data word 15
1110

Data word 14
1101

Data word 13
1100

Data word 12
1011

Data word 11
1010

Data word 10
1001

Data word 9
1000

Data word 8
0111

Data word 7
0110

Data word 6
0101

Data word 5
0100

Data word 4
0011

Data word 3
0010

Data word 2
0001

Data word 1
0000

Data word 0

Figure: A 16bit word memory addressed by a 4bit
         Figure shows the memory-addressing power of single 4 bit word. 4 bits can address 16 words in memory. We number these 16 words from 0 to 15. A single 8 bit word has an address range of 256 memory words. A 16 bit word has an address range of 65,536 memory words. Most microprocessors can use more than a single word to address memory. Therefore the memory address range is not limited by the length of the microprocessor’s data word.
         A shorthand notation is used in specifying the number of bytes. The symbol “K” is used to say “times 1000”. The symbol “M” means “times 1 million”. The symbol “G” means “times 1 billion”.
Data word length
4bit
8bit
16bit
32bit
Memory address range
4096k



8192k




65,536(64k)




32,768(32k)



65,536(64k)



1,048,576(1M)



2,097,152(2M)



4,194,304(4M)




4,294,967,296(4G)



34,359,738,367(32G)

         A third common measure of microprocessor power is the speed with which microprocessor executes an instruction. Speed is determined by the time it takes the microprocessor to complete the fetch / execute cycle for one program step. Some microprocessors are 20 to 100 times faster than others. Each one has oscillator circuit is called the microprocessor’s clock. Slow microprocessors may use a clock that at a few hundred kilohertz (KHz). It takes such a microprocessor 10 to 20 microseconds (ms) to execute one instruction.
  
1.4 Microprocessor-Based System with Bus Architecture

ALU (Arithmetic/Logic Unit) – It performs such arithmetic operations as addition and subtraction, and such logic operations as AND, OR, and XOR. Results are stored either in registers or in memory.
Register Array – It consists of various registers identified by letter such as B, C, D, E, H, L, IX, and IY. These registers are used to store data and addresses temporarily during the execution of a program.
Control Unit – The control unit provides the necessary timing and control signals to all the operations in the microcomputer. It controls the flow of data between the microprocessor and memory and peripherals.
Input – The input section transfers data and instructions in binary from the outside world to the microprocessor. It includes such devices as a keyboard, switches, a scanner, and an analog-to-digital converter.
Output – The output section transfers data from the microprocessor to such output devices as LED, CRT, printer, magnetic tape, or another computer.
Memory – It stores such binary information as instructions and data, and provides that information to the microprocessor. To execute programs, the microprocessor reads instructions and data from memory and performs the computing operations in its ALU section. Results are either transferred to the output section for display or stored in memory for later use.
System bus – It is a communication path between the microprocessor and peripherals. The microprocessor communicates with only one peripheral at a time. The timing is provided by the control unit of the microprocessor.

1.5 Microprocessor Instruction Set and Computer Languages 
         The word (or word length), is the number of bits the microprocessor recognizes and processes at a time. The word length ranges from 4 bits for small microprocessor, to 64 bits for high-end microcomputers.
         The byte is defined as a group of eight bits. The term “nibble”, which stands for a group of four bits, is also found in popular computer magazines and books.
         The instruction is defined as a complete task that microprocessor can perform. Instructions must be written in binary language, also know as machine language.
         Assemble language is the program language that programmer can easily programs like as English words.
         High-level languages (HLL) are the general-purpose languages as Visual BASIC, PASCAL, JAVA, C and C++. A program written in these languages can be machine independent.