1.introduction To Microprocessor
1.introduction To Microprocessor
2
3
What are we going to
learn
• Microprocessor and Interfacing
• Microcomputer
• 8086 microprocessor
• Interfacing
• Microcontroller
• ATMEGA32
• Serial Protocols
4
Major Parts Of a Microcomputer
• CPU
• Memory
• Input / Output circuitry
• Buses:
• Address bus
• Data bus
• Control bus
5
Micro-computer overview
6
7
8
Central Processing Unit (CPU)
• It controls the operation of computer
• The CPU fetches binary-coded instructions from memory
• Decodes the instructions into a series of simple actions
• Carries out these actions in a sequence of steps
9
Input / Output
• They are used to take data from outside world or
send data to the outside world
• I/O devices are connected with microprocessor
through I/O ports
• Example: Keyboards, video display terminals,
printers, modems
10
11
12
Memory
• It stores the binary codes for the sequences of
instructions
13
Memory Organization:
• Processor memory
• Primary or main memory
• Secondary memory
14
Processor Memory:
• It refers to the microprocessor registers which are
used to hold temporary results when computation
is in progress
• No speed disparity between these registers and
microprocessor because they are fabricated using
the same technology
• Costly
15
Primary Memory
• This is the storage area in which all programs are
executed
• The microprocessor can directly access only those
items that are stored in primary memory
• All programs and data must be within the primary
memory prior to execution
• Example: ROM, RAM
16
Secondary Memory
• It stores program and data in excess of main memory
• Microprocessor can not directly execute programs
which are stored in secondary memory
• In order to execute these programs, the
microprocessor must transfer them to its main
memory by a system program called
operating system
• Example: Floppy disk, Hard disk etc.
17
Figure: ROM
18
Figure: RAM
18
Figure: Floppy Disk
19
Figure: Hard Disk
20
BUS
With a wider bus, the computer can move more data in the same
amount of time (or the same amount of data in less time).
23
24
25
Address Bus
• The address bus is a set of wires. It consists of 16, 20,
24, 32 or 36 parallel unidirectional signal lines
• On these lines the CPU sends out the address of the
memory location or I/O port that is to be written to or
read from
• The number of locations that the CPU can address is
determined by the number of address lines
26
Data Bus
• The data bus is a set of wires which
consists of 8, 16, 32 parallel
bidirectional signal lines
• Many devices in the system will have
their output connected to data bus,
but only one device at a time will have
its output enabled
27
Control Bus
• The control bus is a set of wires which consists of 4 to 10
parallel signal lines
• The CPU sends out signals on the control bus to enable
the outputs of addressed memory devices or I/O devices
• Example of control signals: Memory read, Memory write
28
29
30
31
32
33