Lecture 1-SET 311- Microcontroller
Lecture 1-SET 311- Microcontroller
SET 311
1
Lecture # 1
Dr./ Ahmed Osman Mahmoud
2
Teaching Staff
Instructor:
Dr./ Ahmed Osman Mahmoud
[email protected]
Computer and Systems Department – Faculty of Engineering – Zagazig
University
Teaching Assistant
Eng./ Doaa Amin
Email:
Lecture Data and Location
3 Course Outlines
Introduction to microcontrollers
Microcontroller architecture and simulators
Assembly language programming
loop and jump instructions
Input and output programming
Addressing modes.
Arithmetic and logic operation
C language programming for Embedded System
Memory Organization in microcontroller
Timer programming in assembly and C
interrupts programming
Microcontroller interfaces
Microcontroller applications
4
Course Material
Book:
The 8051 Microcontroller and Embedded Systems Using Assembly and C
Course Website:
…….
5
General Rules
6
Introduction to Microcontroller
Dr./ Ahmed Osman Mahmoud
7 Agenda
Computer Architecture
Introduction to Microcontroller
Difference between CPU, Microcontroller
and Microprocessor
Embedded System
Microcontroller Classification
8051 Microcontroller
8 Computer Architecture
A computer is an electronic device that
can accept data as input, process it
according to a set of instructions
(software), and produce output.
Key components of a computer include:
Hardware: The physical parts of the
computer, such as the CPU, RAM,
motherboard, and storage devices.
Software: The programs that instruct the
hardware on what to do. This includes the
operating system and applications.
9 Computer Architecture
Key Components of Hardware Computer
Architecture:
❑ Control Unit (CU):The brain of the computer.
Fetches instructions from memory, decodes
them, and issues signals to the appropriate
components to execute them.
❑ Arithmetic Logic Unit (ALU):Performs
arithmetic operations (addition, subtraction,
multiplication, division) and logical
operations (AND, OR, NOT).
Note: CU and ALU together is called CPU
(Central Processing Unit).
10 Computer Architecture
❑Registers: Small, high-speed storage locations
within the CPU that hold data temporarily during
processing. Such as the instruction register (IR),
program counter (PC), and general-purpose
registers.
❑Memory: Stores data and instructions. Can be
divided into primary memory (RAM, ROM) and
secondary memory (hard drives, SSDs).
❑Input/Output (I/O) Devices: Allow the computer
to communicate with the outside world. Such as
keyboards, mice, monitors, printers, and network
interfaces.
❑Bus: A communication channel that connects the
components of the computer. Such as data bus.
11
12 Computer Architecture
The CPU is connected to memory and I/O
through strips of wire called a bus.
Bus Carries information from place to place
1. Address bus
2. Data bus
3. Control bus
13 Computer Architecture
Address bus: For a device (memory or I/O) to be
recognized by the CPU, it must be assigned an address.
The address assigned to a given device must be unique.
The CPU puts the address on the address bus, and the
decoding circuitry finds the device.
Data bus: The CPU either gets data from the device or
sends data to it.
Microcontrollers are
smaller, more specialized,
and often used in
embedded applications,
while computers are
larger, more versatile, and
used for a wider range of
tasks.
20 Computer VS. Microcontroller
An embedded product uses a microprocessor (or
microcontroller) to do one task and one task only.
There is only one application software that is typically
burned into ROM.
33
34
Thanks