Week 1 _ Introduction
Week 1 _ Introduction
• Punctuality
• Discipline
• Integrity
3
Course Architecture
4
Pre-Requisites
5
Course Learning Outcomes (CLOs)
Level of
S. No. Outcomes PLO
Learning
To understand internal architecture of 8051
1 C2 1
microcontroller
To apply programming techniques for creating time
2 C3 1
delays using loops and timers
To be able to develop / design solution of daily life
3 problems using timers and interrupts of 8051 C2 3
microcontroller
To design and evaluate solutions using 8051/ AVR
4 C2 3
microcontroller for engineering problems
To reproduce practical skills of electronic circuits to
5 manufacture and fabricate PCBs using tools such as P1 5
Proteus
To assemble different circuit boards as given in the
6 project during lab and implement microcontroller- P2 5
based solutions
6
MTS-311 Course Contents: Theory & Lab
S/no. Topics Covered in the Theory Part
1 Introduction
8051Microcontroller
2
• Architecture and Hardware
Labs
3 • Assembly Language
> Proteus
4 • Assembly Language Contd.
5 • Timers and Counters
> Assembly language of 8051
6 • Serial Port
7 • Interrupt > C of 8051 & AVR
8 • Design and Interface Examples
> PIC/STM32
Arduino Microcontroller
9
7
Grading System
• The grade of this course will be the weighted average of the following
activities.
Theory Part: *contributes 50% to the total. Lab Part: *contributes 50% to the total.
8
Benchmarking
Benchmarked Curriculum
9
Benchmarking
10
Benchmarking
Stanford > EE281 - Embedded System Design Laboratory
11
Books
8051 Microcontroller
I. Scott Mackenzie and R.C. Phan, “The 8051
Microcontroller”, Fourth Edition, Pearson Education 2007
13
Introduction
To
Microcontroller & Embedded Systems
Embedded Systems
➢An embedded system is a single-purpose computer built into a
larger system for the purposes of controlling and monitoring the system
[1]. A general purpose computer (e.g. a personal computer) is
defined not to be an embedded system.
ASIC FPGA
18
Embedded Systems in Cardiac Surgery
❖ What is the total length of blood vessels ?
❖ Make a guess at the total length, in
Kilometers, of all the blood vessels in an
adult human.
100,000 Kilometers
That’s more than twice the distance
around the Earth at the equator!
19
Embedded Systems in Cardiac Surgery
The average adult heart beats 72 times a minute; 100,000
times a day; 3,600,000 times a year; and 2.5 billion times
during a lifetime
Though weighing only 311 grams on average, a healthy heart
pumps 7600 litters of blood through 100,000 km of blood
vessels each day
A kitchen faucet would need to be turned on all the way for at
least 45 years to equal the amount of blood pumped by the
heart in an average lifetime
The volume of blood pumped by the heart can vary over a
wide range, from 5 to 30 liters per minute
Every day, the heart creates enough energy to drive a truck 32
Km. In a lifetime, that is equivalent to driving to the moon and
back
Because the heart has its own electrical impulse, it can
continue to beat even when separated from the body, as long
as it has an adequate supply of oxygen
In 1929, German surgeon Werner Forssmann (1904-1979)
examined the inside of his own heart by threading a catheter
into his arm vein and pushing it 20 inches and into his heart,
inventing cardiac catheterization, a now common procedure
20
EM336: Instrumentation & Measurements
Parallel world
Questions
How much blood do we have?
What the minimum amount of blood required?
3 Sets of 14 operations
Problem of pressurizing blood
130 successful operations
28
Embedded Systems in Cardiac Surgery
Walton Lillehei
and Dr. F. John Lewis at the
University of Minnesota on
September 2, 1952
attempted first successful
open-heart surgery on a 5
year old girl.
Temp of 28 degree C
32
Embedded Systems in Cardiac Surgery
33
Embedded Systems in Cardiac Surgery
Surface area of lungs is that of a tennis court.
How to cram a tennis court into an operating theatre
36
Embedded Systems in Cardiac Surgery
Second Generation of Heart Pumps
37
Embedded Systems in Cardiac Surgery
Third Generation of Heart Pumps
38
Embedded Systems in Cardiac Surgery
39
Embedded Systems in Cardiac Surgery
40
Embedded Systems in Cardiac Surgery
41
Embedded Systems in Cardiac Surgery
Thermo and
Fluid Dynamics
Electronics
Design of Machines
Microcontrollers
Introduction
What is a Computer?
Computer
Device capable of
Performing computations
Making Logical Decisions
44
Introduction
What is a Computer?
Programs
Set of instructions that process data
Guide computer through orderly sets of actions specified by
“Programmer”
Computer System
Consists of various hardware devices
Keyboard
Screen
Disks
Memory
Processing Units
45
Introduction
Computer
• Keyboard
• Mouse
RAM
• Touchscreen
Inputs
Central Processing
Unit
Outputs
• Monitors
• Printouts
• Speakers
ROM
46
Introduction
2. Output Unit
Puts information on various output devices
Monitors
Printouts
Speakers
47
Introduction
48
Introduction
49
Introduction
Computer Architectures / Design Philosphies
Hardware Architectures
Von Neumann Vs Harvard
Instruction = Program / Code
Data = Information being used
RISC Vs CISC
❑ Instruction Set = Set of Instructions (low level) that CPU can
process
50
Von Neumann Vs Harvard
Von Neumann Architecture
A single memory has:
DATA: the information being used
Instructions: Program to be executed
A single Bus connects CPU with the memory
At a time, either Instruction can be read OR data can be read
or written
2 cycles complete an
instruction
1st : Read instruction
2nd : Read/Write Data
Suitable for PCs & laptops.
51
Von Neumann Vs Harvard
Harvard Architecture
Separate Memories for
DATA: the information being used
Instructions: Program to be executed
Separate Buses connects CPU with the memory
When an instruction is being executed, data for next
instruction is fetched,
known as Pipelining.
Suitable for micro-
controllers & embedded
systems
52
Von Neumann Vs Harvard
55
CISC Vs RISC
R4
56
RISC Vs CISC
CISC RISC
Large Instruction set Small and Compact
Instruction set
57
Programming Languages
Programming Language: A set of rules, symbols and
special words used to construct a computer program
Machine Language
The binary representation of instructions a computer can perform
58
Programming Languages
High Level Languages
concept
59
From Machine Code Going Deeper
60
Going Deeper
61
Even Deeper (RAM)
62
Even Deeper (RAM)
63
Even Deeper (RAM)
128 x 64
bits
8 x 1 Mb = 1MB
65
Programming Languages
High Level Languages
66
Programming Languages
Low Level (Assembly Language)
English-like abbreviations
Represent basic operations of computer
68
Programming Languages
Assembly is a Low-Level Language
FORTRAN
High Level Pascal
COBOL
BASIC
C++
Middle Level C
69
Programmer’s Model of Computer
It does not matter whether the machine is
microprocessor / microcontroller based or a larger
machine
71
Address Space
Address Space is set of storage locations, each of which
has an Address
72
Registers
Registers serve many important functions, including
temporary storage of data
73
Instruction Set
Set of commands that computer can obey
74
Buses
Bus – Collection of wires through which data is
transmitted from one part of computer to another
Types of Buses
1. Data Bus
2. Address Bus
3. Control Bus
75
Data Bus
Data is shared among various components inside a
computer using wires known as Data Lines
76
Address Bus
Addresses are accessed in a computer using wires known
as Address Lines
77
Control Bus
These lines control the operation of a computer
78
Next Lecture
What is a microprocessor?
What is a microcontroller?
79