Skip to main content

8085 Microprocessor and its Operation

 .

The 8085 microprocessor is an 8 bit microprocessor designed by Intel and introduced in 1976. It is a widely used microprocessor in embedded systems and educational settings due to its simplicity and effectiveness. Here's an overview of its architecture and operation:

  • Data Bus:
    • 8-bit: It can handle 8 bits of data at a time, which means it processes 1 byte of data in a single operation.
  • Address Bus:
    • 16-bit: It can address up to 216 = 65,536 memory locations, which translates to 64KB of addressable memory.
  • Registers:
    • General Purpose Registers: 6 registers (B, C, D, E, H, L) which can be used individually or in pairs (BC, DE, HL) for 16-bit operations.
    • Accumulator: An 8-bit register (A) used for arithmetic and logic operations.
    • Flag Register: Contains flags that indicate the status of the processor (Zero, Carry, Sign, Parity, and Auxiliary Carry Flags).
  • Program Counter (PC):
    • 16-bit register that holds the address of the next instruction to be executed.
  • Stack Pointer (SP):
    • 16-bit register that points to the current top of the stack in memory.
  • Instruction Register (IR):
    • Holds the current instruction being executed.
  • Instruction Decoder:
    • Decodes the instruction fetched from memory and generates the appropriate control signals.

Operations

  • Fetch:
    • The microprocessor fetches the instruction from memory using the address stored in the Program Counter (PC). The fetched instruction is then loaded into the Instruction Register (IR).
  • Decode:
    • The Instruction Decoder interprets the instruction and generates the necessary control signals to execute it.
  • Execute:
    • The microprocessor performs the operation specified by the instruction. This could involve arithmetic operations, data movement, logical operations or control operations.
  • Write Back:
    • Results of the operation, if any are written back to the designated registers or memory locations.

Instruction Set:

The 8085 has a rich set of instructions categorized into several types:
  • Data Transfer Instructions: Move data between registers, memory and I/O ports (e.g. MOV, MVI, LXI, STA, LDA).
  • Arithmetic Instructions: Perform arithmetic operations (e.g. ADD, SUB, MUL, DIV).
  • Logic Instructions: Perform logical operations (e.g. AND, OR, XOR, CMP).
  • Branch Instructions: Control the flow of the program (e.g. JMP, CALL, RET, NOP).
  • Control Instructions: Control the operation of the processor (e.g. RIM, SIM, DI, EI).

Timing and Control:

The 8085 operates in a synchronous manner, meaning it relies on a clock signal to synchronize its operations. The clock speed of the 8085 is typically 3 MHz to 5 MHz. The timing of read and write operations is managed through a series of control signals generated by the microprocessor based on the clock signal.

Example Operation

Let's consider an example where the 8085 is executing a simple instruction:
  • Instruction: MOV A, B
    • Fetch: The microprocessor fetches the MOV A, B instruction from memory using the address in the PC.
    • Decode: The Instruction Decoder identifies the MOV instruction and prepares to move the contents of register B into the Accumulator (A).
    • Execute: The microprocessor copies the data from register B to the Accumulator.
    • Write Back: The contents of register B are now in the Accumulator and the PC is updated to point to the next instruction.

Comments

Popular posts from this blog

Database

 . A Database is a repository for collection of related data or facts. A database contains a collection of related items or facts arranged in a specific structure. The most obvious example of a non computerized database is a telephone directory. Telephone companies now use an electronic database program to produce their printed phone books. Sometimes, we see a specialized phone book that is sorted not only by last name, but by other items such as phone number or street address. These books are easy to produce because the telephone company's electronic database can sort and organize the data in many different ways. Database programs can also sort lists of data, arranging them in alphabetical, numeric, or chronological order and can search or query data with different conditions. Features of Database  The data in a database should have following features Shared : Data in a database is sharing among different user and application. Validity :  Data should be correct with resp...

Operators and Variables in PHP

 . Operator  An Operator is a symbol that perform certain mathematical and logical operation on operator. It is define as an action upon the two possible values. Operators are used to program operation on the variables and values.  PHP Operators are of following types: Arithmetic Operator Assignment Operator  Logical Operator Comparison Operator Conditional Operator Increment / Decrement Operator Concatenation Operator 1. Arithmetic Operator Arithmetic operator are used to preform arithmetic operation on numeric values. 2. Assignment Operator An assignment operator is mainly responsible for assigning a value to a variable in a program. It is used to value to the variable.  Assignment Same As Description x = y x = y left operand and right operand are same. x + = y X = X + y left operand get added value of right operand. x - = y ...

Introduce Linux, UNIX and Linux distribution.

 . Linux Linux is an open source operating system. The term Linux is actually referred to mean a kernel of Unix like operating system developed by a Finish software architect Linus Torvald. The name Linux is derived from Linus' Unix. Linux was originated from the inspiration of a small Unix like operating system MINIX by A.S Tanenbum. Linux is a complete multiuser, multiprocessing, secure and stable operating system which is also considered as UNIX clone. However no code from the proprietary from AT and T is included in Unix. It has flavor of Unix but is not Unix. UNIX  UNIX is a layered operating system. The innermost layer is the hardware that provides the service for the OS. The operating system, referred to in UNIX as the kernel, interacts directly with the hardware and provides the services to the user program. These user programs don't need to know anything about the hardware. They just need to know how to interact with the kernel and it's up to the kernel to provide ...