Bachelor of Engineering in Computer and Electronic Engineering

Similar documents
e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22

1. Pin diagram of 8051 and ports

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

1. Attempt any three of the following: 15

8051 Microcontroller

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

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C

8085 Microprocessor Architecture and Memory Interfacing. Microprocessor and Microcontroller Interfacing

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

History and Basic Processor Architecture

DTMF BASED INDUSTRIAL AUTOMATION

RTC Interface 89C51 DS M. Krishna Kumar MAM/M7/LU17/V1/ Vcc VCC 5 SDA P1.0 6 SCL P KHz 3 BAT 3.

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. BEng(Hons) Electrical and Electronics Engineering SEMESTER 1 EXAMINATION 2016/2017

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

PIC Microcontroller Introduction

ECE 372 Microcontroller Design

Pin Description, Status & Control Signals of 8085 Microprocessor

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

The Freescale MC908JL16 Microcontroller

C H A P T E R 1 INTRODUCTION

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING MSC SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2016/2017

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

UNIT 3 THE 8051-REAL WORLD INTERFACING

Chapter 1. Solutions Solution 1.1. Most RAMs are volatile, meaning the information is lost if power is removed then restored.

In this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors.

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

4. (a) With a neat sketch explain 8237 DMA controller and its operation? (b) With the help of basic cell explain SRAM and DRAM?

EECS 373 Midterm 2 Fall 2018

8051 Microcontroller

CPEG300 Embedded System Design. Lecture Interface with Peripheral Devices

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

Department of Electronics and Instrumentation Engineering Question Bank

Microcomputer System Design

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING B.ENG (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATION SEMESTER /2016

CN310 Microprocessor Systems Design

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

END-TERM EXAMINATION

Signature: 1. (10 points) Basic Microcontroller Concepts

Goal: We want to build an autonomous vehicle (robot)

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

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

Chapter 9. Input/Output (I/O) Ports and Interfacing. Updated: 3/13/12

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

1. Internal Architecture of 8085 Microprocessor

8051 Microcontroller Interrupts

SH69P48A EVB. Application Notes for SH69P48A EVB SH69V48A JP2 J4(ICE_J4) S1 IDD TEST JP1 74HC273 JP4 JP3 74HC273 JP6 STKOVE JP7 SW1 J5(ICE_J5)

Renesas 78K/78K0R/RL78 Family In-Circuit Emulation

Allmost all systems contain two main types of memory :

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

Interrupts, timers and counters

Basic Input/Output Operations

For more notes of DAE

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

University of Florida EEL 4744 Spring 2014 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 1 April Apr-14 9:03 AM

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

Ali Karimpour Associate Professor Ferdowsi University of Mashhad


Ali Karimpour Associate Professor Ferdowsi University of Mashhad

1. (a) Draw the internal architecture of 8085? Explain each block. (b) What are the special functions of GPRs in 8086? And explain them?

Fig 1. Block diagram of a microcomputer

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

MICROPROCESSORS A (17.383) Fall Lecture Outline

Chapter 1: Basics of Microprocessor [08 M]

FINAL EXAM. last name first name

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

Description: Using the ITC232-A for Period Measurement.

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

Laboratory 10. Programming a PIC Microcontroller - Part II

Microcontroller and Embedded Systems:

Input/Output Modes Chapter 8

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

EB-51 Low-Cost Emulator

ARM HOW-TO GUIDE Interfacing Switch with LPC2148 ARM

CORK INSTITUTE OF TECHNOLOGY INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ. Electrical and Electronic Engineering

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization

(Embedded) Systems Programming Overview

B.C.A 2017 MICROPROCESSOR AND ASSEMBLY LANGUAGE MODULE SPECIFICATION SHEET. Course Outline

Architecture of Computers and Parallel Systems Part 2: Communication with Devices

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

AC : DESIGN OF DATA ACQUISITION SYSTEM FOR COMPUTER ENGINEERING EDUCATION

CHAPTER TWELVE - Memory Devices

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

Cork Institute of Technology. Autumn 2006 Microcomputer Applications (Time: 2 Hours)

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

SH69P55A EVB. Application Note for SH69P55A EVB SH69P55A EVB SH69V55A

Interrupts. by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

PIC DESIGN (version 1) 2/11/2009

AKKON USB CONTROLLER BOARD

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

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

CEIBO FE-5111 Development System

C:\Users\Jacob Christ\Documents\MtSAC\ELEC74 Mt SAC - chipkit\homework Sheets.docx

24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales FEATURES APPLICATIONS S8550 VFB. Analog Supply Regulator. Input MUX.

Robotics Training Module ABLab Solutions

GUJARAT TECHNOLOGICAL UNIVERSITY

Transcription:

Bachelor of Engineering in Computer and Electronic Engineering Computer Engineering 1 Year 2 Semester 3 Autumn 08 Niall O Keeffe Instructions to Candidates: - 2 hours duration Answer 4 out of 6 questions.

Question 1. a) List the 4 elements required to make up any computer system. b) Explain the difference between a microcontroller and a microprocessor. c) Explain the difference between code and data memory in a computer system. d) Explain the function of interrupts in a computer system. (6 marks) e) Figure Q1 overleaf shows a minimum 8051 circuit schematic. (i) What is the function of the RC circuit connected to the RST pin? (3 marks) (ii) What is the function of the EA pin? (2 marks) (iii) Explain the significance of the 12MHz crystal. (2 marks) Question 2. a) List 2 advantages and 2 disadvantages of programming the 8051 in C rather than assembly language. (6 marks) b) How much data memory will be allocated for the following variable declarations? int array1[4]; char a,b,c,d; unsigned char array2[] = 1,2,3,4,5,6; bit x,y,z; c) The C code below may not always produce the correct result. Explain the problem with the code and provide a solution. void main() char num1, num2, result; num1 = P1; num2 = P2; result = num1 + num2; d) Change the code of part (c) to add a bit variable called overflow. The overflow variable should be set to 1 if the addition result exceeds and 0 otherwise. e) Write C code to set the upper 2 bits of Port 3 without affecting the lower 6 bits of the port.

Question 3. An 8051 application board has 2 LEDs that are used to provide status information. The status of the board is dependent on 2 input switches SW1 and SW2. The switch and LED information for each state is shown in the table below. State Switch Status LED Status SW2 SW1 LED2 LED1 0 0 0 Off Off 1 0 1 Off On 2 1 0 On Off 3 1 1 Flash 1Hz Flash 1Hz a) Draw a circuit diagram of the application using a 74LS244 buffer to drive the LEDs. The pin-out for the 74LS244 buffer is shown below. (10 marks) b) Write a C program to implement the application. (15 marks) To implement the time delays your program can call a function delay(x); The parameter x will yield a delay of x * 50msec. e.g. delay(2) will generate a 0.1 second delay

Question 4. Figure Q4 overleaf shows an 8051 microcontroller interface to 2 7-segment displays. Software multiplexing is used to control the displays. a) Explain the functionality provided by the 74LS47 I.C. b) A single 74LS47 I.C. is used to drive 2 7-segment displays. Explain why the same number will not be displayed on both displays. c) List 2 advantages of using a 74LS47 instead of a 74LS244 buffer to interface to the 7- segment displays. d) What are the advantages of software multiplexing? e) The C program below may be used by the 8051 microcontroller in figure Q4. (i) What does the code do? (ii) Why is the function of the 10msec delay? (3 marks) sbit displaya = P3^0; sbit displayb = P3^1; void main() unsigned char data units, tens; for (tens = 0; tens < 10; tens++) for (units = 0; units < 10; units++) for (z = 0; z < 50; z++) P2 = tens; displaya = 0; displayb = 1; delay_10msec(); displaya = 1; displayb = 0; P2 = units; delay_10msec();

Question 5. An excerpt from the 74C922 keypad encoder datasheet is attached to the rear of the exam paper. a) Explain the functionality provided by the 74C922 keypad encoder chip (6 marks) b) What is the function of the capacitors connected to the Oscillator and Key Bounce Mask pins of the 74C922. c) The 74C922 keypad encoder is connected to the 4x4 keypad shown below. What is the 4-bit binary code output by the 74C922 if the keys 2 and C are pressed. d) Draw a schematic diagram to connect the 4x4 keypad to an 8051 microcontroller using the 74C922 decoder chip. (7 marks) e) Explain how the keypad may be interfaced to an 8051 microcontroller without the use of the 74C922 encoder chip. Y1 Y2 Y3 Y4 1 2 3 A 4 5 6 B 7 8 9 C * 0 # D X1 X2 X3 X4

Question 6. Figure Q6 overleaf shows an 8051 connected to an ADC0804 8-bit analog to digital converter. a) Complete the following table for an analog to digital converter (ADC). (6 marks) Analog Input Voltage Full Scale Voltage No. of Output Bits 1V 0 to +5V 8 3V -5V to +5V 8-1V -5V to +5V 8 Digital Output (Hex) b) What functionality do the ADC0804 WR and INTR pins provide? c) The code below interfaces an 8051 microcontroller to an ADC0804 ADC. Draw a timing diagram showing the interface signals between the 8051 and ADC. (6 marks) sbit WR = P3^0; sbit RD = P3^1; sbit INTR = P3^2; void main() unsigned char data adc; WR = 1; RD = 1; while(1) WR = 0; //start conversion by pulsing WR pin low WR = 1; while(intr); //wait for end of conversion RD = 0; adc = P1; RD = 1; d) Change the program in part C so that the maximum and minimum voltage values read by the ADC are stored in 2 variables called max and min. (8 marks)

74C922 Keypad Encoder Datasheet Extract