Ticker

6/recent/ticker-posts

Basic Concepts of Microprocessor 8085

Microprocessor Architecture, Programming and Applications with 8085



Microprocessor 8085

Created for one/two semester undergraduate level courses in Introduction to Microprocessors offered in electrical and computer technology departments and requires a prerequisite course in digital logic, but assumes no knowledge of programming

The first of its kind to offer an integrated treatment of both the hardware and software aspects of the microprocessor, this comprehensive and thoroughly updated text focuses on the 8085 microprocessor family to teach the basic concepts underlying programmable devices. Providing a sound pedagogy - from basic concepts to applications - it fully prepares students to apply concepts learned to other microprocessors in higher level courses or to a variety of situations they may encounter in their future jobs

1. Basic Concepts of Microprocessors

    (a). Differences between:

            (i). Microcomputer – a computer with a microprocessor as its CPU. Includes memory, I/O etc.
            (ii). Microprocessor – silicon chip which includes ALU, register circuits & control circuits
            (iii). Microcontroller – silicon chip which includes microprocessor, memory & I/O in a single                        package.

    (b). What is a Microprocessor?

            (i). The word comes from the combination micro and processor. 
                • Processor means a device that processes whatever. In this context processor means a device that processes numbers, specifically binary numbers, 0’s and 1’s.

                    * To process means to manipulate. It is a general term that describes all manipulation. Again in this content, it means to perform certain operations on the numbers that depend on the microprocessor’s design.

    (c). What about micro?

            (i). Micro is a new addition.
            (ii). In the late 1960’s, processors were built using discrete elements.
            (iii). These devices performed the required operation, but were too large and too slow.
                    • In the early 1970’s the microchip was invented. All of the components that made up the processor were now placed on a single piece of silicon. The size became several thousand times smaller and the speed became several hundred times faster. The “Micro”Processor was born.

    (d). Was there ever a “mini”processor?

            (i).  It went directly from discrete elements to a single chip. However, comparing today’s microprocessors to the ones built in the early 1970’s you find an extreme increase in the amount of integration.
            (ii). Definition of the Microprocessor The microprocessor is a programmable device that takes in numbers, performs on them arithmetic or logical operations according to the program stored in memory and then produces other numbers as a result.
                    • Programmable device: The microprocessor can perform different sets of operations on the data it receives depending on the sequence of instructions supplied in the given program.
By changing the program, the microprocessor manipulates the data in different ways.
                    • Instructions: Each microprocessor is designed to execute a specific group of operations. This group of operations is called an instruction set. This instruction set defines what the microprocessor can and cannot do.

    (e). Takes in:

 The data that the microprocessor manipulates must come from somewhere.
            (i). It comes from what is called “input devices”.
            (ii). These are devices that bring data into the system from the outside world.
            (iii). These represent devices such as a keyboard, a mouse, switches, and the like.

    (f). Numbers:

 The microprocessor has a very narrow view on life. It only understands binary numbers.
            (i). A binary digit is called a bit (which comes from binary digit).
            (ii). The microprocessor recognizes and processes a group of bits together. This group of bits is called a “word”.
            (iii).The number of bits in a Microprocessor’s word, is a measure of its “abilities”.

    (g). Words, Bytes, etc.

            (i). The earliest microprocessor (the Intel 8088 and Motorola’s 6800) recognized 8-bit words. 
                    • They processed information 8-bits at a time. That’s why they are called “8-bit processors”. They can handle large numbers, but in order to process these numbers, they broke them into 8-bit pieces and processed each group of 8-bits separately. 
            (ii). Later microprocessors (8086 and 68000) were designed with 16-bit words.
                    • A group of 8-bits were referred to as a “half-word” or “byte”.
                    • A group of 4 bits is called a “nibble”.
                    • Also, 32 bit groups were given the name “long word”.
            (iii). Today, all processors manipulate at least 32 bits at a time and there exists microprocessors that can process 64, 80, 128 bits 
Definition (Contd.)

    (h). Arithmetic and Logic Operations: 

            (i). Every microprocessor has arithmetic operations such as add and subtract as part of its instruction set. 
                    • Most microprocessors will have operations such as multiply and divide. 
                    • Some of the newer ones will have complex operations such as square root.                    (ii). In addition, microprocessors have logic operations as well. Such as AND, OR, XOR, shift left, shift right, etc.
            (iii). Again, the number and types of operations define the microprocessor’s instruction set and depends on the specific microprocessor.

    (i). What is memory?

            (i). Memory is the location where information is kept while not in current use. 
            (ii). Memory is a collection of storage devices. Usually, each storage device holds one bit. Also, in most kinds of memory, these storage devices are grouped into groups of 8. These 8 storage locations can only be accessed together. So, one can only read or write in terms of bytes to and form memory.
            (iii). Memory is usually measured by the number of bytes it can hold. It is measured in Kilos, Megas and lately Gigas. A Kilo in computer language is 210 =1024. So, a KB (KiloByte) is 1024 bytes. Mega is 1024 Kilos and Giga is 1024 Mega.

    (j). Stored in memory:

            (i). When a program is entered into a computer, it is stored in memory. Then as the microprocessor starts to execute the instructions, it brings the instructions from memory one at a time.
            (ii). Memory is also used to hold the data.
                    • The microprocessor reads (brings in) the data from memory when it needs it and writes (stores) the results into memory when it is done.

    (k). Produces:

 For the user to see the result of the execution of the program, the results must be presented in a human readable form.
            (i). The results must be presented on an output device.
            (ii). This can be the monitor, a paper from the printer, a simple LED or many other forms.

    (l). A Microprocessor-based system

            (i). From the above description, we can draw the following block diagram to represent a microprocessor-based system:

    (m). Inside The Microprocessor

            Internally, the microprocessor is made up of 3 main units.
            (i). The Arithmetic/Logic Unit (ALU)
            (ii). The Control Unit.
            (iii). An array of registers for holding data while it is being manipulated.

    (n).Organization of a microprocessor-based system

            (i). Let’s expand the picture a bit.

    (o). Memory

            (i). Memory stores information such as instructions and data in binary format (0 and 1). It provides this information to the microprocessor whenever it is needed.
            (ii). Usually, there is a memory “sub-system” in a microprocessor-based system. This sub-system includes:
                    • The registers inside the microprocessor
                    • Read Only Memory (ROM)
                            * used to store information that does not change.
                     Random Access Memory (RAM) (also known as Read/Write Memory).
                            * used to store information supplied by the user. Such as programs and data.

    (p). Memory Map and Addresses

            (i). The memory map is a picture representation of the address range and shows where the different memory chips are located within the address range.



    (q). Memory To execute a program:

            (i). the user enters its instructions in binary format into the memory.
            (ii). The microprocessor then reads these instructions and whatever data is needed from memory, executes the instructions and places the results either in memory or produces it on an output device.

    (r). The three cycle instruction execution model

            (i). To execute a program, the microprocessor “reads” each instruction from memory, “interprets” it, then “executes” it.
            (ii). To use the right names for the cycles:
                    • The microprocessor fetcheseach instruction,
                    • decodesit,
                    • Then executesit.
            (iii). This sequence is continued until all instructions are performed.

    (s). Machine Language

            (i). The number of bits that form the “word” of a microprocessor is fixed for that particular processor.
                    • These bits define a maximum number of combinations.
                        * For example an 8-bit microprocessor can have at most 28 = 256 different combinations.
            (ii). However, in most microprocessors, not all of these combinations are used.
                    • Certain patterns are chosen and assigned specific meanings.
                    • Each of these patterns forms an instruction for the microprocessor.
                    • The complete set of patterns makes up the microprocessor’s machine language.

    (t). The 8085 Machine Language

            (i). The 8085 (from Intel) is an 8-bit microprocessor.
                    • The 8085 uses a total of 246 bit patterns to form its instruction set.
                    • These 246 patterns represent only 74 instructions.
                           * The reason for the difference is that some (actually most) instructions have multiple different formats.
                    • Because it is very difficult to enter the bit patterns correctly, they are usually entered in hexadecimal instead of binary.
                            * For example, the combination 0011 1100 which translates into “increment the number in the register called the accumulator”, is usually entered as 3C.

    (u). Assembly Language

            (i). Entering the instructions using hexadecimal is quite easier than entering the binary combinations.
                    • However, it still is difficult to understand what a program written in hexadecimal does.
                    • So, each company defines a symbolic codefor the instructions.
                    • These codes are called “mnemonics”.
                    • The mnemonic for each instruction is usually a group of letters that suggest the operation performed.

Post a Comment

0 Comments