Professional Documents
Culture Documents
AutomaticsTrainings
TrainingGroup
Group
Microchip 8 Bits
Introduction
Analog vs Digital
Number Systems
P vs. C
Microcontrollers
Microprocessors
Microcomputers
I/O Systems
Embedded Electronics
Microchip Microcontroller
Buses
Memories
Embedded Systems
www.automatics.pk
Automatics Trainings Group
Microchip 8 Bits
Introduction
Analog vs Digital
Number Systems
Microprocessors Lecture1
Microcomputers
I/O Systems
Buses
Memories
Embedded Systems
2
www.automatics.pk
Automatics Trainings Group
Memories
Embedded Systems
3
www.automatics.pk
Automatics Trainings Group
Binary Signaling
Microchip 8 Bits
Introduction
Number Systems
FALSE or 0
P vs. C
3.3 or 5 volts
Microcontrollers
TRUE or 1
Microprocessors Modern chips down to 1V
Microcomputers
I/O Systems
Buses
Memories
Embedded Systems
4
www.automatics.pk
Automatics Trainings Group
Binary Numbers
Microchip 8 Bits
Memories
Embedded Systems
5
www.automatics.pk
Automatics Trainings Group
Example follows
P vs. C
Microcontrollers
Microprocessors
Microcomputers
I/O Systems
Buses
Memories
Embedded Systems
6
www.automatics.pk
Automatics Trainings Group
Introduction
Analog vs Digital 7 6 5 4 3 2 1 0
Number Systems
P vs. C
27 26 25 24 23 22 21 20
Microcontrollers 128 64 32 16 8 4 2 1
Microprocessors
Memories
128 + 0 + 0 + 16 + 8 + 4 + 0 + 0 = 156
Embedded Systems
7
www.automatics.pk
Automatics Trainings Group
Decimal to Binary
Microchip 8 Bits
Microprocessors
Microcomputers
I/O Systems
Buses
Memories
Embedded Systems
8
www.automatics.pk
Automatics Trainings Group
Hexadecimal
Microchip 8 Bits
Hex to Binary
Microchip 8 Bits Bin Hex
Analog vs Digital
Hex to Binary just convert digits 0001 1
0010 2
Number Systems 0011 3
P vs. C 0100 4
0101 5
Microcontrollers
Microprocessors
0x2ac 0110
0111
6
7
Microcomputers 1000 8
1001 9
I/O Systems
0010 1010 1100 1010 a
Buses
1011 b
0x2ac = 001010101100 1100 c
Memories
1101 d
Embedded Systems Remember hex digit = 4 bits 1110 10 e
1111 f
www.automatics.pk
Automatics Trainings Group
Octal
Microchip 8 Bits
Microprocessors
Microcomputers
I/O Systems
Buses
Memories
Embedded Systems
11
www.automatics.pk
Automatics Trainings Group
Introduction
Microchip 8 Bits
I/O Systems
data acquisition and control applications
Buses
Microcontroller (C)
Memories u-Computer on a single chip of silicon
Embedded Systems
12
www.automatics.pk
Automatics Trainings Group
P vs. C
Microchip 8 Bits
Introduction
A P
only is a single-chip CPU
Analog vs Digital bus is available
Number Systems
RAM capacity, num of port is selectable
RAM is larger than ROM (usually)
P vs. C
Microcontrollers A C
contains a CPU and RAM,ROM ,Peripherals,
Microprocessors
I/O port in a single IC
Microcomputers internal hardware is fixed
Communicate by port
I/O Systems
ROM is larger than RAM (usually)
Buses Small power consumption
Single chip, small board
Memories
Implementation is easy
Embedded Systems Low cost
13
www.automatics.pk
Automatics Trainings Group
P vs. C cont.
Microchip 8 Bits
Introduction
I/O Systems
processing information
Buses
in computer systems.
Memories
Embedded Systems
www.automatics.pk
Automatics Trainings Group
P vs. C cont.
Microchip 8 Bits
Introduction
C is easy to use and design.
Only single chip can be a complete system
Analog vs Digital
Number Systems
interfacing to other devices,
P vs. C
for example, motors, displays, sensors, and
Microcontrollers
communicate with PC.
Microprocessors
In contrast, similar system that builds
Microcomputers
from P would require a lot of
I/O Systems
additional units,
Buses
such as RAM, UART, I/O , TIMER and etc.
Memories
Embedded Systems
15
www.automatics.pk
Automatics Trainings Group
C is a Reusable Hardware
Microchip 8 Bits
I/O Systems
Buses
Memories
Embedded Systems
16
www.automatics.pk
Automatics Trainings Group
Microcontrollers
Microchip 8 Bits
Embedded Systems
17
www.automatics.pk
Automatics Trainings Group
Introduction
Microprocessor (MPU) typically contains
Analog vs Digital
Registers: Temporary storage locations for program
Number Systems
instruction or data.
P vs. C
The Arithmetic Logic unit (ALU): This part of the
Microcontrollers
MPU performs both arithmetic and logical???
Microprocessors
Microcomputers
operations
I/O Systems
Timing and Control Circuits: that keep all of the
Buses
other parts of system (Regs, ALU, memory & I/O)
Memories working together in the right time sequence
Embedded Systems
19
www.automatics.pk
Automatics Trainings Group
Microcomputers
Microchip 8 Bits
Introduction
All Microcomputers consist of (at least)
Analog vs Digital 1. Microprocessor Unit (MPU)
Number Systems 2. Program Memory (ROM)
P vs. C 3. Data Memory (RAM)
Microcontrollers 4. Input / Output ports
Microprocessors 5. Bus System
Microcomputers (and Software)
I/O Systems
Embedded Systems
20
www.automatics.pk
Automatics Trainings Group
Microcomputers
Microchip 8 Bits
Introduction
Analog vs Digital
Number Systems
P vs. C
Microcontrollers
Microprocessors
Microcomputers
I/O Systems
Buses
Memories
Embedded Systems
21
www.automatics.pk
Automatics Trainings Group
Bus
Microchip 8 Bits
Bus
Microchip 8 Bits
Introduction
There are three main bus groups
Analog vs Digital
ADDRESS BUS
Number Systems
DATA BUS
P vs. C
CONTROL BUS
Microcontrollers
Microprocessors
Microcomputers
I/O Systems
Buses
Memories
Embedded Systems
24
www.automatics.pk
Automatics Trainings Group
Data Bus
Microchip 8 Bits
Introduction
The Data Bus carries the data which is
Analog vs Digital
transferred throughout the system.
Number Systems
( bi-directional)
Examples of data transfers
P vs. C
Microcontrollers
Program instructions being read from memory into
Microprocessors
MPU.
Microcomputers Data being sent from MPU to I/O port
I/O Systems
Data being read from I/O port going to MPU
Results from MPU sent to Memory
Buses
Memories
These are called read and write
Embedded Systems
operations
25
www.automatics.pk
Automatics Trainings Group
Address Bus
Microchip 8 Bits
Introduction
An address is a binary number that
Analog vs Digital
identifies a specific memory storage
Number Systems
location or I/O port involved in a data
P vs. C
Microcontrollers
transfer
Microprocessors
The Address Bus is used to transmit
Microcomputers
the address of the location to the
I/O Systems
memory or the I/O port.
Buses The Address Bus is unidirectional
Memories ( one way ): addresses are always
Embedded Systems issued by the MPU.
26
www.automatics.pk
Automatics Trainings Group
Control Bus
Microchip 8 Bits
Introduction
The Control Bus: is another group of
Analog vs Digital
signals whose functions are to provide
Number Systems
synchronization ( timing control )
P vs. C
between the MPU and the other system
Microcontrollers
Microprocessors
components.
Microcomputers
Control signals are unidirectional, and
I/O Systems
are mainly outputs from the MPU.
Buses Example Control signals
RD:read signal asserted to read data into MPU
Memories
WR: write signal asserted to write data from MPU
Embedded Systems
27
www.automatics.pk
Automatics Trainings Group
Main memory
Microchip 8 Bits
Read-Only Memory
Microchip 8 Bits
Introduction
P can read instructions from ROM
Analog vs Digital
quickly
Cannot write new data to the ROM
Number Systems
Microcontrollers
Microprocessors
power cycled
Microcomputers
Typically, when the power is turned on,
I/O Systems
the microprocessor will start fetching
Buses instructions from the still-remembered
Memories program in ROM (bootstrap )
Embedded Systems
29
www.automatics.pk
Automatics Trainings Group
Available ROMs
Microchip 8 Bits
Microcomputers
memory, also known as EEROMboth reading
I/O Systems
and writing are very slow but can program
Buses millions of timesuseless for storing a program
Memories but good for say configuration information.
Embedded Systems
30
www.automatics.pk
Automatics Trainings Group
Embedded Systems
31
www.automatics.pk
Automatics Trainings Group
Embedded System
Microchip 8 Bits
Introduction Keyboard
Analog vs Digital Printer
Number Systems video game player
P vs. C MP3 music players
Microcontrollers Embedded memories to keep
Microprocessors configuration information
Microcomputers Mobile phone units
I/O Systems Domestic (home) appliances
Buses Data switches
Memories Automotive controls
Embedded Systems
33
www.automatics.pk
Automatics Trainings Group
Introduction
Analog vs Digital
Number Systems
P vs. C
Microcontrollers
Thank you
Microprocessors
Microcomputers
I/O Systems
Buses
Memories
Embedded Systems
www.automatics.pk