GUJARAT TECHNOLOGICAL UNIVERSITY

Similar documents
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

8051 MICROCONTROLLER COURSE

PART B QUESTIONS AND ANSWERS UNIT I

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Microprocessor & Assembly Language

MICROPROCESSOR AND MICROCOMPUTER BASICS

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. COURSE CURRICULUM COURSE TITLE: COMPUTER ORGANIZATION AND ARCHITECTURE (Code: )

Chapter 2 Logic Gates and Introduction to Computer Architecture

Microtronics technologies Mobile:

MACHINE ARCHITECTURE & LANGUAGE

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

Interfacing Analog to Digital Data Converters

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Computer and Set of Robots

EMBEDDED SYSTEM BASICS AND APPLICATION

LABORATORY MANUAL EE0310 MICROPROCESSOR & MICROCONTROLLER LAB

Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

11. RESOURCE REQUIREMENT FOR COMPUTER ENGINEERING AND INFORMATION TECHNOLOGY DEPARTMENT

C Programming. for Embedded Microcontrollers. Warwick A. Smith. Postbus 11. Elektor International Media BV. 6114ZG Susteren The Netherlands

TIMING DIAGRAM O 8085

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Interfacing To Alphanumeric Displays

İSTANBUL AYDIN UNIVERSITY

KEYWORDS: Cellphone, Braille language, Visually impaired people(vip), Microcontroller, Decoder, Latches, DC motors.

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

8051 hardware summary

CSE2102 Digital Design II - Topics CSE Digital Design II

B.Sc.(Computer Science) and. B.Sc.(IT) Effective From July 2011

Programming Logic controllers

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

Chapter 13. PIC Family Microcontroller

STEPPER MOTOR SPEED AND POSITION CONTROL

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia

POCKET SCOPE 2. The idea 2. Design criteria 3

Microprocessor or Microcontroller?

4 Character 5x7 LED Matrix Display

Timer A (0 and 1) and PWM EE3376

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

CHAPTER 7: The CPU and Memory

Microcontroller Based Anti-theft Security System Using GSM Networks with Text Message as Feedback

8254 PROGRAMMABLE INTERVAL TIMER

Construction and Application of a Computer Based Interface Card

(Refer Slide Time: 00:01:16 min)

Programmable Logic Controller PLC

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

CHAPTER 11: Flip Flops

Faculty of Engineering Student Number:

ASSEMBLY PROGRAMMING ON A VIRTUAL COMPUTER

EXERCISE 3: String Variables and ASCII Code

Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller

Byte code Interpreter for 8051 Microcontroller

Lab Experiment 1: The LPC 2148 Education Board

HD44780U (LCD-II) (Dot Matrix Liquid Crystal Display Controller/Driver)

Soft processors for microcontroller programming education

Atmel Norway XMEGA Introduction

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module

Chapter 1 Computer System Overview

Software engineering for real-time systems

ADS9850 Signal Generator Module

Computer Organization and Components

Microcontrollers A Brief History of Microprocessors

Display Message on Notice Board using GSM

Introduction to Microcontrollers

Monitoring of Intravenous Drip Rate

Freescale Semiconductor, I

Keil C51 Cross Compiler

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

2011, The McGraw-Hill Companies, Inc. Chapter 3

CHAPTER 4 MARIE: An Introduction to a Simple Computer

Computer Systems Design and Architecture by V. Heuring and H. Jordan

Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol

PROJECT PRESENTATION ON CELLPHONE OPERATED ROBOTIC ASSISTANT

RAPID PROTOTYPING OF DIGITAL SYSTEMS Second Edition

2.0 Command and Data Handling Subsystem

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. Course Curriculum. DATA STRUCTURES (Code: )

Memory Basics. SRAM/DRAM Basics

Lab 1 Course Guideline and Review

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

The Central Processing Unit:

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

Lecture N -1- PHYS Microcontrollers

Tutorial for MPLAB Starter Kit for PIC18F

Serial Communications

A Digital Timer Implementation using 7 Segment Displays

8031AH 8051AH 8032AH 8052AH NMOS SINGLE-CHIP 8-BIT MICROCONTROLLERS

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

Data Cables. Schmitt TTL LABORATORY ELECTRONICS II

Pentium vs. Power PC Computer Architecture and PCI Bus Interface

Computer organization

Transcription:

GUJARAT TECHNOLOGICAL UNIVERSITY INSTRUMENTATION & CONTROL ENGINEERING (17) MICROCONTROLLER & INTERFACING (IC) SUBJECT CODE: 2151707 B.E. 5 th SEMESTER Type of course: Core Engineering Prerequisite: 1. Fundamental of Digital Logic Design, Register array, flip-flops, counter.. 2. Decoder, Logic Gates, Number systems, etc. Rationale: This subject deals with how to control any external electronic device using programming and control it automatically and make it suitable for next stage of any measurement system. Teaching and Examination Scheme: Teaching Scheme Credits Examination Marks Total L T P C Theory Marks Practical Marks Marks ESE PA (M) ESE (V) PA (E) PA ALA ESE OEP (I) 4 0 2 6 70 20 10 20 10 20 150 Contents: S.N. Content Total Hrs % Weightage 1 Introduction to 8085 Micro processor Basic ideas about:- Micro processor definition, Machine language, Assembly language, Lower level languages, Higher level languages, Interpreter, Compiler, Example and basic block diagram of computer with the micro processor as CPU(ALU+CU). 2 8085 Microprocessor Architecture and Memory interfacing Microprocessor Bus organization:- The 8085 Bus structure block diagram, Explanation of Address bus, Data bus, Control bus, RD, WR, MEM,I/O signals. Memory:- Definition of memory, Explanation about Program memory (code memory/ ROM), Read/write memory (RAM). Latches as a storage element: Diagram of four latches as a 4-bit register, Explanation how 4 nit register store data using RD, WR and enable signal. Diagram of 4X8 Bit register, How address and command signal is given to 4X8 bit register memory Memory and Instruction Fetch:- 2.3.1. Instruction fetch Diagram, Explain Program Counter register, Stack Pointer, Register array bank, Control Unit, ALU. 2.3.2 Explanation of steps to perform instruction fetching operation from memory to Microprocessor, working of control signal, data bus, address bus, internal data bus, instruction decoder and ALU. 2.3.3. Introduction to Microcomputer system block diagram

3 Microprocessor Memory interfacing and Timing Cycles 8085 Microprocessor Pin out and signal diagram Higher address bus, Lower address and data bus, ALE, RD, WR, IO/M, VCC, VSS, X1,X2 pins, Clock frequency of 8085 De-multiplexing of the Address and data Bus AD7 - AD0, Role of ALE. Generation of control signals MEMR, MEMW, IORD, and IOWR. Timing cycles:- Definition of T-state, Machine cycle, Instruction cycle Timing cycle to transfer of byte(ex. mov C,A) from memory to MPU, Role of ALE, Role of IO/M, RD and WR. Timing Cycle of any two byte data transfer instruction(ex. MVI A, 32H) Memory Interfacing with 8085:- Basic concept of Memory interfacing, concept of Chip select pin, Address decoding techniques (Ex. Using NAND gate, Decoder etc..), Memory address selection according to size of memory chip,. Example of interfacing different size of ROM, EPROM with 8085 Microprocessor. Example of interfacing different size of RAM with 8085 Microprocessor. 4 Introduction & architecture of 8051 Micro controller Definition of Micro controller, Difference between Microprocessor and Microcontroller, Block diagram of 8051 Microcontroller, over view of 8051 family 8051 Microcontroller Architecture Architecture of 8051 Microcontroller, The program counter and ROM space in the 8051, 8051 flag bits and the PSW register, 8051 register banks, stack and RAM Space. 5 8051 Assembly Language Programming: Introduction to 8051 assembly programming, Structure of Assembly language, Assembling and running an 8051 program, 8051 data types and directives Jump, Loop, And Call Instructions: Loop and jump instructions, Call instructions time delay for various 8051 chips 6 8051 Addressing Modes: Immediate and register addressing modes, Accessing memory using various Addressing modes, Bit addresses for I/O and RAM, Extra 128-byte on-chip RAM in 8052. 7 Arithmetic and Logic Instructions and Programs: Arithmetic instructions, Signed number concepts and arithmetic operations, Logic and compare instructions, Rotate instruction and data serialization, BCD, ASCII, and other application programs. 8 I/O Port Programming and Seven Segment Display: 8051 I/O programming, I/O bit manipulation programming. Internal Structure of ports Introduction to seven segment display, common cathode and common anode seven segment display Interfacing of seven segment display with 8051 and programming to display from 0 to 9 at every second using loop. Interfacing of push button and SPST switch with 8051 ports. Introduction to key bouncing and de-bouncing techniques. Write a program to interface 8 SPST switch and one seven segment display with 8051 and display the number of switch whichever is presses at a time on seven segment display Generation of square wave on port pin with different duty cycle using loop. 3 6 3 6 5 10

9 8051 Programming in C: Data types and time delay in 8051 C, I/O programming in 8051 C, Logic operations in 8051 C, Data conversion programs in 8051 C, Accessing code ROM space in 8051 C, Data serialization using 8051 C. 10 8051 Hardware Connection and Intel Hex File: Pin description of the 8051, Design and test of 8051 Minimum Module, Explaining the Intel hex file. 11 8051 Timer Programming in Assembly and C: Programming 8051 timers, Counter programming, Programming timers 0 and 1 in 8051 C. 8051 Serial Port Programming in Assembly and C: Basics of serial communication, 8051 connection to RS232, 8051 serial port programming in Assembly, Programming the second serial port, Serial port programming in C. Interrupts Programming in Assembly and C: 8051 interrupts programming, Timer interrupts, Programming external hardware interrupts, Programming the serial communication interrupt, Interrupt priority in the 8051/52, Interrupt programming in C. 12 LCD and Keyboard Interfacing: LCD interfacing in Assembly and C. Keyboard interfacing in Assembly and C. 9 16 6 10 ADC, DAC Parallel ADC 0804 and 0808 interfacing with 8051 Parallel DAC 0808 interfacing with 8051, converting I out Generation of sine wave using DAC0808. to voltage in DAC0808, 13 8051 Interfacing to External Memory: Memory address decoding, 8031/51 interfacing with external ROM, Flash RAM, 8051 data memory space, Accessing external data memory in 8051 C. 8051 interfacing with 8255 Programming the 8255, 8255 interfacing, 8051 C programming for 8255 14 Motor Control: PWM, DC and Stepper Motors: Generation of PWM signal using timer in Assembly or C language Interfacing of DC motor with 8051 and control it s speed and direction using PWM Interfacing of Stepper motor with 8051 Suggested Specification table with Marks (Theory): Distribution of Theory Marks R Level U Level A Level N Level E Level C Level 14 21 14 14 7 - Legends: R: Remembrance; U: Understanding; A: Application, N: Analyze and E: Evaluate C: Create and above Levels (Revised Bloom s Taxonomy) Note: This specification table shall be treated as a general guideline for students and teachers. The actual distribution of marks in the question paper may vary slightly from above table.

Text Books: 1. Microprocessor Architecture, Programming and Applications with the 8085 by Ramesh Gaonkar(Fifth Edition). 2. The 8051 Microcontroller and Embedded Systems Using Assembly and C, 2/e by Muhammad Ali Mazidi, Janice Gillispie Mazidi and Rolin McKinlay ( Second Edition, Pearson Education ). 3. The 8051 Microcontroller & Embedded Systems using Assembly and C By K. J.Ayala, D. V. Gadre (Cengage Learning, India Edition). 4. 8051 Microcontrollers: MCS51 family and its variants by Satish Shah, Oxford University Press. 5. 8051 Microcontroller: Internals, Instructions, Programming and Interfacing by Subrata Ghoshal, Pearson Education. 6. The 8051 Microcontrollers: Architecture, Programming and Applications by K Uma Rao, Andhe Pallavi, Pearson Education. Reference Books: 1. INTEL Manual: MCS-51 Architecture. 2. Philips Data Handbook, I2C Peripherals. 3. IEEE Standards, Low Rate Wireless Personal Area Networks, 2003. Course Outcome: 1. After learning the course the students should be able to design a mini computer system. 2. Students should be able to do programming for general purpose automation. 3. Students should be able to make different displays, control dc motor speed control, interfacing memory with micro controller. 4. Student can make their own automation projects which may be useful in day to day life and helps to make human life better. List of Experiments and Design based Problems (DP)/Open Ended Problem: Assembly and C language programming for the 8051 Microcontroller 1) a) Write a program to add and subtract two 8-bit numbers stored in registers or internal/external memory locations. b) Write a program to multiply and divide two 8-bit numbers stored in registers or memory locations. c) Write a program to perform 16-bit addition and multiplication. 2) a) Write a program to add block of data stored in internal/external memory locations. b) Write a program to transfer block of data from internal memory locations to external memory locations. 3) a) Write a program to find maximum and minimum number from given data series b) Write a program to sort block of data in ascending or descending order. 4) Write a program to count the number of even numbers, odd numbers and zeroes from given data series 5) Write a program to generate Fibonacci series and store them to internal memory location 6) Write a program to compare a password (two data string ). 7) a) Write a program to perform the following. 1. Keep monitoring P1.2 until it becomes high. 2. When P1.2 becomes high write value 45H on P0. 3. Sent a high to low pulse to P2.3 b) A switch is connected to P1.7. Write a program to check the status of switch and perform the following. 1. if switch = 0, send letter N to P2 2. if switch = 1, send letter Y to P2. 8) a) Write a program to generate 5 KHz pulse waveform of 50% duty cycle on pin 1.0 using timer 1 in mode 2.

b) Write a program to generate 1 KHz pulse waveform of 70% duty cycle on pin 1.0 using timer. 9) a) Write a program for the 8051 to transfer letter A serially, continuously. b) Write a program to transfer the message YES serially. Do this continuously. c) Program the 8051 to receive bytes of data serially, and put them in P1. 10) Interfacing ADC and DAC. 11) Interfacing Matrix Keyboard. 12) Interfacing LED and LCD Displays. 13) Interfacing Stepper Motor. 14) Controlling DC motor using PWM. Microcontroller Interfacing Miniproject based on 8051 family microcontroller in a group of 2 to 3 students is mandatory. Practical number 1 to 5 is programmed in assembly language as well as in embedded C. Major Equipment: Microcontroller kits, IC programmer, IC tester, Bread board trainenr, Power Supply, Function generator, DSO, Special purpose ICs. List of Open Source Software/learning website: http://www.onlinevideolecture.com/electrical-engineering/nptel-iit-kharagpur/industrialinstrumentation/?course_id=514 https://www.8051.com ACTIVE LEARNING ASSIGNMENTS: Preparation of power-point slides, which include videos, animations, pictures, graphics for better understanding theory and practical work The faculty will allocate chapters/ parts of chapters to groups of students so that the entire syllabus to be covered. The power-point slides should be put up on the web-site of the College/ Institute, along with the names of the students of the group, the name of the faculty, Department and College on the first slide. The best three works should submit to GTU.