Vous êtes sur la page 1sur 29

ECET 209

Introduction to Microcontrollers
Class Introduction

ECET 209
Introduction to Microcontrollers
Overview

• Basic Microcontrollers
• Course Syllabus

ECET 209 Purdue University 3


What is a Microcontroller?

• A microcontroller is a complete computer


system optimized for hardware control that
encapsulates the entire processor, memory,
and all of the I/O peripherals on a single
piece of silicon (text book definition).

ECET 209 Purdue University 4


What is a Microcontroller?

• Complete Computer System


• Processor
• Memory
• I/O peripherals
• Single piece of Silicon

ECET 209 Purdue University 5


Computer System

• System of hardware that performs


arithmetic operations, manipulates data, and
makes decisions.

ECET 209 Purdue University 6


I/O Peripherals

• A Microcomputer can input and output data


to devices connected to the computer
system
• Control devices
• Data can be exchanged through Parallel or
Serial connections

ECET 209 Purdue University 7


Single Piece of Silicon

• Microcomputers are a result of evolution of


processors and manufacturing techniques
which produce smaller (and smaller)
devices

ECET 209 Purdue University 8


Nature of a Microcontroller

• 3 Basic Blocks to a Microcontroller


– CPU
– Memory
– I/O

ECET 209 Purdue University 9


ECET 209 Purdue University 10
CPU

• Carries out the Instructions


• Provides Intelligence (Decision Making)

ECET 209 Purdue University 11


CPU

ECET 209 Purdue University 12


Memory

• Stores the Program (Flash)


– Instructions that tell the CPU what to do

• Storage for Information (RAM)


– Holds information
• Making decisions
• Acquired Data, etc.

ECET 209 Purdue University 13


Memory

ECET 209 Purdue University 14


Input / Output

• Various methods to move data into and out


of the Microcontroller
• Allows the micro to see the “World” and to
modify or change the “World”

• Devices include lights, switches, relays,


motors, displays, sensors, and on and on…

ECET 209 Purdue University 15


I/O

ECET 209 Purdue University 16


Basic Overview

Memory CPU I/O

ECET 209 Purdue University 17


ECET 209 Purdue University 18
ECET 209 Purdue University 19
Processor vs. Controller

• Processor – designed to “crunch” numbers


• Controller – new breed of processor
optimized for control tasks

• Processors generally move data in groups of


say 8-bits while controllers are designed to
manipulate single bits of data

ECET 209 Purdue University 20


Where are Microcontrollers
Used?
• Automobiles
• Air Craft
• Household Appliances
• And on and on…

• If it has intelligence, then it may have an


embedded microcontroller!!
ECET 209 Purdue University 21
Aspects of this Course

• Hardware vs. Software


• Structured Approach to Problem Solving

• Perhaps one of the Most Difficult Courses


– (not because I want it to be)
– Above mentioned Aspects
– Have to Think and Solve Problems
– Simple Fact, You’re Sophomores!!!
ECET 209 Purdue University 23
Ultimate Goal(s)

• **Prepare you for 396 / 496 & 497

• Prepare you for life after Purdue

• Fuel your love of micros so that you take all


the digital & micro courses we offer

ECET 209 Purdue University 24


Semester “Projects”

• Random # Guessing Game


• Frequency Meter (with Phase Shift)
• Volt Meter
• DC Motor Speed Controller
• FM Radio Tuner

ECET 209 Purdue University 25


No Experience Required

• The C Programming Language will be used


as a Tool to Implement a Solution
– Concentrate on Solving a “Problem”
– C is that Tool
• C for Embedded Microcontrollers is Different
• Read the Assignments and Follow Me…
– Why C ?
• Distinct Advantages
• Some Disadvantages as well

ECET 209 Purdue University 26


Questions?

ECET 209 Purdue University 27


Class Syllabus

• Instructors (Lab & Lecture)


• Course Description & Objectives
• Texts & Web Sites
• Development Board
• Cheating Policy
• Attendance
• Grading Policy
ECET 209 Purdue University 28
Lab #1

• Lab Orientation
• Write a simple C program
• Program the Microcontroller
• Build I/O Cables (parts kit)

ECET 209 Purdue University 29

Vous aimerez peut-être aussi