Microprocessor System and Interfacing
 
 
Subject Code: ECP2036
Aim of Subject: To provide a practical introduction to microprocessors, assembly language programming techniques, interface hardware design, and microprocessor system design considerations.
Learning Outcome of Subject: At the completion of the subject, students should be able to :
  • determine the basic operation of a microprocessor system.
  • understand the fetch and execute cycle.
  • evaluate the architectures of some typical 8-bit microprocessors, microprocessors and micro-controllers.
  • explain some typical 8-bit micro-controllers and their features.
  • determine features of the 8051 family.
  • study a typical 8051 micro-controller based system.
  • analyze the Instruction Set and Assembly Language Programming.
  • describe the assembly language format.
  • explain the I/O ports: operations and their uses.
  • study the organization of the interrupt system.
  • application of single and multiple interrupts.
  • illustrate the Interfacing examples.
Programme Outcomes:
  • Ability to acquire and apply fundamental principles of science and engineering(5%)
  • Capability to communicate effectively(10%)
  • Acquisition of technical competence in specialised areas of engineering discipline(65%)
  • Ability to identify, formulate and model problems and find engineering solutions based on a systems approach(5%)
  • Ability to conduct research in chosen fields of engineering(5%)
  • Understanding of the importance of sustainability and cost-effectiveness in design and development of engineering solutions(5%)
  • Ability to work independently as well as with others in a team(5%)
Assessment Scheme:
  • Lab Experiments - work in group of 2,oral assessment at the end of lab(10%)
  • Tutorial / Assignment - group assignment,focus group discussion at tutorial,to enhance understanding of basic concepts in lecture(15%)
  • Test/Quiz - written exam(15%)
  • Final Exam - written exam(60%)
Teaching and Learning Activities: 53 hours (lectures,tutorials and laboratory experiments)
Credit Hours: 3
Pre-Requisite: EEN1036: Digital Logic Design or
EET1176: Electrical Technology II
References:
  • Koo Voon Chet et. al., "The 8051 Cookbook: A Complete Guide to Architecture, Programming and Interfacing, 2nd Edition", Prentice-Hall, Malaysia, 2006. (Textbook)
  • I. Scott MacKenzie and Raphael Phan, "The 8051 Microcontroller, 4th Edition," Prentice-Hall Inc., U.S.A., 2007.
  • Richard H. Barnett, "The 8051 Family of Microcontrollers", Prentice-Hall Inc., U.S.A., 1995.
  • Muhammad Ali Mazidi et al., "The 8051 Microcontroller and Embedded Systems: Using Assembly and C, 2nd Edition",Prentice-Hall, U.S.A., 2006.
  • John B. Peatman, "Design with Microcontollers", McGraw-Hill, U.S.A., 1988
  • Intel's hardware design resource center http://developer.intel.com/design/index.htm

Subject Contents

  • Microprocessor Basics (5 hours)
    A basic microprocessor system: the CPU, memory, I/O, and buses subsystems, basic operation of a microprocessor system: fetch and execute cycle, the architecture of some typical 8-bit microprocessors, microprocessors and micro-controllers, some typical 8-bit micro-controllers and their features.
     
  • The Intel 8051 Micro-controller (10 hours)
    Features of the 8051 family, block diagram and definitions of the pin of the 8051, I/O port structure, memory organisation: general purpose RAM, bit addressable RAM, register bank, special function registers, external memory, memory space mapping and decoding, bus control signals timing, a typical 8051 micro-controller based system.
     
  • Instruction Set and Assembly Language Programming (8 hours)
    Addressing modes, the 8051 instruction set and typical examples, assembler operation, assembly language format, assembler directives, operation of assemblers and linkers, programming examples.
     
  • On-chip Peripheral Devices (6 hours)
    I/O ports: operations and uses of port 0, port 1, port 2, port 3, timers: their operations, programming, and applications, serial port: operations and programming, typical applications.
     
  • Interrupt System (5 hours)
    Organisation of the interrupt system, interrupt vectors, interrupt timings, serial port interrupts, and external interrupts, implementation of single and multiple interrupts.
     
  • Interfacing Examples (8 hours)
    Interfacing to external memory, keypad, seven-segment LED display, ADC and DAC chips, and input / output port expansion, description and uses of hardware development tools.

 

Laboratory

Experiment 1: Familiarization with the Trainer and Programming Fundamentals.
Experiment 2: Timing and display.