MCU 01 Unlocked
MCU 01 Unlocked
Fall : 2024
Microprocessors and Programming
Instructor : Dr. …
E-mail : …
Office : …
2
Lecture Slides / Notes
GR:1 svfofsv
GR:2 fzgqqol
3
Course Description
Software
Hardware
4
Course Objectives
5
Course Prerequisites
In this course, the students are expected to make distinctive term projects by
Therefore, basic knowledge of analog and digital electronics is mandatory and good
6
Tentative Course Plan
7
Grading Policy
8
Recap
In the first 4 weeks, there will be a recap course in the lab classes.
• Bin/hex/Dec transforms
9
Recommended Books
Embedded C Programming and the Microchip PIC,R. Barnett, L’O Cull and S.
Fox, 2004, thomson
11
Microcontroller to be used in course
Microchip
16F877A
12
Microcontroller to be used in course
Microchip
16F887
13
16F88x VS 16F87X
14
Microprocessor
Intel 4004
Intel 8080
16
Short History of CPUs
17
Microprocessor
1.Instruction set: The set of instructions that the microprocessor can execute.
2.Bus width : The number of bits processed in a single instruction.
3.Clock speed : Given in megahertz (MHZ) or Gigaheartz (GHz) the clock speed
determines how many instructions per second the processor can execute.
18
Microcomputer
19
Microprocessor
RAM Timers
20
Microcontroller
RAM Timers
In microcontroller,
all the memory elements and I/O ports are integrated along with the CPU
inside a single chip.
21
Microprocessor & Microcontroller
10/13/2024 22
Difference Between MicroController and Microprocessor
Application
Microprocessors Microcontroller
Gaming
web browsing
video editing Relationship between input and output is defined
Mathematical calculations
Simulations Performs predefined tasks according to inputs
23
Difference Between Microcontroller and Microprocessor
Microprocessor Microcontroller
Apllications General Computing Appliance,
(i.e. Pc, Notebooks) Specialized devices
Speed Very fast ~GHz Relatively slow ~MHz
24
Software
Machine Language (0-1)
Binary Instructions
Difficult to decipher and write
Error-prone
25
Software
High-Level Languages
BASIC, C, and C++
Written in statements of spoken languages
Machine independent
Easy to write and troubleshoot
Larger memory and less efficient execution
26
Internal Components of Microprocessors
27
Internal Components of Microprocessors
Data Bus
It is a group of wires that is used to channel data (which to be processed or
after processed) from peripherals (memory or I/O devices) to CPU or vice
versa.
Address Bus
It is a group of wires that is used to channel locations of data which will be or
has been processed.
Control Bus
It is a group of wires that is used to send control signals (such as MEMW,
MEMR, IOR, IOW, interrupt and DMA) from CPU to peripheral (memory or I/O
devices) or vice versa.
28
Internal Components of Microprocessors
ACC (Accumulator)
It is a register which can store data for temporary before sending to process in
ALU and also can store the processed data before sending to store in the memory
or display through peripheral output.
It is just like a “entrance” for a data to go in and come out from ALU.
29
Internal Components of Microprocessors
Data Register
This register is a temporary storage location for data going to or coming from
the data bus.
30
Internal Components of Microprocessors
Address Register
This register is another temporary storage location.
It holds the address of the memory location or I/O device that is used in the
operation presently being performed.
Instruction Decoder
After an data is pulled from memory and placed in the data register, the data is
decoded by this circuit.
The decoder checks the code and decides which operation is to be performed.
Controller-sequencer
This unit will produce a variety of control signals to carry out the instruction.
Since each instruction is different, a different combination of control signals is
produced for each instruction.
31