SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

Similar documents
Department of Electronics and Instrumentation Engineering Question Bank


Microcontroller and Embedded Systems:

MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD

8051 Microcontroller

GUJARAT TECHNOLOGICAL UNIVERSITY

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Microcontroller & Interfacing

VALLIAMMAI ENGINEERING COLLEGE

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS)

EC6504 MICROPROCESSOR AND MICROCONTROLLER QUESTION BANK UNIT I - THE 8086 MICROPROCESSOR PART A

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

GUJARAT TECHNOLOGICAL UNIVERSITY

BASIC INTERFACING CONCEPTS


Department of EIE / Pondicherry Engineering College. Timer/Counters. Department of EIE / Pondicherry Engineering College 1

8051 Microcontroller

General Purpose Programmable Peripheral Devices. Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

Unit-I. 1. INTRODUCTION TO MICROCONTROLLERS. Micro controller, types, selection of a microcontroller and applications

Introduction To MCS-51

Unit wise Question Bank UNIT-II

PGT302 Embedded Software Technology. PGT302 Embedded Software Technology


UNIT IV MICROCONTROLLER

Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system.

1. Attempt any three of the following: 15

Diploma in Embedded Systems

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code:

Lecture 1. Course Overview and The 8051 Architecture

8051 Peripherals. On-Chip Memory Timers Serial Port Interrupts. Computer Engineering Timers

Interrupts, timers and counters

Fig 1. Block diagram of a microcomputer

EC 6504 MICROPROCESSOR AND MICROCONTROLLER

8051 MICROCONTROLLER

Microprocessors and Interfacng. Question bank

8051 Microcontroller Interrupts

THE 8051 MICROCONTROLLER

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

EE6502- MICROPROCESSOR AND MICROCONTROLLER

Question Bank Microprocessor and Microcontroller

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

ENE 334 Microprocessors

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution

WINTER 14 EXAMINATION Subject Code: Model Answer Page No: 1/ 26

PROGRAMMING AND CUSTOMIZING

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

Chapter 09. Programming in Assembly

A 3-SPEED STEPPER MOTOR

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE ENGINEERING

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

UNIT 3 THE 8051-REAL WORLD INTERFACING

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

THE 8051 MICROCONTROLLER

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK

FACULTY OF ENGINEERING LAB SHEET

8051 MICROCONTROLLER

Microprocessor and Microcontroller question bank. 1 Distinguish between microprocessor and microcontroller.

8051 Timers. Class 7 EE4380 Fall Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

Q.1. A) Attempt any THREE of the following:

8051 Microcontrollers

CHAPTER TIMER PROGRAMMING

GUJARAT TECHNOLOGICAL UNIVERSITY

80C51GB, 83C51GB, 87C51GB SPECIFICATION UPDATE

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND)

KINGS DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK. Subject Name: Microprocessors and Microcontrollers UNIT-I 8085 MICROPROCESSOR

8051 Timers and Serial Port

CPEG300 Embedded System Design. Lecture 8 Timer

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

The 8051 microcontroller has two 16-bit timers/counters called T0 and T1.

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc)

Pearson New International Edition. The 8051 Microcontroller and Embedded Systems Mazidi Mazidi McKinlay Second Edition

8051 Serial Port. EE4380 Fall02 Class 10. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

CS 320. Computer Architecture Core Architecture

C H A P T E R 1 INTRODUCTION

Serial I-O for Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai (version 14/10/07)

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT IV I/O INTERFACING PART A (2 Marks)

By the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab

MICROPROCESSORS & MICRO CONTROLLER COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

8051 Microcontroller memory Organization and its Applications

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Subject Code: Model Answer Page No: /25

ELEG3923 Microprocessor Ch.9 Timer Programming


Government of Karnataka Department of Technical Education Board of Technical Examinations, Bengaluru

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

UNIT - II PERIPHERAL INTERFACING WITH 8085

GIE 8051 Professional Kit. User Manual

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

Transcription:

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC and CISC? Which is most suited to Intel 51 Microcontroller? Why? Q-2 What is Special Function register (SFR) of 51-Microcontroller? List all the SFR and explain SBUF, IP and PCON Q-3 What is Pseudo Codes? Explain it. Q-4 Explain control circuitry between output latch and pins for port 0, port 1, port 2 and port 4. Q-5 Explain indirect addressing, external data moves and code memory read only data moves with instructions. Q-6 Write an 8051 C program to calculate the checksum bye for given data.4 bytes of hexadecimal data: 25h, 62h, 3Fh, and 52h. Q-7 Write a program to check if the character string of length 7, stored in RAM location40h onwards is a palindrome. If it is, output Y to P1. Hint: A palindrome is a string in which the characters are same whether the string is read in forward or reverse direction. Q-8 Sixteen random numbers are stored in an array, starting from location 40H. Write an assembly program to count the number of non-zero elements in this array and store it in location 30H. Q-9 Write an 8051 C program to convert 8-bit binary data to decimal and display the digits on P0, P1, and P2. Q-10 Write a program to calculate the average of an array of unsigned positive integers. The array starts from 41H and number of terms in the array is available in location 40H. Store the calculated average in location 3FH. Page 1 of 5

Q-11 Why there is no Sign-flag in MCS-51? Q-12 Can we implement the interrupt to watch the TF bit of TCON Special Function Register? Explain it. Q-13 Write an 8051 C program to toggle all bits of P2 continuously every 500 ms. Use Timer 1, Mode 1 to create the delay. Q-14 Write an 8051 C program to toggle all the bits of P0 and P2 continuously with a 250ms delay. Use the inverting operator. Q-15 What is Serial Communication? How it will perform using 8051/52 Controller with PC? Explain it with program and diagram. Q-16 Explain Serial data transmission modes in detail. Q-17 Calculate the reload value for Timer 1 in mode 2 to generate a baud rate of 2400, if 8051 is interfaced with a 12 MHz crystal. Q-18 Write an assembly as well as C program to transfer the message ONE serially at 9600 baud, 8-bit data, 1 stop bit. Perform this program for 255 times. Q-19 Explain the difference between the low- level and edge-triggered interrupts. Q-20 Explain two types of activation for external hardware interrupts in detail and also discuss the significance of Gate bit in TMOD register. Q-21 Explain which technique, Interrupt or Polling, avoids trying down the Microcontroller. Q-22 What are the interrupts available in the 8051 microcontroller? Explain interrupt enable (IE) SFR and Interrupt priority (IP) SFR. Q-23 Explain timer flag interrupt, serial port interrupt and external interrupts with example. Q-24 Draw and explain RESET and clock circuit of 8051 microcontroller. What is the purpose of capacitor in RESET circuit? Q-25 Draw schematic diagram for 8051 minimum hardware configuration. Explain function of power on reset circuit. Q-26 How Liquid Crystal Display (LCD) is superior to conventional Display? Explain it. List and describe the LCD Instructions. Q-27 Discuss interfacing of the LCD with 8051 microcontroller. Draw interfacing diagram. Write program to display message GTU IS BEST on the LCD screen. Q-28 Draw and explain interfacing of 4x4 matrix keyboard with 8051 microcontroller. Write program to read switch. Page 2 of 5

Q-29 Explain keyboard interfacing with 8051 and also draw flow chart for Detection and identification of key activation. Q-30 Draw interfacing diagram for interfacing of common anode seven segment displays with 8051 microcontroller. Write program to display digit 0 to 9 at the interval of approximately 1 second (Consider crystal frequency 12 MHz). Q-31 Draw and Explain 8051 connection to ADC 0804 with self checking mode. Q-32 Explain interfacing of 8051 with ADC0804 chip. Q-33 Explain interfacing of analog to digital converter (ADC) with microcontroller. Write program to read analog value from ADC on port P1 and display digital values on LEDs connected at port P0. Q-34 Draw schematic diagram of 8051 interfaced with ADC0804. Use the 8051 clock to generate necessary clock signal for ADC0804. Use P1 for Data line connection and P2 for other control signals. Write either assembly or C program for above circuit to convert analog signal into digital and store it in internal RAM. Q-35 Draw interfacing diagram of DAC with 8051 microcontroller. Write program to generate sine-wave at the output of DAC. Use lookup table to store hex values. Q-36 Draw and explain 8051 connection to external RAM (8Kx8). Write a program to read 100 bytes of data from P1 and save the data in external RAM starting at 5100H location. Q-37 Discuss interfacing of external 32K EPROM and 32K RAM with the microcontroller. Draw diagram and explain important handshaking signals. Q-38 Explain connection between an 8031 and an external memory consisting of 16K EPROM and an 8K of static RAM with external memory timing diagram. Q-39 Draw a schematic diagram of 8051 interfaced with 2K external RAM. With reference to interface diagram drawn, give the range of memory for which memory can be accessed. Q-40 Discuss RTC interfacing with microcontroller. Write program to get values of hour, minute and second from RTC to RAM location 20h,21h and 22h respectively. Q-41 Describe RTC interfacing with micro controller. Write program to get values of hour, minute and second from RTC to RAM location 50h, 51h and 52h respectively. Page 3 of 5

Q-42 Answer the following questions (1 mark each) (i) What is the purpose of EA pin in 8051 microcontroller? (ii) What is the purpose of EA bit in IE SFR? (iii) What is the function of ALE signal? (iv) Why pull-up resistors are necessary with port P0 in 8051 microcontroller. (v) What is the function of SMOD bit in TCON SFR? (vi) What is the function of GATE bit in TMOD SFR? (vii) Write instruction to select register bank 2. Under which condition 8051 with internal 4K program memory would (viii) access external program memory? Q-43 Write a C program using interrupts to do the following: (i) Generate a 1000 Hz frequency on P2.1 using T0 8 bit auto reload, Use timer 1 as an event counter to count up a 1-Hz pulse and display it on (ii) P0.The pulse is connected to EX1. Assume that XTAL=11.0592 MHz. Set the baud rate at 9600. Q-44 Assume that a switch is connected to pin P2.0. Write a assembly language program to monitor the switch and perform the following: (i) If SW=0 send the message GOOD to the serial #0 port. (ii) If SW=1 send the message MORNING to the serial #1 port. Q-45 Assume that input at port P1 is data for temperature. Two LEDs are connected at P0.0 (RED) and P0.1 (GREEN) with their anodes pulled up through 820 Ω resistor and cathodes are connected with pins. LEDs Write a program to acquire temperature data and indicate the status on LED as below. Note: It is require continuously monitoring the temperature and indicating status on LEDs. If TEMP _ 10 RED LED ON and GREEN LED OFF If 10 < TEMP _ 80 RED LED OFF and GREEN LED ON IF TEMP > 80 RED LED ON and GREEN LED OFF Q-46 Draw interfacing diagram to interface push-button switch at port pin P3.3 and relay with transistor circuit at port pin P2.0. Write program such that when push-button key is pressed, relay should become ON. When push-button key is pressed again relay should become OFF (i.e. toggling of relay by push-button switch). Page 4 of 5

Q-47 Explain interfacing of stepper motor with microcontroller. Write program to rotate stepper motor in clockwise direction continuously in full step mode. Q-48 Draw a schematic diagram of 8051 interfaced with unipolar stepper motor. Give reason, one need driver IC or circuit for interfacing stepper motor with 8051. Q-49 Write a program to rotate a stepper motor, as interfaced in above problem, by 64 in clockwise direction. Assume the motor has a step angle of 2. Use the 4 step sequence. Q-50 Describe interfacing of 8051 with DC motor and PWM. Signature of Faculty Member (Prof. Rahul G. Patel) Page 5 of 5