Docsity

8085 microprocessors, Study notes of Microprocessors

Toggle sidebar
bg1
Unit I : 8-BIT AND 16-BIT MICROPROCESSORS
1. Architecture and pin details of 8085, 8086
2. Instruction Set and Assembly Language Programming
3. Addressing Modes
4. Interrupts
5. Timing Diagrams
6. Memory and I/O Interfacing
7. Minimum and Maximum mode configurations of 8086
Practicals: Programs for 8/16-bit Arithmetic, Sorting and Searching operations in 8085
and 8086
TEXT BOOKS
•Ramesh S. Gaonkar, "Microprocessor Architecture, Programming and Applications with
8085". Sixth edition, Penram International Publishing 2012.
•Douglas V. Hall, "Microprocessor and Interfacing, Programming and Hardware", Tata
McGrawHill, Revised 2nd Edition 2006,11th reprint 2015.
Dr. V. SATHIESH KUMAR Department of Electronics Engg., MIT
1
Presented By,
Dr. V. Sathiesh Kumar
MIT Campus, Anna University
EC23C21: MICROPROCESSORS AND
MICROCONTROLLERS
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download 8085 microprocessors and more Study notes Microprocessors in PDF only on Docsity!

Unit I : 8-BIT AND 16-BIT MICROPROCESSORS

  1. Architecture and pin details of 8085, 8086
  2. Instruction Set and Assembly Language Programming
  3. Addressing Modes
  4. Interrupts
  5. Timing Diagrams
  6. Memory and I/O Interfacing
  7. Minimum and Maximum mode configurations of 8086 Practicals: Programs for 8/16-bit Arithmetic, Sorting and Searching operations in 8085 and 8086 TEXT BOOKS
  • Ramesh S. Gaonkar, "Microprocessor Architecture, Programming and Applications with 8085 ". Sixth edition, Penram International Publishing 2012.
  • Douglas V. Hall, "Microprocessor and Interfacing, Programming and Hardware", Tata McGrawHill, Revised 2 nd Edition 2006 , 11 th reprint 2015. 1 Presented By, Dr. V. Sathiesh Kumar MIT Campus, Anna University

EC23C21: MICROPROCESSORS AND

MICROCONTROLLERS

2

COURSE OUTCOMES:

At the end of the course, students will have, CO 1 : Ability to understand the features and components of 8 - bit and 16 - bit microprocessors. CO 2 : Ability to develop assembly language program and interface peripherals with microprocessors. CO 3 : Ability to understand the 8051 architecture and the methodology to configure and program peripherals. CO 4 : Ability to understand the ARM architecture and the methodology to configure and program peripherals. CO 5 : Ability to design, develop and troubleshoot a simple microprocessor or microcontroller based systems.

4 Introduction to Microprocessor: Operation

  • The microprocessor follows a instruction execution sequence : Fetch, Decode , and then Execute.
  • Initially, the instructions are stored in the memory in a sequential order.
  • The microprocessor fetches those instructions from the memory, then decodes it and executes those instructions till STOP instruction is reached.
  • Later, it sends the result in binary to the output port.
  • Between these processes, the register stores the temporarily data and ALU performs the computing functions.

5 Introduction to Microprocessor: List of terms used in microprocessors

  • Here is a list of some of the frequently used terms in a microprocessor: 1. Instruction Set āˆ’ It is the set of instructions that the microprocessor can understand. 2. Bandwidth āˆ’ It is the number of bits processed in a single instruction. 3. Clock Speed āˆ’ It determines the number of operations per second the processor can perform. It is expressed in megahertz (MHz) or gigahertz (GHz).It is also known as Clock Rate. 4. Word Length āˆ’ It depends upon the width of internal data bus, registers, ALU, etc. An 8 - bit microprocessor can process 8 - bit data at a time. The word length ranges from 4 bits to 64 bits depending upon the type of the microcomputer. 5. Data Types āˆ’ The microprocessor has multiple data type formats like binary, BCD, ASCII, signed and unsigned numbers.

7 8085 Microprocessor Features:

  1. It is a 8 - bit microprocessor.
  2. 40 - pin ceramic DIP.
  3. It is manufactured with N-MOS technology.
  4. It has 16 bit address bus and hence can address up to 216 = 65536 bytes of memory locations through A 0 - A 15 address lines.
  5. The first 8 lines of address bus and 8 lines of data bus are multiplexed AD 0 - AD 7.
  6. Data bus is a group of 8 lines D 0 - D 7.
  7. It supports external interrupt request.
  8. A 16 - bit program counter (PC) and 16 - bit Stack pointer (SP).
  9. Six 8 - bit general purpose registers arranged in pairs: BC, DE, HL.
  10. It requires a signal + 5 V power supply and operates at 6. 144 MHz single phase clock.
  11. Program, data and stack memories occupy the same memory space. The total addressable memory size is 64 KB.

8 8085 Microprocessor Features:

  1. The processor always uses 16 - bit addresses, so that data can be placed anywhere.
  2. Stack memory is limited only by the size of memory. Stack grows downward.
  3. First 64 bytes in a zero memory page should be reserved for vectors used by RST instructions.
  4. It is used in washing machines, microwave ovens, mobile phones, etc.

10 8085 Microprocessor Pin Details:

11 8085 Microprocessor Pin Details: ļ‚§ RESET IN* (Active Low): When this signal goes low, the program counter (PC) is set to zero, microprocessor is reset and resets the interrupt enable and HLDA flip-flops. ļ‚§ RESET OUT : This signal indicates the microprocessor is reset. This signal can be used to reset other devices. The signal is synchronized to the processor clock and lasts an integral number of clock periods. ļ‚§ 8085 Microprocessor has two Serial Input/Output pins that are used to read/write one bit data to and from peripheral devices. ļ‚§ SID (Serial Input Data Line): The data on this line is loaded into accumulator (bit 7 ) whenever a RIM (Read Interrupt Mask) instruction is executed.

13 8085 Microprocessor Pin Details: ļ‚§ HLDA* (Hold Acknowledge, Active Low): Indicated that the CPU has received the HOLD request and that it will relinquish the bus in the next clock cycle. HLDA* goes low after the HOLD request is removed. ļ‚§ READY : This signal synchronizes the fast CPU and the slow memory, peripherals. If READY is high during a read or write cycle, it indicates that the memory or peripheral is ready to send or receive data. If READY is low, the CPU will wait an integral number of clock cycle for READY to go high before completing the read or write cycle. ļ‚§ ADDRESS BUS : A 15 - A 8 , it carries the most significant 8 - bits of memory/IO address. ļ‚§ ADDRESS/DATA BUS : AD 7 - AD 0 , it carries the least significant 8 - bit address and data bus. These pins are used for:

  1. Receiving the program code from memory 8 bits at a time.
  2. Receiving a data byte from an input port or from memory
  3. Sending out a byte to an output port or to memory.

14 8085 Microprocessor Pin Details:

16 8085 Microprocessor Pin Details:

  • CONTROL AND STATUS SIGNALS : Three status signals are IO/M, S 0 & S 1. 1.IO/M - This signal is used to differentiate between IO and Memory operations , i.e. when it is high indicates IO operation and when it is low then it indicates memory operation.
  • Microprocessor does not directly communicate with an I/O device. It only communicates with I/O ports.
  • If there are number of I/O ports in the system, each port must have a unique address, just like each memory location has a unique address.
  • When IO/M is logic 0* , it means that the address sent out by the processor is for addressing a memory location.
  • When IO/M is logic 1 ,* it means that the address sent out by the processor is for addressing an I/O port.

17 8085 Microprocessor Pin Details:

2. S 0 and S 1 - These signals are used to identify the type of current operation. S 0 S 1

19 8085 Microprocessor Architecture:

20 8085 Microprocessor Architecture: ļ‚§ Accumulator or A register is an 8 - bit register used for arithmetic, logic, I/O and load/store operations. It is connected to internal data bus & ALU. ļ‚§ In an arithmetic operation involving two operands, one operand has to be in this register. The result of the arithmetic operation is stored or accumulated in this register. ļ‚§ ALU : It performs arithmetic and logical operations like Addition, Subtraction, AND, OR, etc. on 8 - bit data. ļ‚§ FLAG Register : It is an 8 - bit register having five 1 - bit flip-flops , which holds either 0 or 1 depending upon the result stored in the accumulator.

  1. Sign flag (S): Set if the MSB of the result is set ( 1 - > Negative, 0 - > Positive Result).
  2. Zero flag (Z) : Set if the result is zero.
  3. Auxiliary carry (AC) : Set if there was a carry out from bit 3 to bit 4 of the result.
  4. Parity (P): Set if the parity (the number of set bits in the result) is even.
  5. Carry flag (C) : Set if there was a carry during addition or borrow during subtraction/comparison/rotation.