1 SCHOOL OF ENGINEERING MODULE BOOKLET Module EEE111J2 CRN 3672 Digital Systems & Microprocessors MODULE CO-ORDINATOR: Dr F J Owens Room: 5B17 Tel: (028) 90366513 e-mail: fj.owens@ulster.ac.uk MODULE TUTORS: Dr S J Katzen Room: 5D02 Tel: (028) 90366448 e-mail: sj.katzen@ulster.ac.uk Dr F J Owens Room: 5B17 Tel: (028) 90366513 e-mail: fj.owens@ulster.ac.uk CONTACTING STAFF: Staff will be available to see students at times indicated on their office doors. Where possible make an appointment, as this will alleviate waiting. NOTE: This does NOT preclude interviews at other times, alternatively email the staff member at the address above. If you need to see a member of staff urgently, then contact the School office in (Room 5D06).
2 MODULE TITLE: MODULE CODE: DIGITAL SYSTEMS & MICROPROCESSORS EEE111J2 MODULE LEVEL: 1 CREDIT POINTS: 20 SEMESTER: 2 MODULE STATUS: Core for courses: BEng Electronics and Software C224UJ BEng(Hons) Electronics and Software C221UJ LOCATION: PREREQUISITES: COREQUISITES: MODULE CO-ORDINATOR: Jordanstown None None Owens, F J Dr., Jordanstown School of Electrical and Mechanical Engineering TEACHING STAFF RESPONSIBLE FOR MODULE DELIVERY: Owens, F J Dr., Jordanstown School of Electrical and Mechanical Engineering Katzen, S J Dr., Jordanstown School of Electrical and Mechanical Engineering HOURS: Lecture / Tutorial : 48 hours Teaching Laboratory : 24 hours Independent learning, typically : 128 hours ACADEMIC SUBJECT: RATIONALE: requirement AIMS: Electrical and Electronic Engineering A study of digital electronics is a fundamental of courses in Electronic Engineering. This introductorylevel module is designed to provide the foundation theory of digital combinational and sequential systems together with an introduction to microcontroller engineering. To provide engineering students with the necessary foundation in digital systems and microcontrollers to support further studies in Electronic Engineering. INTENDED LEARNING OUTCOMES: Assessment key: SE - an outcome normally assessed via a set examination.
3 CA - an outcome normally assessed via continuous assessment methods. The students should be able to: i demonstrate an understanding of the internal architecture of the target processor and its interaction with I/O and memory (CA & SE); i demonstrate a working knowledge of the software structure, including instruction set, of the target microcontroller. (CA & SE); i edit, assemble, compile and simulate, and test a range of elementary programs. (CA); i be able to design simple routines (CA & SE) i demonstrate an understanding of the principles of binary digital representation. (CA & SE); i analyse a range combinational and sequential building blocks. (CA & SE); i design simple logic circuitry using applicable synthesis techniques. (CA & SE); i demonstrate an understanding of the operation and characteristics of simple digital electronic circuits. (SE). CONTENT: Digital Systems Digital concepts, operation and characteristics of electronic digital gates. Binary arithmetic. Codes. Combinational and simple sequential logic. Boolean algebra. Karnaugh maps. Multiplexers, demultiplexers, encoders, decoders, registers and counters. Read-only and read/write memory devices. TEACHING AND LEARNING METHODS: Microcontroller Engineering Von-Neumann and Harvard computer architecture. Microcontroller structure, instruction set and flags. Program and Data Memory organisation. Interfacing to external devices using parallel ports. Subroutines. Assembly-level cross development of software. The fundamentals of the topics are introduced through lectures with some material being presented in the form of teaching laboratory. ASSESSMENT: Continuously Assessed (CA) 50% Three assignment points are used to test learning outcomes: a sight unseen class test. a written assignment. laboratory performance on interface experiments to assess both process and understanding of hardware-
4 software interaction. Set Examination (SE) 50% READING LIST: A 3-hour examination paper is set to measure learning outcomes covering both digital and microcontroller topic areas. Required: Digital Fundamentals, 8 th Ed. Floyd, T Prentice-Hall 2002 Recommended: The Quintessential PIC Microcontroller Katzen, S.J. Springer-Verlag, Second Edition, 2005 Digital Electronics, A Practical Approach. Kleitz, W Prentice-Hall, 6 th Edition 2001 Digital & Microprocessor Engineering Cahill, S J Prentice-Hall 1993 http://www.engj.ulst.ac.uk/sidk/pic/read_pic.htm SUMMARY DESCRIPTION: This module for engineering students covers an introduction to both random digital hardware and programmable software approaches to digital systems.
5 OPTIONAL ANNEX ENGINEERING BENCHMARK COMPONENTS AND APPLICABILITY Mathematics - Simple binary logic and arithmetic processes, Boolean algebra. Science - No scientific skills developed or used in this module. IT - Use of the PC to host microcontroller software development CAE packages. Design - Combinational and sequential logic networks. Microcontroller software and hardware circuits. Communication and organisational skills. Business Context - No business skills are covered in this module. Engineering Practice - As relevant to a standard commercial digital logic and a proprietary microcontroller. MATHEMATICS Knowledge and Understanding of: Binary arithmetic and logic manipulation processes. Simple Boolean algebra including graphical techniques. Intellectual Abilities: Ability to select and apply appropriate methods to analyse and design logic and microcontroller routines. Practical Skills: Can code, run and test software implementations of the appropriate algorithm. General Transferable Skills: Use of IT skills in creating, running and documenting microcontroller-based programs.
6 INFORMATION TECHNOLOGY Knowledge and Understanding of: PC operating system. Using an integrated development environment in a PC environment to develop test and simulate software structures. The architecture, software and hardware interaction of the target microcontroller. Intellectual Abilities: Ability to apply computer-based methods for developing software for the target microcontroller. Practical Skills: Can code, run and test target software. Can simulate simple hardware interface. General Transferable Skills: Use of general IT tools. Documentation skills. DESIGN Knowledge and Understanding of: Intellectual Abilities: Design algorithms used to design logic circuitry. Design principles relevant to coding and hardware issues inherent in microcontroller systems. Can design and analyze logic circuitry and microcontroller systems. General Transferable Skills: Use of creativity in problem solving within narrowlybased parameters. ENGINEERING PRACTICE Knowledge and Understanding of: Intellectual Abilities: Commercial logic devices. Industrial standard logic symbols. Structures of industrial standard microcontroller software development tools. Ability to produce solutions based on standard products. Practical Skills: General Transferable Skills: Ability to use proprietary industrial devices in the design process. The engineering approach to the solution of problems.
7 Timetable: Semester 2 Tuesday 11.15 13.05 Digital Systems Lecture 21D09 Weeks 1 10, 13 14 Thursday 11:15 13:05 Microcontroller Systems 16E25 Weeks 1 7, 10 14 Monday 14.15 16.05 Electronic Eng/Electronics & Software Tutorials/laboratory 6C49 Thursday 15:15 17:05 BEng/MEng Engineering Tutorials/laboratory Class test Week 7 Laboratory tests Weeks 13 & 14 Easter Vacation Weeks 11 & 12 6C49 Recommended Reading: See pages 3 & 4. Web sites: Module web site with lecture material, previous examination papers and revision material http://www.engj.ulst.ac.uk/sidk/eee111a PIC Microcontroller web site http://www.engj.ulst.ac.uk/pic
8 Teaching Plan (subject to revision) Semester 2 Session 2008/2009 (Digital Systems) Week Topics Details 1 Introduction to Digital Systems Waveform characteristics; rise time, pulse width; IC Packages. Binary numbers; decimal/binary conversion. 2 s complement notation. 2 Binary arithmetic 2 s complement arithmetic, Hexadecimal numbers. Hexadecimal decimal binary conversion. Codes; BCD, Grey, ASCII. 3 Logic gates. Boolean Algebra 4 Boolean algebra, Laws. Simplification methods Basic gates, truth tables. Universal property of NAND gates. Boolean algebra. Laws of Boolean algebra. De Morgan s Theorem. Sums of products, Products of sums. Simplification of logic expressions. Karnaugh Maps. 5 Application of basic logic Examples of the application of logic to engineering situations. 6 Logic circuits Half adder, full adder, parallel binary addition 7 Revision, Class Test 8 More logic functions Comparators, decoders, encoders, multiplexers, demultiplexers. 9 Flip flops / Counters SR latch. JK flip-flop. D-type flip-flop. T-type flip-flop. Shift registers. 4-bit counters. Binary, truncated counter. Ripple effect. Synchronous counter. 10 Logic families / Memory Basic features of TTL and CMOS logic gates. Voltage transfer characteristic, current sourcing, current sinking, fan-out and fan-in capacities. Basics of semiconductor memory. RAM, ROM, EPROM. 11 Easter vacation Revision 12 Easter vacation Revision 13 Tutorial/revision and Laboratory test 14 Tutorial/Revision and Laboratory test
9 Semester 2 Session 2008/2009 (Microprocessor Systems) Content Student Learning Objectives Week 1 Digital and analogue concepts. System structure. Binary codes and groupings. Week 2 Von Neumann and Harvard computer architectures. Outline of a microcontroller. The PIC mid-range MCU family. Week 3 What is a program? Program store, Data/file store and mill. The fetch and execute rhythm. The Pipeline. Can differentiate between digital and analogue signals and appropriate processing. Appreciates the role of a microcontroller in a digital system. Understands the principles of a Harvard and von Neumann structures. Understands the structure and function of a microcontroller. Appreciate the interaction of the Program store Mill Data store in executing a program. Week 4 Move and Add instructions. Binary structure of instructions with op-code destination address. Literal instructions. An elementary program using Move and Add instructions. The principle of assembly language and the assembly process. Week 5 Arithmetic instructions. SFRs and GPRs. The Status register and Flags.Testing for zero. Bit test and Skip instructions for conditional decisions. Program loops. Flow charts. Week 6 Comparing numbers. Logic Instructions NOT, AND, Inclusive-OR and Exclusive- OR. Appreciates the binary structure of simple instructions. Understands the nature of assembly source code as against machine code. Understands the function of the C and Z flags. Can use these flags with arithmetic instructions to test data for zero or equality. Understands the use of the bitwise logic instructions in altering and testing data. Week 7 Tutorial Week 8 Subroutines and modular programming. The Stack. Execution times and single-loop delay subroutines. Week 9 Parallel ports, their function in connecting to the outside world and their setting up using the TRIS registers involving bank switching. Can write and call simple subroutines including delay subroutines. Can program with output ports and use the pin-stimulator to simulate such programs.
10 Week 10 Review Weeks 11 & 12 Easter vacation Weeks 13 14 Review and revision. Tutorial. Student revision Laboratory tests ASSESSMENT INFORMATION AND SCHEDULE Coursework Assessment Digital & Microcontroller Class Test. Week 7: 35% Submission of tutorial questions & Performance in laboratory sessions Weeks 1 10: 35% Laboratory tests. Weeks 13 & 14: 30%