Microprocessor Introduction
Microprocessor Introduction
• Reading:
• Joseph Yiu, “The Definitive Guide to the ARM Cortex-M0/M0+ processors, 2nd
Ed., Newnes, (Elsevier), 2015
• Gaonkar R. S., "Microprocessor Architecture, Programming and Applications
with 8085", 6th Ed., Penram International, Indian, 2013
• Few handouts from course instructor
• Grading (Theory):
• 30 midsem + 20 internal + 50 endsem
• Total marks=100
• Grading (Practical):
• Practical evaluation (continuous) = 25 (internal) + 25 (external i.e. practical exam)
Microprocessor:
• Programmable general purpose logic device
• Executes set of instruction (software) in well defined manner
• 8-bit to 64-bit variants with variety of computing capabilities
• Architectures: intel x86 CISC, ARM RISC processors, MIPS, PowerPC
Microcomputer:
• Programmable machine having Microprocessor as one of the key element
• It also consists various types of memory, Input devices, Output devices
• Additionally, it contains GPU, Network interfaces, Hard disk drives
• Examples: PC, Mainframe and Super computers
• PC content is placed in address bus, memory content 4Fh is put in buffer register
• Then, 8085 activates the RD control signal that places buffer register value (i.e. 4Fh)
on data bus
• Memories (RAM and ROM chips) are interfaced using Address bus, Data bus and
Control signals (MEMR & MEMW)
• Each memory has chip enable (CE) pin. Memory chip can be enabled /disabled by
applying LOW or HIGH on CE pin
• Input /Output devices use IOR and IOW control signals
Address Decoding:
• To interface 4K ROM and 4K RAM, lower twelve address lines A11A10 . . . A0 will be connected
to each chip. Higher address lines A 15 to A12 are used to generate chip enable signal.
• Next two address lines A13 and A12 are connected to input of 2x4 decoder. Two outputs (O 0
and O1) of decoder are connected to chip enable (CE) input of ROM and RAM.
• The remaining upper address lines A15A14 are decoded to generate active low
signal to be connected to En input of 2x4 decoder. Since A15 and A14 are high,
Logical NAND operation is performed between A15 and A14 to generate low signal.
• Subroutine Call
A small segment of code which
is part of software. It can be
called several times from main
program using CALL instruction.
This small segment of code is
called subroutine.
• Stack
A dedicated section of RAM for
storing values temporality.
When first CALL instruction is
executed, return address (that is
30B2h) is automatically stored
in stack memory as shown.