REGISTERS
The 8085 has six general purpose registers to store 8 bit data. These are identified as B, C, D, E, H, L. they can be combined as register pairs BC, DE, and HL, to perform 16 bit operations.
ACCUMULATOR
The acc is an 8 bit register that is part of the arithmetic logic unit [ALU]. This register is used to store 8 bit data and to perform arithmetic and logical operations. The result of the operation is stored in the accumulator and identified as A.
FLAGS
The arithmetic logic unit [ALU] includes 5 flip flops which are set or reset after an operation according to data conditions of the result in the accumulator and other registers. They are called zero (Z), carry (CY), sign(S), parity (P), and auxiliary carry (AC). The microprocessor used these flags to test data conditions.
PROGRAM COUNTER
The microprocessor uses the PC register to sequence the execution of the instructions. The function of the pc is to point to the memory address from which the next byte is to be fetched. When a byte is being fetched, the pc is increased by one to point to the next memory location.
STACK POINTER
The sp is also a 16 bit register used as a memory pointer. It points to a memory location in R/W memory, called the stack.
Tuesday, February 8, 2011
8085 PROGRAMMING MODEL
The programming model consists of some segments of the arithmetic logic unit [ALU] and the registers. This model does not reflect the physical structure of the 8085 but includes the information that is critical in writing assembly language programs. The model includes six registers, one accumulator and one flag. In addition, it has two 16 bit registers, the stack pointer and the program counter.
8085 HARDWARE MODEL
The hardware model in fig (a) shows two major segments. One segment includes arithmetic logic unit [ALU] and an 8 bit register called an accumulator, instruction decoder, and flags. The second segment shows 8 bit and 16 bit registers. Both segments are connected with various internal connections called an internal bus. The arithmetic and logic operations are performed in the arithmetic logic unit [ALU]. Results are stored in the accumulator, and flip-flops, called flags, are set or reset to reflect the results. There are 3 buses- a 16 bit unidirectional address bus, an 8 bit bidirectional data bus, and a control bus.
8085 ASSEMBLY LANGUAGE
Even though the instruction can be written in hexadecimal code, it is still difficult to understand a program written in hexadecimal numbers. Therefore, each manufacturer of a microprocessor has devised a symbolic code for each instruction called mnemonic. The mnemonic for a particular instruction consists of letters that suggest the operation to be performed by that instruction.
Example- the binary code 0011 1100 of the 8085 microprocessor is represented by the mnemonic INR A.
8085 MACHINE LANGUAGE
The 8085 is a microprocessor with 8 bit word length. Its instruction set is designed by using various combinations of these 8 bits. The 8085 is an improved version of the earlier processor 8080A.
An instruction is a binary pattern entered through an input device in memory to command the microprocessor to perform that specific function.
The 8085 microprocessor has 246 such bit patterns, amounting to 74 different instructions for performing various operations. These 74 different instructions are called its instruction set.
HOW DOES MICROPROCESSOR WORK?
The instructions are stored sequentially in the memory. The microprocessor fetches the first instruction from its memory sheet, decodes it and executes that instruction. The sequence of fetch, decode, and execute is continued until the microprocessor comes across an instruction to stop. During the entire process, the microprocessor uses the system bus to fetch the binary instructions and data from the memory. It uses register from the register section to store data temporarily and it performs computing function in arithmetic logic unit [ALU] section. Finally, it sends out the result in binary using the same bus lines.
MICROPROCESSOR AS A CPU [MPU]
Traditionally the computer is represented in the block diagram (a). The block diagram shows that the computer has four components: memory, input, output and Central processing unit [C.P.U], which consists of au and cu. The central processing unit [C.P.U] contains various register to store data; arithmetic logic unit [ALU] to perform arithmetic and logic operation, counters, instruction decoder etc. central processing unit [C.P.U] reads instruction from memory and perform the specified task. It communicates with I/O device to accept or send data. These devices are known as peripherals. Here, the central processing unit [C.P.U] is primary and central player.
With the advent of integrate circuits [IC], the central processing unit [C.P.U] was build on a single chip known as microprocessor. Therefore, traditional central processing unit [C.P.U] has been replaced by microprocessor as shown in fig (b). A computer with a microprocessor as its central processing unit [C.P.U] is known as microcomputer. Microprocessor processing unit [M.P.U] implies a complete processing unit with necessary control units.
With the advent of integrate circuits [IC], the central processing unit [C.P.U] was build on a single chip known as microprocessor. Therefore, traditional central processing unit [C.P.U] has been replaced by microprocessor as shown in fig (b). A computer with a microprocessor as its central processing unit [C.P.U] is known as microcomputer. Microprocessor processing unit [M.P.U] implies a complete processing unit with necessary control units.
APPLICATIONS
Microprocessor applications are categorized into two types as reprogrammable system and embedded system.
In re programmable systems the microprocessor is used for computing and data processing. Example: microcomputers.
In embedded system the microprocessor is a part of final product and is not available for reprogramming to end user. Example: washing machines, dishwashers, traffic light controllers.
INTRODUCTION TO MICROPROCESSORS
A microprocessor is a multipurpose, programmable, clock driven, register based electronic device that reads binary instructions from a storage device called memory, accepts binary data as input, process data according to instructions and provides result as output.
Fig. programmable device
A programmable machine can be represented with four components: microprocessor, memory, input and output as shown above.
Subscribe to:
Posts (Atom)