Microcontroller & Interfacing

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

GUJARAT TECHNOLOGICAL UNIVERSITY

Rewa Engineering College, Rewa. Rewa Department OF Electrical Engineering

EC 6504 MICROPROCESSOR AND MICROCONTROLLER

SARDAR RAJA COLLEGES SARDAR RAJA COLLEGE OF ENGINEERING ALANGULAM

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

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE0501. Subject Name: Microprocessor Fundamentals & Programming

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

THE AVR MICROCONTROLLER AND EMBEDDED SYSTEMS. Using Assembly and С

ITT Technical Institute. ET2640 Microprocessors and Microcontrollers Onsite and Online Course SYLLABUS

Department of Electronics and Instrumentation Engineering Question Bank

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


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

GUJARAT TECHNOLOGICAL UNIVERSITY

Microcontroller and Embedded Systems:

Question Bank Microprocessor and Microcontroller

Mrs.T.Divya Barathi AP/ECE. Integrated Circuits Digital Logic Circuits Stack & Queue Concepts

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

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

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

Diploma in Embedded Systems

INTRODUCTION OF MICROPROCESSOR& INTERFACING DEVICES Introduction to Microprocessor Evolutions of Microprocessor

VALLIAMMAI ENGINEERING COLLEGE

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET

SRM UNIVERSITY FACULTY OF SCIENCE AND HUMANITIES DEPARTMENT OF PHYSICS AND NANOTECHNOLOGY COURSE PLAN FOR PHY0408

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Interrupt Handling Module No: CS/ES/13 Quadrant 1 e-text

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

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

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY DEPARTM ENT OF CSE COURSE PLAN SECTION DAY ORDER PERIOD TIMINGS

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

Academic Course Description

1. Pin diagram of 8051 and ports

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

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

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

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

Effective Utilization of a Microcontroller Port for Optimisation of Hardware

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

SRI VENKATESWARA COLLEGE OF ENGINEERING

CHAPTER 6 ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS

Microprocessors and Interfacng. Question bank

Department of Electronics and Communication Engineering Microprocessors and Microcontrollers Laboratory Description:

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

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

G.PULLAIAH COLLEGE OF ENGINEERING AND TECHNOLOGY

Microprocessors/Microcontrollers

Unit wise Question Bank UNIT-II

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

Microprocessors and Microcontrollers. Assignment 1:

Academic Course Description. EC0309A Microprocessors and Micrcontrollers Fifth Semester, (Odd Semester)

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Lecture 1. Course Overview and The 8051 Architecture

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

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

BASIC INTERFACING CONCEPTS

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

Class: S.E. (Electrical) Course: 2012 PAT. Semester: IV : FUNDAMENTALS OF MICROPROCESSOR AND MICROCONTROLLER Textbooks:

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

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

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

MECE336 Microprocessors I

8051 microcontrollers

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


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

Sencer Yeralan and Helen Emery Gainesville, Florida January 2000

Electrical Engineering

ENE 334 Microprocessors

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Introduction to Computing Module No: CS/ES/1 Quadrant 1 e-text

INSTRUCTIONAL OBJECTIVE

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

Code No: Set No. 1

8051 Overview and Instruction Set

1. LCD (Liquid Crystal Display)interface

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

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

Automation Engineers AB Pvt Ltd, NOIDA Job-Oriented Course on Embedded Microcontrollers & Related Software Stack

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


8051 Microcontrollers

SOUTHWESTERN MICHIGAN COLLEGE DIVISION OF ADVANCED TECHNOLOGIES Dowagiac, Michigan COURSE SYLLABUS Winter Semester/Session 2012

Description of the Simulator

8051 Microcontroller

Engr. A. N. Aniedu Electronic and Computer Engineering Nnamdi Azikiwe University, Awka

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

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

Subject Code: Model Answer Page No: /25

Four Categories Of 8085 Instructions That >>>CLICK HERE<<<

Avr Microcontroller And Embedded Systems Using Assembly And C

Introduction to Microcontrollers

FUNDAMENTALS OF MICROPROCESSOR AND MICROCONTROLLER (FMM) SHREE RAMCHANDRA EDUCATION SOCIETY S DEPARTMENY OF ELECTRICAL ENGINEERING LAB MANUAL

Academic Course Description. EC1016A Microprocessors and Microcontrollers Fifth Semester, (Odd Semester)

LAB 1: MC68000 CPU PROGRAMMING DATA TRANSFER INSTRUCTIONS

Advanced Embedded Systems

Microcomputer Architecture and Programming

8051 Instruction Opcodes In Hexadecimal Order

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Transcription:

Course Title Course Code Microcontroller & Interfacing EC406 Lecture : 3 Course Credit Practical : 1 Tutorial : 0 Total : 4 Course Objective At the end of the course the students will be able to Understand architecture and the operation of microcontroller Differentiate between microprocessor and microcontroller Write an assembly & C language program to solve basic binary math operations Apply knowledge of the microcontroller s internal registers and operations by use of a PC based simulator. Develop the programming skill by converting assembly and C-Language program into machine code and test them on the training board. Design an interface that allows a microcontroller to control various peripherals Develop the project after identifying proper application. Detailed Syllabus Sr. No. 1 Name of chapter & details Section I Hours Allotted 8051 Microcontrollers: Microcontrollers and embedded processors, Overview of the 8051 family 02 2 3 4 8051 Assembly Language Programming: Architecture of 8051, Introduction to 8051 assembly programming, assembling and running an 8051 program, The program counter and ROM space in the 8051, 8051 data types and directives, 8051 flag bits and the PSW register, 8051 register banks and stack 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. LCD and Keyboard Interfacing: Classification, 16x2 LCD Pin Diagram, LCD commands, LCD interface and program, Matrix structure, Algorithm for scanning Matrix keyboard and Program.

5 ADC and DAC interfacing: Parallel and serial operation by ADC and DAC interfacing chips 6 7 RTC Interfacing and Programming: RTC interfacing, RTC programming in C, Alarm, SQW, and IRQ features of the various chip. Relay and Motor Control: Relays and Optoisolators, Stepper motor interfacing, DC motor interfacing and PWM. 02 8 9 10 11 12 13 14 Section II Data Transfer, 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. Branch Instructions: Loop and jump instructions, Call instructions time delay for various 8051 chips. 8051 Hardware Configuration and I/O Port Programming: Pin description of the 8051, Reset circuitry, Crystal circuitry and internal structure of I/O Ports ; I/O programming, I/O bit manipulation programming, LED and Switch interfacing. 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. 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. 02 Instructional Method and Pedagogy:

Lectures will be conducted with the aid of multi-media projector, black board, Transparencies etc. Assignments and Exercise will be given to the students for each unit/topic and will be evaluated at regular interval. Surprise tests/quizzes/seminar/tutorials will be conducted. Minimum 24 experiments shall be there in the laboratory related to course contents. Reference Books: 1. Muhammad Ali Mazidi, Janice Gillispie Mazidi and Rolin McKinlay, The 8051 Microcontroller and Embedded Systems Using Assembly and C, Pearson Education, 2 nd Edition, ISBN: 81775892 2. By K. J. Ayala, D. V. Gadre, The 8051 Microcontroller & Embedded Systems using Assembly and C, Cengage Learning, India Edition, 3 rd Edition, ISBN: 978-8131502006 3. Satish Shah, 8051 Microcontrollers: MCS51 family and its variants, Oxford University Press.1 st Edition ISBN:978-0198063575 4. 4. Subrata Ghoshal, 8051 Microcontroller: Internals, Instructions, Programming and Interfacing, Pearson Education, 1 st edition, ISBN : 9788131731437 Additional Resources www.mikroe.com http://www.8051projects.net/ http://www.8051projects.info/ http://www.8051project.org/

INDEX 1 To learn the Architecture of 8051 Microcontroller. 2 To describe various addressing modes of 8051 microcontroller. 3 To develop an Assembly Language program to (A) Add/subtract two 8-bit numbers. (B) Add/subtract two 16-bit numbers (C) Add/subtract two 32 bit numbers 4 To develop an Assembly Language program to (A) Divide an 8 bit number by 8-bit number. (B) Multiply two 8-bit numbers (C) Multiply two 16-bit numbers 5 To develop an Assembly Language program to (A) Transfer accumulator data into register R0 and R1 of Bank-1 (B) Rotate bytes in register R0-R1-R2-R3 (C) Add 1 in every external RAM location addressed from 00H to 06H. (D) Move Bit-4 of RAM location 30H into Bit-7 of Accumulator. 6 To develop an Assembly language program to (A) Add block of data stored in internal memory locations. (B) Transfer block of data in internal RAM. (C) Sort block of data in ascending or descending order. 7 To develop an Assembly and C-Language program to access external RAM and code memory. 8 To develop an Assembly and C-Language Program to (A) Put a random number in address location 20H and increment it until it equals the random no. available in R5. (B) Put random number into R2 and R5, increment R2 and decrement R5 until they are equal. (C) Count the number of ones in register B and put the count in R5. (D) Use R4 (LSB) and R5 (MSB) as a 16 bit counter and decrement the pair until equals 0000H. 9 (E) To develop an Assembly and C-Language program to convert packed BCD number stored in Accumulator to equivalent hexadecimal number and vice-versa. (F) To develop an Assembly and C-Language program to convert the hexadecimal number stored in Accumulator (00h-FFh) to its ASCII equivalent. 10 To demonstrate LED interfacing and develop an assembly and C-Language program for (A) Blinking LED at One second. (B) Ring counter (Shifting) pattern at One second. 11 To demonstrate Switch interfacing and develop an assembly and C-Language program for (A) Scan Monitoring P1.2 until it becomes high; when P1.2 becomes high toggle P0, Sent a high to low pulse to P2.3. (B) Check a status of P1.7 and P1.6 Switches and perform the following (1) If P1.7 pressed, send letter N to P2 (2) If P1.6 pressed, send letter Y to P2. 12 To develop an assembly and C-Language program to (A) Generate 5 KHz pulse waveform of 50% duty cycle on pin 1.0 using timer 1 in mode

2. (B) Generate 1 KHz pulse wave form of 70% duty cycle on pin 1.0 using timer. 13 To develop an assembly and C-Language program to (A) Transfer letter A serially, continuously. (B) The message YES serially, continuously. (C) Receive data serially, and put them in P1 continuously. 14 To demonstrate concept of External Interrupt-0 and Timer-0 Interrupt and develop an assembly and C-program to (A) Generate Square wave of 5 KHz and 10 KHz using timer-0 interrupt. (B) Toggle Port-2 if INT0 triggers.