Class Notes (1,100,000)
CA (620,000)
UW (20,000)
ECE (200)
ECE222 (10)
Lecture 1

ECE222 Lecture Notes - Lecture 1: Group R, Reset Button, Flash Memory


Department
Electrical and Computer Engineering
Course Code
ECE222
Professor
Harp Arora
Lecture
1

This preview shows pages 1-3. to view the full 65 pages of the document.
1
University of Waterloo
Electrical and Computer Engineering Department
Digital Computers
ECE-222 Lab manual
Winter 2015
Dec 4, 2014
Developed by: Rasoul Keshavarzi, Hiren D. Patel
Assisted by: Roger Sanderson, Eric Praetzel, Gordon B. Agnew
This manual is for the exclusive use of students registered in the course.
Reproduction or use for any other purpose is prohibited.

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

2
Contents
General Information .......................................................................................................................................... 5
Lab schedule .................................................................................................................................................. 5
Lab groups ..................................................................................................................................................... 5
Lab marking ................................................................................................................................................... 5
Due dates and on-time delivery .................................................................................................................... 6
Lab-0: Introduction to the ARM platforms in the lab ........................................................................................ 7
Objective ....................................................................................................................................................... 7
What you do .................................................................................................................................................. 7
Pre-lab ........................................................................................................................................................... 7
Introduction to hardware and software........................................................................................................ 7
Hardware ................................................................................................................................................... 7
Software .................................................................................................................................................... 8
In-lab procedure ............................................................................................................................................ 8
Running assembly language code on the MCU ......................................................................................... 9
Using the simulator ................................................................................................................................. 10
Debugging assembly language code ....................................................................................................... 11
Lab report .................................................................................................................................................... 12
The assembly language code ....................................................................................................................... 14
Lab-1: Flashing LED .......................................................................................................................................... 16
Objective ..................................................................................................................................................... 16
Background .................................................................................................................................................. 16
Pre-lab ......................................................................................................................................................... 16
In-lab procedure .......................................................................................................................................... 17
Using Flash versus RAM memory ................................................................................................................ 18
Switching from Flash memory to RAM ........................................................................................................ 18
Coding Goals ................................................................................................................................................ 21
Lab report .................................................................................................................................................... 21
The assembly language code ....................................................................................................................... 22
Lab-1 Submission form ................................................................................................................................ 23
Lab-2: Subroutines and parameter passing..................................................................................................... 24
Objective ..................................................................................................................................................... 24

Only pages 1-3 are available for preview. Some parts have been intentionally blurred.

3
What you do ................................................................................................................................................ 24
Pre-lab ......................................................................................................................................................... 24
In-lab procedure .......................................................................................................................................... 24
Lookup Tables .............................................................................................................................................. 26
Lab report .................................................................................................................................................... 27
The Morse code ........................................................................................................................................... 28
Lab-2 Submission form ................................................................................................................................ 29
Lab-3: Input/Output interfacing ...................................................................................................................... 30
Objective ..................................................................................................................................................... 30
What you do ................................................................................................................................................ 30
Background .................................................................................................................................................. 30
Pre-lab ......................................................................................................................................................... 30
In-lab procedure .......................................................................................................................................... 31
Lab report .................................................................................................................................................... 32
Extra Information ........................................................................................................................................ 32
Lab-3 Submission form ................................................................................................................................ 33
Lab-4: Interrupt handling ................................................................................................................................ 34
Objective ..................................................................................................................................................... 34
What you do ................................................................................................................................................ 34
Pre-lab ......................................................................................................................................................... 34
In-lab procedure .......................................................................................................................................... 34
Lab report .................................................................................................................................................... 35
Lab-4 Submission form ................................................................................................................................ 36
Appendix A: The LPC1768 microprocessor ..................................................................................................... 37
Appendix B: Instruction set summary ............................................................................................................. 40
Appendix C: Memory map ............................................................................................................................... 47
Appendix D: Input / Output ports ................................................................................................................... 49
Appendix E: Exception and Interrupts ............................................................................................................. 55
Appendix F: Schematic diagram [4] ................................................................................................................. 56
References: ...................................................................................................................................................... 62
University Expectations and Policies ............................................................................................................... 63
Academic Integrity ...................................................................................................................................... 64
You're Reading a Preview

Unlock to view full version