microprocessor and microcontroller anna university answer key april / may - 2015

52
B.E / B.Tech DEGREE EXAMINATION, APRIL/MAY - 2015 Sixth Semester Electrical and Electronics Engineering EE 2354 – MICROPROCESSORS AND MICROCONTROLLER Regulation 2008 Answer Key PART – A 1. What is the function of ALE in 8085 microprocessor? ALE is a control signal of 8085 MPU. 8085 is a 8-bit microprocessor which have 16-bit address bus among them lower 8-bit are multiplexed. So while MPU executes read or write operation it needs to de multiplexed. ALE control signal used to de multiplexed the lower order address and data bus. 2. What is the maximum number of byte of memory addressable by the 8086 microprocessor? 1 M since the 8088/ 8086 has 20 bit address lines so 2 20 = 1M 3. What is the function of Rotate Instructions? Give an example. Rotate instructions are similar to shift instructions, except that rotate instructions are circular, with the bits shifted out one end returning on the other end. Rotates can be to the left or right. Rotates can also employ an extend bit for multi-precision rotates. Example: RRC, RLC 4. How is time delay generated using subroutines. Subroutine is one that generates a programmable Time delay. Time delays may be done by using software loops that essentially do nothing for some period. 5. What are the internal Registers available in 8259 PIC? In service Register Priority Resolver Interrupt Mask Register Interrupt Request Register 6. Distinguish between synchronous and asynchronous transmission. Synchronous transmission: Supports high data transfer rate Needs clock signal between the sender and the receiver Requires master/slave configuration Asynchronous transmission: Does not need clock signal between the sender and the receiver Slower data transfer rate 7. Write down the instruction format for 8051 microcontroller. One Byte Instruction Two Byte Instruction Three Byte Instruction 8. What is the purpose of timing diagram in 8051 microcontroller?

Upload: jct-college-of-engineering-and-technology

Post on 12-Apr-2017

528 views

Category:

Education


2 download

TRANSCRIPT

Page 1: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

B.E / B.Tech DEGREE EXAMINATION, APRIL/MAY - 2015Sixth Semester

Electrical and Electronics EngineeringEE 2354 – MICROPROCESSORS AND MICROCONTROLLER

Regulation 2008Answer KeyPART – A

1. What is the function of ALE in 8085 microprocessor?ALE is a control signal of 8085 MPU. 8085 is a 8-bit microprocessor which have 16-bit address

bus among them lower 8-bit are multiplexed. So while MPU executes read orwrite operation it needs to de multiplexed. ALE control signal used to de multiplexed the lower order address and data bus. 

2. What is the maximum number of byte of memory addressable by the 8086 microprocessor?

1 M since the 8088/ 8086 has 20 bit address lines so 220 = 1M

3. What is the function of Rotate Instructions? Give an example.Rotate instructions are similar to shift instructions, except that rotate instructions are circular,

with the bits shifted out one end returning on the other end. Rotates can be to the left or right. Rotates can also employ an extend bit for multi-precision rotates.Example: RRC, RLC

4. How is time delay generated using subroutines.Subroutine is one that generates a programmable Time delay. Time delays may be done by

using software loops that essentially do nothing for some period.

5. What are the internal Registers available in 8259 PIC? In service Register Priority Resolver Interrupt Mask Register Interrupt Request Register

6. Distinguish between synchronous and asynchronous transmission.Synchronous transmission:

Supports high data transfer rate Needs clock signal between the sender and the receiver Requires master/slave configuration

Asynchronous transmission: Does not need clock signal between the sender and the receiver Slower data transfer rate

7. Write down the instruction format for 8051 microcontroller. One Byte Instruction Two Byte Instruction Three Byte Instruction

8. What is the purpose of timing diagram in 8051 microcontroller?The graphical representation of all steps which are performed in a machine cycle is known as

the timing diagram. Timing diagram consist of op code fetch, memory read, memory write, I/O read and I/O write operations.

9. How pulse is generated using 8051 microcontroller. Sequential Approach Time multiplexed Approach

10. What are the control signals from 8051 microcontroller required for washing machine control?Inputs:

Page 2: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Start Prewash Input Cloth Type

Outputs: Prewash Output Main Wash1 Main Wash 2 Rinse1 Rinse 2 Graduated Spin Spin

PART – B

11. (a) i. Explain with a neat block diagram, the hardware architecture of 8085 microprocessor.

Architecture:

Page 3: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Register Structure

General Purpose Register

Page 4: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Temporary Register

Special Purpose Register

Page 5: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

16 Bit Register

ALU (Arithmetic Logic Unit)

Page 6: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Instruction Decoder

Address Buffer

Address / Data Buffer

Incrementer / Decrementer Address Latch

This 16 bit register is used to increment or decrement the contents of program counter as a part of execution of instructions related to them.

Interrupt Control

Serial I/O Control

Timing and Control Circuitry

Page 7: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

11. (a) ii. Describe the Interrupt Structure of 8085 Microprocessor from the order their priority.

Page 8: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 9: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 10: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

11. (b) i. Describe the data transfer concepts in 8086 microprocessor.

Page 11: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 12: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 13: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 14: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

(b) ii. Draw the timing diagram of memory READ and WRITE operations in 8086 microprocessor.Memory Read:

Page 15: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Memory Write:

Page 16: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 17: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

12. (a) i. Describe the 8085 Assembly Language Program for the Loop Structure with counting 10 numbers.

(a) ii. Describe the different addressing modes of 8085 microprocessor.

Page 18: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 19: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

12. (b) i. Write an assembly Language program using 8085 instructions to find the biggest number in a block of data stored in the locations from 70H – 7FH.

(b) ii. Write short notes on Look up table and its usage.

Page 20: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 21: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

13. (a) i. With a neat functional block diagram, explain the functions of 8255 PPI.

Data Bus Buffer:

Control Logic:

Page 22: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Group A and Group B Control:

Operation Modes:Bit Set – Reset Mode (BSR):

I /O Modes:

Page 23: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

13. (a) ii. With a neat functional block diagram, explain the functions of 8279 keyboard controller.

It consists of Four Main sections: CPU Interface and Control Section Scan Section Keyboard Section Display Section

CPU Interface and Control Section:

Page 24: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Scan Section:

Page 25: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Key Board Section:

13. (b) i. With a neat functional block diagram, explain the function of 8259 PIC.

Page 26: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 27: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

(b) ii. Explain with neat sketch, the A/D converter interfacing with 8085 microprocessor.

Pin Diagram:

Interfacing Diagram:

Page 28: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Timing Diagram:

14. (a) i. Explain with a neat functional block diagram, the 8051 Microcontroller hardware.

Page 29: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Central Processing Unit (CPU):

On Chip Data Memory and Register Bank:

Page 30: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

On Chip Program Memory:

I/O Ports:

Page 31: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Register Set:

Stack and Stack Pointer:

Page 32: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Data Pointer (DPTR)

Program Counter

Special Function Register (SFR)

Page 33: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

(a) ii. Describe the interrupt structure of 8051 Microcontroller.

Page 34: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Priority Level Structure

Page 35: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

External Interrupts:

Single Step Operation

14. (b) i. Explain various I/O ports and its functions of 8051 Microcontroller.

Page 36: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 37: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

(b) ii. Explain how the internal timers are used to generate time delay by using 8051 microcontroller.

Page 38: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 39: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 40: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

15. (a) i. Write an 8051 Assembly Language Program to copy 10 bytes of data stored from location 30H to another location starting from 50H.

(a) ii. Explain with a neat diagram the stepper motor control using 8051 microcontroller.

Page 41: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 42: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 43: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

15. (b) i. Explain with a neat diagram, a 4X4 key board interfacing with 8051 microcontroller.

Page 44: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015

Program:

(b) ii. Describe with a neat diagram, the washing machine control using 8051 microcontroller.

Page 45: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Page 46: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015