Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
-
Upload
jct-college-of-engineering-and-technology -
Category
Education
-
view
527 -
download
2
Transcript of Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
![Page 1: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/1.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/2.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/3.jpg)
Register Structure
General Purpose Register
![Page 4: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/4.jpg)
Temporary Register
Special Purpose Register
![Page 5: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/5.jpg)
16 Bit Register
ALU (Arithmetic Logic Unit)
![Page 6: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/6.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/7.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/8.jpg)
![Page 9: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/9.jpg)
![Page 10: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/10.jpg)
11. (b) i. Describe the data transfer concepts in 8086 microprocessor.
![Page 11: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/11.jpg)
![Page 12: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/12.jpg)
![Page 13: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/13.jpg)
![Page 14: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/14.jpg)
(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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/15.jpg)
Memory Write:
![Page 16: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/16.jpg)
![Page 17: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/17.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/18.jpg)
![Page 19: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/19.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/20.jpg)
![Page 21: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/21.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/22.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/23.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/24.jpg)
Scan Section:
![Page 25: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/25.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/26.jpg)
![Page 27: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/27.jpg)
(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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/28.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/29.jpg)
Central Processing Unit (CPU):
On Chip Data Memory and Register Bank:
![Page 30: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/30.jpg)
On Chip Program Memory:
I/O Ports:
![Page 31: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/31.jpg)
Register Set:
Stack and Stack Pointer:
![Page 32: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/32.jpg)
Data Pointer (DPTR)
Program Counter
Special Function Register (SFR)
![Page 33: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/33.jpg)
(a) ii. Describe the interrupt structure of 8051 Microcontroller.
![Page 34: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/34.jpg)
Priority Level Structure
![Page 35: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/35.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/36.jpg)
![Page 37: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/37.jpg)
(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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/38.jpg)
![Page 39: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/39.jpg)
![Page 40: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/40.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/41.jpg)
![Page 42: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/42.jpg)
![Page 43: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/43.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/44.jpg)
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](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/45.jpg)
![Page 46: Microprocessor and Microcontroller Anna University Answer Key April / May - 2015](https://reader035.fdocuments.in/reader035/viewer/2022081514/58edc3ba1a28ab87098b469b/html5/thumbnails/46.jpg)