Intro to Microcontrollers

2,340 views
2,244 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,340
On SlideShare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
Downloads
101
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Intro to Microcontrollers

  1. 1. CprE 211: Introduction to Microcontrollers Spring 2007 Iowa State University
  2. 2. Course Information <ul><li>Instructor </li></ul><ul><ul><li>Zhao Zhang </li></ul></ul><ul><ul><li>Contact info: zzhang@iastate.edu </li></ul></ul><ul><ul><li>Office Hours: T 2-3pm, R 11am-12pm, 368 Durham, or by appointments (send me email) </li></ul></ul><ul><li>TA </li></ul><ul><ul><li>Kritanjali Balakrishnan </li></ul></ul><ul><ul><li>Dong Fei </li></ul></ul>
  3. 3. Text and References <ul><li>There is no required text for this class </li></ul><ul><li>The RCPU Reference Manual , MPC500 Family, will be distributed in lab (free) </li></ul><ul><li>Class notes are available on the web and will be referenced </li></ul><ul><li>Other references books are listed in syllabus </li></ul><ul><li>Online references will be very useful and are linked from the class web site </li></ul>
  4. 4. Learning Objectives <ul><li>Understand computer hardware as a system programmer </li></ul><ul><li>Introduce you to the use of a processor in control systems </li></ul><ul><li>Understand basic concepts of microcontrollers </li></ul><ul><li>Basic hardware and software debugging </li></ul><ul><li>Understand the PowerPC processor architecture </li></ul>
  5. 5. Learning Objectives <ul><li>Program in C and Motorola PowerPC assembly language </li></ul><ul><li>Understand how C is converted to assembly code </li></ul><ul><li>Understand basic computing concepts such as interrupts, Interrupt Service Routines, and I/O subsystems </li></ul><ul><li>Be able to work with, program, and design basic embedded systems </li></ul>
  6. 6. Course Outline <ul><li>Introduction to Embedded Systems </li></ul><ul><li>C programming for embedded systems </li></ul><ul><li>Assembly programming and PowerPC instruction set </li></ul><ul><li>Translating C into assembly </li></ul><ul><li>Interrupt handling for PowerPC </li></ul><ul><li>Timer Processing Unit and other I/O devices </li></ul>
  7. 7. Course Policies <ul><li>Class attendance is not required </li></ul><ul><ul><li>Participate in class discussions </li></ul></ul><ul><ul><li>Homework will be submitted in class </li></ul></ul><ul><li>Lab attendance is mandatory </li></ul><ul><ul><li>Read lab policies on the syllabus </li></ul></ul>
  8. 8. Grading <ul><li>WebCT will be used for grade distribution </li></ul><ul><li>Homework: 15% </li></ul><ul><li>Regular Laboratory Exercises: 25% </li></ul><ul><li>Laboratory Project: 15% </li></ul><ul><li>Exam 1, 2 and 3: 15% each </li></ul>
  9. 9. Laboratory <ul><li>Lab attendance required . Automatically fail a lab by missing it </li></ul><ul><ul><li>If you need to miss a lab for medical or emergency reasons, inform the TA and the instructor </li></ul></ul><ul><li>1301 Coover </li></ul><ul><li>No lab during the first week of classes </li></ul><ul><li>Motorola PowerPC based system (PowerBox) </li></ul>
  10. 10. Academic Honesty <ul><li>Work independently </li></ul><ul><li>Seek peer help to better your knowledge and skills rather than your grades </li></ul><ul><li>Good questions: </li></ul><ul><ul><li>“ Why is MPC555 a microcontroller…” </li></ul></ul><ul><ul><li>“ How to turn on the PowerBox …” </li></ul></ul><ul><li>Bad questions: </li></ul><ul><ul><li>“ Can you show me your answers …” </li></ul></ul>
  11. 11. Any questions about the course?
  12. 12. History of Microprocessors <ul><li>1950s - The beginning of the digital era and electronic computing </li></ul><ul><li>1969 – Intel is a small startup company in Santa Clara with 12 employees </li></ul><ul><ul><li>Fairchild, Motorola are large semiconductor companies; HP and Busicom make calculators </li></ul></ul><ul><li>1971 – Intel makes first microprocessor the 4-bit 4004 series for Busicom calculators </li></ul><ul><li>1972 – Intel makes the 8008 series, an 8-bit microprocessor, </li></ul><ul><ul><li>ATARI is a startup company </li></ul></ul><ul><ul><li>Creates a gaming console and releases PONG </li></ul></ul>
  13. 13. History of Microprocessors <ul><li>1974 – the first real useful 8-bit microprocessor is released by Intel – the 8080 </li></ul><ul><ul><li>Motorola introduces the 6800 series </li></ul></ul><ul><ul><li>Zilog has the Z80 </li></ul></ul><ul><li>1975 – GM and Ford begin to put microcontrollers in cars </li></ul><ul><ul><li>Many cars today have over 100 microcontrollers </li></ul></ul><ul><ul><li>TI gets into the microprocessor business with calculators and digital watches </li></ul></ul><ul><li>1977 – Apple II is released using MOS 6502 (similar to motorola 6800). Apple II dominated from 1977 to 1983 </li></ul><ul><li>1978 – Intel introduces the first 16-bit processor, the 8086 </li></ul><ul><ul><li>Motorola follows with the 68000 which is ultimately used in the first Apple Macintosh </li></ul></ul>
  14. 14. History of Microprocessors <ul><li>1981 – IBM enters the PC making market and uses the Intel 8088 – proliferation of the home computer </li></ul><ul><li>1982-1985 – Intel introduces the 32-bit 80286 and 80386 </li></ul><ul><li>1989 – 80486 is being used in PC’s, able to run Microsoft Windows </li></ul><ul><li>1992 – Apple, IBM and Motorola begin to make PowerMac and PowerPC’s using Motorola chips </li></ul><ul><li>1993 – Pentium chip is released </li></ul><ul><li>The rest is history </li></ul>
  15. 15. Discussion <ul><li>What are some components of a computer? </li></ul><ul><li>What is a Microprocessor? </li></ul><ul><li>A Microcontroller? </li></ul><ul><li>An Embedded System? </li></ul>
  16. 16. Components of a Computer <ul><li>Central Processing Unit </li></ul><ul><ul><li>Interprets and carries out all the instructions contained in software </li></ul></ul><ul><li>Memory </li></ul><ul><ul><li>Used to store instructions and data </li></ul></ul><ul><ul><li>Random Access Memory (RAM) </li></ul></ul><ul><ul><li>Read Only Memory (ROM) </li></ul></ul><ul><li>Input/Output </li></ul><ul><ul><li>Used to communicate with the outside world </li></ul></ul>
  17. 17. Microprocessor <ul><li>A single chip that contains a whole CPU </li></ul><ul><ul><li>Has the ability to fetch and execute instructions stored in memory </li></ul></ul><ul><ul><li>Has the ability to access external memory, external I/O and other peripherals </li></ul></ul><ul><li>Examples: </li></ul><ul><ul><li>Intel P4 or AMD Athlon in desktops/notebooks </li></ul></ul><ul><ul><li>ARM processor in Apple iPod </li></ul></ul>
  18. 18. Microcontroller <ul><li>Essentially a microprocessor with on-chip memories and I/O devices </li></ul><ul><li>Designed for specific functions </li></ul><ul><li>All in one solution - Reduction in chip count </li></ul><ul><ul><li>Reduced cost, power, physical size, etc. </li></ul></ul><ul><li>Examples </li></ul><ul><ul><li>MC68332, MC68HC11, PPC555 </li></ul></ul><ul><li>More details of components later </li></ul><ul><ul><li>A/D converters, temperature sensors, communications, timing circuits, many others </li></ul></ul>
  19. 19. Embedded System <ul><li>Special purpose computer system usually completely inside the device it controls </li></ul><ul><li>Has specific requirements and performs pre-defined tasks </li></ul><ul><li>Cost reduction compared to general purpose processor </li></ul><ul><li>Different design criteria </li></ul><ul><ul><li>Performance </li></ul></ul><ul><ul><li>Reliability </li></ul></ul><ul><ul><li>Availability </li></ul></ul><ul><ul><li>Safety </li></ul></ul>
  20. 20. Why Study Microcontroller <ul><li>The course may serve several purposes: </li></ul><ul><ul><li>Build useful applications </li></ul></ul><ul><ul><li>Practice programming and debugging skills </li></ul></ul><ul><ul><li>Understand the inside of computer </li></ul></ul><ul><li>It paves the way to learning computer design, operating systems, compilers, embedded systems, security and other topics. </li></ul><ul><ul><li>Microcontrollers have everything in a typical computer: CPU, memory and I/O. </li></ul></ul>

×