p.MSOCAPTION {mso-style-noshow:yes;}li.MSOCAPTION {mso-style-noshow:yes;}div.MSOCAPTION {mso-style-noshow:yes;}

Syllabus

Notes

Lectures

Staff

Labs

Resources

211

 

 CprE211 - Microcontrollers and Digital Systems Design

Departmentof Electrical & Computer Engineering   
Iowa State University

Spring 2007

Lectures


 

WEEK 1

Jan. 9 & 11

  • Begin Unit 1: Embedded Programming in C
  • Lecture 1: Syllabus
  • Lecture 2: Introduction to embedded systems
    1. Slides (PPT), Microprocessor and Embedded Systems
    2. Slides (PPT), Introduction to Microcontroller
    3. Slides (PDF), based on DeMicheli & Gupta, "Hardware-Software Codesign," Proc. IEEE, 1997
    4. Slides (PDF), from Lewis, Fundamentals of Embedded Software, Prentice Hall, 2002
    5. C Program Example for the PowerBox: Elevator Controller Program

 

WEEK 2

Jan. 16 & 18

  • Lab 1: Embedded programming environment (C, assembly)
  • Lectures 3 & 4: Embedded and C programming (Functions, types, variables, constants, arrays and pointers, structure and unions)
  • Assigned Reading: refer to Lab 2 Prelab

 

WEEK 3

Jan. 23 & 25

  • Lab 2: Meter program (C, PowerBox input/output)
  • Lectures 5 & 6: C programming for embedded systems continued

 

WEEK 4

Jan. 30 & Feb. 1

  • Lab 3: Password program (C, PowerBox input, program design)
  • Lectures 7 & 8: Embedded and C programming continued; Data memory layout, function and stack, and C library functions

 

WEEK 5

Feb. 6 & 8

 

WEEK 6

Feb. 13 & 15

  • Lab 5: Control-oriented and real-time programming, state-based programming (C)
  • Lecture 11: Embedded and C programming continued; Data memory layout, function and stack, and C library functions
  • Exam 1 in class (Thursday) – through lectures of weeks 1-5
  • Begin Unit 2: Embedded Programming in Assembly Language

 

WEEK  7

Feb. 20 & 22

 

WEEK  8

Feb. 27 & March 1

 

WEEK 9

Mar. 6 & 8
 

 

 

 

Spring break follows

 

WEEK 10

Mar. 20 & 22

Begin Unit 3: Input/Output Subsystems and Interfacing

  • Lab 8: Messaging service

·        Lab Project

  • Lectures 18 & 19: Memory-mapped I/O, polling and interrupts I/O, Exceptions and Interrupts

·         Notes: Sections 5.2, 5.3

·         Supplementary notes

·         Slides – MPC 555 Interrupt System (PowerPoint)

·         How Interrupts Work

·         Supplemental reading

§         Understanding Interrupts, by R. Massey, from www.embedded.com, June 1, 2001

§         MPC555 Interrupts, Motorola Semiconductor Application Note, by J. Dunlop, J. Fuchs, and S. Mihalik, July 26, 2001

WEEK 11

Mar. 27 & 29

  • Lectures 20: MPC555 PIT and Exception Processing (PowerPoint)

·         Notes: Sections 5.2, 5.3

·         How Interrupts Work

  • Exam 2 in class (Thursday) – through lectures of weeks 6-10

WEEK 12

Apr. 3 & 5

  • Lab 10: A/D I/O
  • Lecture 21 & 22: MPC555 On-chip I/O and ESR Programming

·         Notes: Section 5.1

·         Slides – MPC555 On-chip I/O and Interrupt Systems (PPT)

·         Supplementary notes

WEEK 13

Apr. 10 & 12

 

  • Lecture 23 & 24: MPC555 ADC Design and Programming

·         Slides – MPC555 QADC64: Design and Programming (PPT)

WEEK 14

Apr. 17 & 19

·         Lab Project, Lab Project Evaluation

  • Lectures 25 & 26: TPU continued, Input Capture, Output Compare

·        Slides – TPU (PPT)

·        Supplementary notes

·        Supplemental Reading

o       Remarks from lecture

o       General TPU C Functions, Motorola Semiconductor Application Note, Oct. 2002 Using the Input Capture TPU Function, Motorola Semiconductor Application Note, Oct. 2002

o       Using the Output Compare TPU Function, Motorola Semiconductor Application Note, Oct. 2002

o       Using the Pulse-Width Modulation TPU Function, Motorola Semiconductor Application Note, Oct. 2002

o       Supplemental Slides, Chapter 4 Peripherals, from Embedded System Design by Vahid and Givargis, Wiley 2002. (PPT)
Slide on PWM, as well as other I/O peripheral interfaces.

 

WEEK 15

Apr. 24 & 26

  • Lab Demonstration
  • Lectures 27: Course recap

·         List of Lecture-Lab Connections

·         Fantasies Embedded in Real Time,” May 2002

·         Slides – CPRE211 Summary

  • Exam 3, Monday April 30, 10:00 – 11:15