






































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







































A computer is a programmable machine that receives input, stores and manipulates data//information, and provides output in a useful format.
Block diagram of a basic computer system Basic computer system consists of a Central processing unit (CPU), memory (RAM and ROM), input/output (I/O) unit.
The most popular computer architecture used nowadays is the von Neumann architecture. More complex systems use the Harvard architecture. The von Neumann architecture divides the computer system into five parts: computation unit, control unit, memory, input, and output.
CPU - Central Processing Unit / Processor the portion of a computer system that carries out the instructions of a computer program the primary element carrying out the computer's functions. It is the unit that reads and executes program instructions. The data in the instruction tells the processor what to do. What is a Microprocessor? 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 context, it means to perform certain operations on the numbers that depend on the microprocessor’s design.
What about micro? Micro is a new addition.
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.
Numbers: The microprocessor has a very narrow view on life. It only understands binary numbers. A binary digit is called a bit (which comes from b inary dig it ). The microprocessor recognizes and processes a group of bits together. This group of bits is called a “word”. The number of bits in a Microprocessor’s word, is a measure of its “abilities”.
Memory Physical devices used to store data or programs (sequences of instructions) on a temporary or permanent basis for use in an electronic digital computer. Computer main memory comes in two principal varieties: random-access memory (RAM) and read-only memory (ROM). RAM can be read and written to anytime the CPU commands it, but ROM is pre-loaded with data and software that never changes, so the CPU can only read from it. ROM is typically used to store the computer's initial start-up instructions. In general, the contents of RAM are erased when the power to the computer is turned off, but ROM retains its data indefinitely. In a PC, the ROM contains a specialized program called the BIOS that orchestrates loading the computer's operating system from the hard disk drive into RAM whenever the computer is turned on or reset. The microprocessor reads (brings in) the data from memory when it needs it and writes (stores) the results into memory when it is done. 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.
I/O Unit Input/output (I/O) , refers to the communication between an information processing system (such as a computer), and the outside world possibly a human, or another information processing system. Inputs are the signals or data received by the system, and outputs are the signals or data sent from it Devices that provide input or output to the computer are called peripherals On a typical personal computer, peripherals include input devices like the keyboard and mouse, and output devices such as the display and printer. Hard disk drives, floppy disk drives and optical disc drives serve as both input and output devices. Computer networking is another form of I/O.
Number System Radix(Base)
Binary 0,
Decimal 0,1,2,3,4,5,6,7,8,
Octal 0,1,2,3,4,5,6,
Hexadecimal 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
Decimal Number Decimal System : - The decimal system is composed of 10 numerals or symbols. These 10 symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9; using these symbols as digits of a number, we can express any quantity. The decimal system, also called the base-10 system because it has 10 digits.
Binary System In digital systems the information that is being processed is usually presented in binary form. Binary quantities can be represented by any device that has only two operating states or possible conditions. Eg. a switch has only open or closed. We arbitrarily (as we define them) let an open switch represent binary 0 and a closed switch represent binary 1. Thus we can represent any binary number by using series of switches.
In the binary system, there are only two symbols or possible digit values, 0 and 1. This base-2 system can be used to represent any quantity that can be represented in decimal or other number system.
Binary to Decimal conversion Any binary number can be converted to its decimal equivalent simply by summing together the weights of the various positions in the binary number which contain 1. Example 1
Decimal to Binary Conversion There are two methods to convert it:- I. Reverse of Binary-To-Digital Method Decimal number write as the sum of square 0 & 1 is write on the byte
II. Repeat division method The numbers is divide by 2. Balance for the question is written until the last answer.
Binary to Octal Conversion Can be converted by grouping the binary bit in group of three starting from LSB Octal is a base-8 system and equal to two the power of three, so a digit in Octal is equal to three digit in binary system.
Hexadecimal Number System The hexadecimal system uses base 16. Thus, it has 16 possible digit symbols. It uses the digits 0 through 9 plus the letters A, B, C, D, E, and F as the 16 digit symbols. Used to represent long binary numbers in computers and microprocessors. These digits can use to program machine language.
Hexadecimal to Binary (3 A E) = ( 0011 1010 1110 )
Hexadecimal to Decimal (2 A F) = 2 * 16 + 10 16 + 15 * 16 2256 + 1016 + 15 (687)**
Hexadecimal to Octal (5 A 8) = ( 0101 1010 1000 ) (010 110 101 000) = (2650)
Representation of Data in Computer The binary no. system is most nature for computer. Computer stores information in flip-flops. Which are two state devices. Three systems are widely used for representing both positive and negative numbers:
Internally, the microprocessor is made up of 3 main units.
Organization of the Microprocessor The microprocessor can be divided into three main pieces:
Microprocessor is a computer Central Processing Unit (CPU) on a single chip. It contains millions of transistors connected by wires. The microprocessor can be programmed to perform functions on given data by writing specific instructions into its memory.
The availability of low cost, low power and small weight, computing capability makes it useful in different applications. Nowadays, a microprocessor based systems are used in instructions, automatic testing product, speed control of motors, traffic light control, light control of furnaces etc. Some of the important areas are mentioned below:
Now the Microprocessors are used in:
Microprocessors were categorized into five generations: first, second, third, fourth, and fifth generations. Their characteristics are described below: First-generation The microprocessors that were introduced in 1971 to 1972 were referred to as the first generation systems. First-generation microprocessors processed their instructions serially —they fetched the instruction, decoded it, and then executed it. When an instruction was completed, the microprocessor updated the instruction pointer and fetched the next instruction, performing this sequential drill for each instruction in turn. Second generation By the late 1970s, enough transistors were available on the IC to usher in the second generation of microprocessor sophistication: 16-bit arithmetic and pipelined instruction processing. Motorola’s MC68000 microprocessor, introduced in 1979, is an example. Another example is Intel’s 8080. This generation is defined by overlapped fetch, decode, and execute steps (Computer 1996). As the first instruction is processed in the execution unit, the second instruction is decoded and the third instruction is fetched. The distinction between the first and second generation devices was primarily the use of newer semiconductor technology to fabricate the chips. This new technology resulted in a five-fold increase in instruction, execution, speed, and higher chip densities.
b) Microcomputer CPU architectures (x86, Motorola's 6800 and 68000, MOS Technology's 6502, Zilog's Z80, Power Architecture c) Workstation/Server CPU architectures (DEC's Alpha, HP's PA-RISC, Power Architecture, Intel's Itanium, Oracle's SPARC
Intel History Electrical Numerical Integrator and Calculator Designed for the U.S. Army's Ballistic Research Laboratory
The First Transistor was created in 1947
The First Integrated circuit was created in 1959
Intel Created the First Commercial Microprocessor
IBM Introduced its original PC in 1981
4004 transistors were 10 μm across
A more complete form of the Instruction Fetch Execute Cycle can be broken down into the following steps:
Fetch Cycle The fetch cycle begins with retrieving the address stored in the Program Counter (PC). The address stored in the PC is some valid address in the memory holding the instruction to be executed. (In case this address does not exist we would end up causing an interrupt or exception). The Central Processing Unit completes this step by fetching the instruction stored at this address from the memory and transfer ring this instruction to a special register Instruction Register (IR) to hold the instruction to be executed. The program counter is incremented to point to the next address from which the new instruction is to be fetched. Decode Cycle The decode cycle is used for interpreting the instruction that was fetched in the Fetch Cycle. The operands are retrieved from the addresses if the need be Execute Cycle. This cycle as the name suggests, simply executes the instruction that was fetched and decoded Interrupt Cycle An interrupt can occur any time during the program execution. Whenever it is caused, a series of events take place so that the instruction fetch execute cycle can again resume after the OS calls the routine to handle the interrupt. Therefore, when an interrupt occurs, the following steps are performed by the OS
8085 MICROPROCESSOR ARCHITECTURE THE 8085: CPU INTERNAL STRUCTURE The internal architecture of the 8085 CPU is capable of performing the following operations:
Intel 8085 Pin Configuration 8085 is a 40 pin IC, The signals from the pins can be grouped as follows
it indicates a memory operation. 35 READY If the signal at READY pin is low, the microprocessor enters in to wait state. This signal is primarily used to synchronize slower peripherals with the microprocessor. 36 RESET IN When the reset pin is activated by an external key all the internal operations are suspended and the program counter is cleared and the program execution begins at zero memory address. 37 CLK OUT Clock Output. This signal can be used as the system clock for other devices. (^38) HLDA Hold acknowledgement. This pin is used for hold acknowledgement. 39 HOLD When HOLD pin is activated by an external signal the microprocessor relinquishes control of buses and allows the external peripheral to use them. 40 VCC +5V power supply.
The pins on the chip can be grouped into 6 groups:
Components include the following Control Unit Generates signals within the processor to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the processor to be opened or closed, so that data goes where it is required, and so that ALU operations occur. Arithmetic Logic Unit The ALU performs the actual numerical and logic operation such as ‘add’, ‘subtract’, ‘AND’, ‘OR’, etc. Uses data from memory and from Accumulator to perform arithmetic. Always stores result of operation in Accumulator. Registers The 8085/8080A-programming model includes six registers, one accumulator, and one flag register, as shown in Figure. In addition, it has two 16-bit registers: the stack pointer and the program counter. They are described briefly as follows. The 8085/8080A has six general-purpose registers to store 8-bit data; these are identified as B, C, D, E, H, and L as shown in the figure. They can be combined as register pairs - BC, DE, and HL - to perform some 16-bit operations. The programmer can use these registers to store or copy data into the registers by using data copy instructions.
Accumulator The accumulator is an 8-bit register that is a part of arithmetic/logic unit (ALU). This register is used to store 8-bit data and to perform arithmetic and logical operations. The result of an operation is stored in the accumulator. The accumulator is also identified as register A. Flags The ALU includes five 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) flags; they are listed in the Table and their bit positions in the flag register are shown in the Figure below. The most commonly used flags are Zero, Carry, and Sign. The microprocessor uses these flags to test data conditions.
For example, after an addition of two numbers, if the sum in the accumulator is larger than eight bits, the flip- flop uses to indicate a carry -- called the Carry flag (CY) -- is set to one. When an arithmetic operation results in zero, the flip-flop called the Zero (Z) flag is set to one. The first Figure shows an 8-bit register, called the flag register, adjacent to the accumulator. However, it is not used as a register; five bit positions out of eight