microcontroller sysllabus.pdf

11
SOUTHERN UTAH UNIVERSITY DEPARTMENT OF TECHNOLOGY AND CRIMINAL JUSTICE SYLLABUS EET 2790 MICROPROCESSORS FALL 2001 D.A. WARD

Upload: bing

Post on 25-Oct-2015

23 views

Category:

Documents


0 download

DESCRIPTION

A syllabus for pic microcontroller

TRANSCRIPT

Page 1: microcontroller sysllabus.pdf

SOUTHERN UTAH UNIVERSITY DEPARTMENT OF TECHNOLOGY

AND CRIMINAL JUSTICE SYLLABUS EET 2790 MICROPROCESSORS FALL 2001 D.A. WARD

Page 2: microcontroller sysllabus.pdf

1

COURSE DESCRIPTION: A foundation course designed to prepare the student with the key concepts of microprocessor architecture, interfacing, programming and design. The basic skills required to use the microprocessor as a tool in solution of electronic design problems will be taught and practiced. THE INSTRUCTOR'S PHILOSOPHY: I am more than happy to help students at any time in any way that I can. However, I believe that there is a responsibility on the part of the students to get the most that they can from any course. I would recommend that each student do the following in order to gain the most from this course: read each assignment before coming to class, do all homework assignments, never miss a class or a lab, and take detailed class notes. I hope that students will rate this course by comparing what they know now with what they have learned at the end of the course. If students will apply themselves I think they will be very pleased with what they will gain from taking EET 2790. Please contact me if you are having any difficulties as soon as possible so that I can help you before a problem gets too big. OFFICE HOURS: My office is located in the Technology Building in room 131, my phone number is 586-7981, and my email is [email protected]. I am usually in my office from 8:00 am to 9:00 am daily. However, there may be times when I am called to a meeting or am out of my office for other reasons. If you need to meet with me at a particular time please make an appointment and see that I write it down. REQUIRED MATERIALS: Textbooks: The Z80 Microprocessor Architecture, Interfacing, Programming and Design, third edition by Ramesh Gaonkar. Easy PIC’n A Beginner’s Guide to Using PIC 16/17 Microcontrollers, By David Benson STUDENT GRADING: Exams and unannounced quizzes 50% A = 90 to 100% Homework 10% B = 80 to 89% Lab assignments 35% C = 70 to 79% Attendance 5% D = 60 to 69% F = below 60% If a student does not contact the instructor prior to missing a quiz or exam that quiz or exam cannot be made up.

Page 3: microcontroller sysllabus.pdf

2

HOMEWORK: All late assignments will be penalized 20% per day. All homework will be due at the beginning of the class period, class and lab time cannot be used to do homework assignments. LAB ASSIGNMENTS: Due dates of the lab assignments will be given as the class progresses. Lab assignments will be graded on the following: correctness and completeness of your answers, the write-up of your conclusions, spelling, neatness and grammar. A.D.A. (AMERICANS WITH DISIBILTIES ACT) STATEMENT:

Students with medical, psychological, learning, or other disabilities desiring

academic adjustments, accommodations, or auxiliary aids will need to contact the Disability Support Center, Room 205D, Sharwan Smith Center, phone (435) 865-8022. The Disability Support Center determines eligibility for and authorizes the provision of these services and aids. COURSE OBJECTIVES: I. Introduction to Microcomputers a). Explain the difference between a microprocessor and a

microcomputer.

b). Define the terms: computer, digital computer, data processor, controller, hardware, software, memory, memory work, memory address, memory data, read, write, random access memory, read only memory, interfacing, device select pulse, and interrupt. c). Describe the different types of computers and controllers on the basis of the following characteristics: word length, complexity, application, cost, memory size, program, speed constraints, input/output (I/O), design, and manufacturing volume. d). Describe the operation of a typical Z80 microcomputer system.

Page 4: microcontroller sysllabus.pdf

3

II. Z80 and Associated Chips a). Identify the memory address bus, data bus, control inputs, control outputs, and power inputs on the 40 pin Z80 microprocessor chip. b). Describe the function of each pin on the Z80 microprocessor chip. c). Describe in some detail the various component sections of a small Z80 system. d). List the general principles of computer interfacing that apply to most digital computers. e). Explain what an I/O device is. f). List 3 Important uses for device select pulses. g). List the 3 inputs to the common 7400 series chips that can be strobed with device select pulses from a microcomputer.

III. Introduction to Microcomputer Programming

a). Explain what the difference between an instruction, operation, program, machine code instruction, assembly language instruction, and mnemonic instructions. b). Define the terms: assemble, bit, byte, nibble, flag, mnemonic symbol, device code, HI address, LO address, increment, decrement, label, jump, call, return, operand, carry flag, parity flag, zero flag, sign flag, register pair, sub-routine, 2 byte instruction, 3 byte instruction, unconditional operation, conditional operation, branch instruction, stack, stack pointer, program counter, accumulator, ALU, data byte, and instruction register. c). Classify the Z80 instruction set into 5 groups. d). Explain how an 8 bit instruction can be written in both octal and hexadecimal. e). List the mnemonic codes, following the Intel

Page 5: microcontroller sysllabus.pdf

4

recommendations, for at least 10 different Z80 instructions. f). Explain the difference between machine language and assembly language.

IV. Generating Status Information

a). Explain the differences between the internal and external buses in a Z80 based microcomputer system. b). List the sources and destinations of information that appears on the external data bus. c). Explain the differences between a state, clock cycle, instruction cycle, and machine cycle.

V. Input/Output (I/O) Devices

a). Latch the output from the accumulator of a Z80 based microcomputer with the aid of any one of 6 different integrated circuits: 7475, 74100, 74145, 75193, 74198, and the 74124. b). Input TTL data into the accumulator with the aid of either a 8095 or 8212 buffer IC’s. c). Explain what a data logger is. d). Calculate the timing delays required to data log digital information appearing at different rates.

VI. Sub-Routines, Interrupts, External Flags, and Stacks a). Define the terms: sub-routine, SSI, MSI, LSI, allocate, stack, interrupt, polling, software driver, vectored interrupt, disabled interrupt, external flag, deferred interrupt, and sense register. b). Explain how you would mask an 8 bit word to obtain the logic state of bit 5, or the logic state of any of the other 7 bits in the word. c). Explain how digital information is loaded and removed from the Z80 microcomputer stack.

Page 6: microcontroller sysllabus.pdf

5

d). Perform an approximate calculation that will tell you when to use a sub-routine. e). Describe how you would interface an ASCII keyboard

VII. PIC’s (Peripheral Interface Controllers) a). An introduction to PIC’s: what are they? what can they do? Where are they being used? What are their advantages and disadvantages? b). Programming PIC’s, using their assembly language. c). PIC projects and lab exercises.

VIII. Stamps

a). Stamps are specialized PIC’s on a PCB along with several support IC’s with a high level BASIC interpreter. b). Stamps lab exercises from Parallax introduction to their operation and features.

Page 7: microcontroller sysllabus.pdf

6

TENTATIVE CLASS AND LAB SCHEDULE DATE TOPIC AND PAGES TO BE READ FROM TEXT PRIOR TO CLASS WEEK 1, Chapter 1 (Gaonkar text), Microprocessors, Microcomputers, and Assembly Language W Aug 22 Introduction to the course: syllabus, homework, required materials, grading, etc. R 23 Microprocessor architecture WEEK 2, Chapter 2 (Gaonkar text), Microprocessor-Based System: MPU, Memory, and I/O M Aug 27 Numbering systems review: binary, octal, hexadecimal, and decimal T 28 Lab #1: getting started with the MT-80Z W 29 Memory types and operation, RAM and ROM R 30 Lab #1: getting started with the MT-80Z WEEK 3, Chapter 3 (Gaonkar text), Z-80 Microprocessor Architecture M Sep 3 Labor Day Recess, no classes held today. T 4 Memory continued W 5 Lab #1: getting started with the MT-80Z R 6 Lab #1: getting started with the MT-80Z WEEK 4, Chapter 4 (Gaonkar text), Memory Interfacing M Sep 10 Memory continued T 11 Lab #2 interfacing with RAM IC’s pages 95-97 W 12 Memory R 13 Lab #2 RAM continued

Page 8: microcontroller sysllabus.pdf

7

WEEK 5, Chapter 5 (Gaonkar text), Interfacing I/O Devices M 17 I/O interfacing T 18 Lab #3: EPROM’s W 19 I/O interfacing R 20 Exam on chapters 1-4 WEEK 6, Chapter 6 (Gaonkar text), Introduction to Z80 Assembly language Programming M Sep 24 Assembly language programming T 25 Lab #3: EPROM’s continued W 26 Assembly language programming R 27 Lab #3: EPROM’s continued WEEK 7, Chapter 7 (Gaonkar text), Software Development Systems and Assemblers M Oct 1 Programming T 2 Lab #4: 8 bit I/O W 3 Programming R 4 Lab #4: 8 bit I/O WEEK 8, Chapter 8 (Gaonkar text), Introduction to Z80 Instructions and Programming Techniques M Oct 8 Programming T 9 Lab #5: Write a song and save it in EPROM W 10 Review for midterm exam R 11 Midterm Exam, first block ends today

Page 9: microcontroller sysllabus.pdf

8

WEEK 9, Chapter 9 (Gaonkar text), Logic and Bit Manipulation Instructions M Oct 15 Logic and bit manipulation T 16 Lab #5 continued W 17 Logic and bit manipulation R 18 Lab #6: interrupts WEEK 10, Chapter 10 (Gaonkar text), Stack and Subroutines M Oct 22 Harvest Recess, no classes held today. T 23 Stacks and subroutines W 24 Lab R 25 Stacks and subroutines WEEK 11, PIC’s, Read pages 1-33 in Easy PIC’n M Oct 29 Introduction to the Microchip PIC16F84 microcontroller T 30 Programming PIC’s W 31 Sample programs and assignments using PIC’s R Nov 1 Lab work with PIC’s WEEK 12, PIC’s, Read pages 34-91 in Easy PIC’n M Nov 5 PIC’s T 6 Lab W 7 PIC’s R 8 Lab

Page 10: microcontroller sysllabus.pdf

9

WEEK 13, PIC’s, Read pages 92-106 in Easy PIC’n Comdex computer show this week in Las Vegas M Nov 12 PIC’s T 13 Lab W 14 PIC’s R 15 Lab WEEK 14, PIC’s Read pages 107-156 in Easy PIC’n M Nov 19 Complete PIC labs T 20 Complete PIC labs Thanksgiving Recess November 21, 22, and 23, no classes held. WEEK 15, Stamps, read Parallax stamp handouts M Nov 26 An introduction the Parallax Basic Stamp II T 27 Programming in Pbasic W 28 How to program and use stamps R 29 Lab using stamps WEEK 16, Stamps, read Parallax stamp handouts M Dec 3 More stamp programs and examples T 4 Lab using stamps W 5 Lab using stamps R 6 Last day of class, review for the final exam. FINAL EXAM SCHEDULE: Tuesday December 11, 2001 5:00 pm to 6:50 pm

Page 11: microcontroller sysllabus.pdf

10

EET 2790 Homework Assignments

Chapter assignments out of Gaonkar text: 1. Chap 1:1-12 2. Chap 2:1-12 3. Chap 3:1-10 4. Chap 3:11-14, 17-23 5. Chap 4:1-3, 6, 8, 13 6. Chap 5:1-4, 9-13 7. Chap 5:15, 21, 22, 24, 25 8. Chap 6:1-7, 9 9. Chap 6:10-16, 18