{"id":4160,"date":"2023-01-14T22:01:10","date_gmt":"2023-01-14T16:31:10","guid":{"rendered":"https:\/\/pravysoft.org\/eduserver\/?p=4160"},"modified":"2023-01-16T00:49:41","modified_gmt":"2023-01-15T19:19:41","slug":"hsst-computer-science-part-2-30-page-preview","status":"publish","type":"post","link":"https:\/\/pravysoft.org\/eduserver\/hsst-computer-science-part-2-30-page-preview\/","title":{"rendered":"HSST COMPUTER SCIENCE PART-2: 30 PAGE PREVIEW"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4160\" class=\"elementor elementor-4160\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-38dbe67 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"38dbe67\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7734a9c\" data-id=\"7734a9c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ddc7d8d elementor-widget elementor-widget-highlighted-heading\" data-id=\"ddc7d8d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"highlighted-heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"geeks-elementor-highlighted-heading__title\"><a href=\"https:\/\/pravysoft.org\/eduserver\/courses\/hsst-computer-science-part-2\/\" class=\"text-reset text-decoration-none\">HSST COMPUTER SCIENCE PART-2 PREVIEW: PURCHASE IT TO READ FULL CONTENTS<\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4c8ddc6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4c8ddc6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5363043\" data-id=\"5363043\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d65ad05 elementor-widget elementor-widget-text-editor\" data-id=\"d65ad05\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>SUMMARY<\/strong><\/p><p><strong>SOURCE OF E-ZINE<\/strong><\/p><p>A complete reference on HSST computer science<\/p><p><strong>Module covered in this E-zine<\/strong><\/p><p>HSST Part 2 (SECOND) Version 2.0<\/p><p><strong>SYLLABUS<\/strong><\/p><p><strong>MICROPROCESSOR AND INTERFACING<\/strong><\/p><p>Basic operational concepts \u2013 functional units. Processor-8085-Architecture-instruction set, fetch &amp; execute, addressing mode, interrupts. 8086 -Architecture registers, RAM organization segment-offset addressing, real &amp; protected modes, addressing modes, instructions \u2013 arithmetic, data movement, control, I\/O string, logic. Subroutine call &amp; return. Features of Pentium processor. Control unit organisation &#8211; Single bus and multibus organisation, Micro instruction, <a id=\"post-4160-_Hlk115290822\"><\/a>Microprogrammed and hardwired control, Microinstruction-program-sequencing, RISC &amp;CISC (Features). Memory \u2013 Hierarchi, organisation of RAM, types of RAM (SRAM, DRAM, SDRAM, DDRAM). Cache-operation, cashe mapping, multilevel organization of cache (LI\/LII, Primary\/secondary). Virtual memory page fault, TLB, segmentation \u2013 Multiple memory modules &amp; interleaving. Secondary storage \u2013 Disk-CDROM\/DVD. I\/O devices (keyboard, mouse, CRT\/LCD\/LED, Printers, scanners). I\/O Interfacing \u2013 memory mapped &amp; I\/O Mapped I\/O, Polling, interrupt-driven I\/O, DMA \u2013 controller. Serial communication \u2013 UART, RS 232, USB. High-performance computing \u2013 pipelining, basic concepts in parallel processing, Grid and cluster computing<\/p><h2>\u00a0<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cba42fc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cba42fc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-14b998a\" data-id=\"14b998a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0a661f7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0a661f7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0c74651\" data-id=\"0c74651\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-43a53cd elementor-widget elementor-widget-table-of-contents\" data-id=\"43a53cd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"table-of-contents.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-755716f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"755716f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-06d5d07\" data-id=\"06d5d07\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-57a0603 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"57a0603\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3427b6d3\" data-id=\"3427b6d3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a47db10 elementor-widget elementor-widget-text-editor\" data-id=\"a47db10\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Introduction<\/h2><p>As an introduction let us check some important terms used in this field.<\/p><h3><a id=\"post-4160-_Toc10038794\"><\/a><a id=\"post-4160-_Toc115522659\"><\/a><a id=\"post-4160-_Toc115557227\"><\/a>Microcomputer<\/h3><p>The term <strong>microcomputer<\/strong> is generally synonymous with a personal computer, or a computer that depends on a microprocessor. Microcomputers are designed to be used by individuals, whether in the form of PCs, workstations or notebook computers. A microcomputer contains a CPU on a microchip (the microprocessor), a memory system (typically ROM and RAM), a bus system and I\/O ports, typically housed in a motherboard.<\/p><h3><a id=\"post-4160-_Toc10038795\"><\/a><a id=\"post-4160-_Toc115522660\"><\/a><a id=\"post-4160-_Toc115557228\"><\/a>Microprocessor<\/h3><p>A silicon chip that contains a CPU. In the world of personal computers, the terms microprocessor and CPU are used interchangeably.<\/p><p>A <strong>microprocessor<\/strong> (sometimes abbreviated \u00b5P) is a digital electronic component with miniaturized transistors on a single semiconductor integrated circuit (IC).<\/p><p>One or more microprocessors typically serve as a central processing unit (CPU) in a computer system or handheld device. Microprocessors made possible the advent of the microcomputer.<\/p><ul><li>At the heart of all personal computers and most working stations sits a microprocessor.<\/li><li>Microprocessors also control the logic of almost all digital devices, from clock radios to fuel-injection systems for automobiles.<\/li><\/ul><p>Three basic characteristics that differentiate microprocessors are given below<\/p><p><strong>1. Instruction set <\/strong><\/p><p>The set of instructions that the microprocessor can execute.<\/p><p><strong>2. Bandwidth<\/strong><\/p><p>The number of bits processed in a single instruction.<\/p><p><strong>3. Clock speed<\/strong><\/p><p>Given in megahertz (MHz), the clock speed determines how many instructions per second the processor can execute<\/p><p>In both cases, the higher the value, the more powerful the CPU. For example, a 32-bit microprocessor that runs at 50MHz is more powerful than a 16-bit microprocessor that runs at 25MHz.<\/p><p>In addition to bandwidth and clock speed, microprocessors are classified as being either <strong>RISC<\/strong> (reduced instruction set computer) or <strong>CISC<\/strong> (complex instruction set computer). (We will study CISC and RISC in more details).<\/p><h3><a id=\"post-4160-_Toc10038796\"><\/a><a id=\"post-4160-_Toc115522661\"><\/a><a id=\"post-4160-_Toc115557229\"><\/a>Microcontroller<\/h3><p>A <strong>highly integrated chip<\/strong> that contains all the components comprising a controller. Typically this includes a CPU, RAM, some form of ROM, I\/O ports, and timers. Unlike a general-purpose computer, which also includes all of these components, a microcontroller is designed for a very specific task to control a particular system.<\/p><p>A microcontroller differs from a microprocessor, which is a general-purpose chip that is used to create a multi-function computer or device and requires multiple chips to handle various tasks.<\/p><p>A microcontroller is meant to be more self-contained and independent, and functions as a tiny, dedicated computer. The great advantage of microcontrollers, as opposed to using larger microprocessors, is that the parts-count and design costs of the item being controlled can be kept to a minimum.<\/p><p>They are typically designed using CMOS (complementary metal oxide semiconductor) technology, an efficient fabrication technique that uses less power and is more immune to power spikes than other techniques.<\/p><p>Microcontrollers are sometimes called embedded microcontrollers, which just means that they are part of an embedded system that is, one part of a larger device or system.<\/p><h2><a id=\"post-4160-_Toc10038797\"><\/a><a id=\"post-4160-_Toc115522662\"><\/a><a id=\"post-4160-_Toc115557230\"><\/a>Microprocessor vs Microcontroller<\/h2><p>Figure 1 shows the main difference between the microcontroller and microprocessor.<\/p><p><img fetchpriority=\"high\" decoding=\"async\" width=\"594\" height=\"330\" class=\"wp-image-4163\" src=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-6.png\" srcset=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-6.png 594w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-6-300x167.png 300w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-6-90x50.png 90w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/p><p><a id=\"post-4160-_Ref113041671\"><\/a><a id=\"post-4160-_Toc115618415\"><\/a> Figure :<a id=\"post-4160-_Toc10039078\"><\/a> Blocks of a microcontroller and processor<\/p><p>A microprocessor requires an external memory for program\/data storage. Instruction execution requires the movement of data from the external memory to the microprocessor or vice versa. Usually, microprocessors have good computing power and they have higher clock speed to facilitate faster computation.<\/p><p>A microcontroller has required on-chip memory with associated peripherals. A microcontroller can be thought of as a microprocessor with inbuilt peripherals.<\/p><p>A microcontroller does not require any additional interfacing ICs for operation and it functions as a standalone system. The operation of a microcontroller is multipurpose, just like a Swiss knife.<\/p><p>Microcontrollers are also called embedded controllers. A microcontroller clock speed is limited only to a few tens of MHz. Microcontrollers are numerous, and many of them are application specific.<\/p><h2><a id=\"post-4160-_Toc10038798\"><\/a><a id=\"post-4160-_Toc115522663\"><\/a><a id=\"post-4160-_Toc115557231\"><\/a>Development \/ Classification of microcontrollers<\/h2><p>Microcontrollers have gone through a silent revolution (invisible). The evolution can be rightly termed as silent as the impact or application of a microcontroller is not well known to a common user, although microcontroller technology has undergone significant change since the early 1970s. The development of some popular microcontrollers is given in Table 1.<\/p><p><a id=\"post-4160-_Ref114424455\"><\/a><a id=\"post-4160-_Ref8382107\"><\/a><a id=\"post-4160-_Toc10039054\"><\/a><a id=\"post-4160-_Toc115557488\"><\/a> Table : Size and release year of some popular microcontrollers<\/p><table><tbody><tr><td>Intel 4004<\/td><td>4 bit (2300 PMOS trans, 108 kHz)<\/td><td>1971<\/td><\/tr><tr><td>Intel 8048<\/td><td>8 bit<\/td><td>1976<\/td><\/tr><tr><td>Intel 8031<\/td><td>8 bit (ROM-less)<\/td><td>.<\/td><\/tr><tr><td>Intel 8051<\/td><td>8 bit (Mask ROM)<\/td><td>1980<\/td><\/tr><tr><td>Microchip PIC16C64<\/td><td>8 bit<\/td><td>1985<\/td><\/tr><tr><td>Motorola 68HC11<\/td><td>8bit (on-chip ADC)<\/td><td>.<\/td><\/tr><tr><td>Intel 80C196<\/td><td>16 bit<\/td><td>1982<\/td><\/tr><tr><td>Atmel AT89C51<\/td><td>8bit(Flash memory)<\/td><td>.<\/td><\/tr><tr><td>Microchip PIC 16F877<\/td><td>8bit (Flash memory + ADC)<\/td><td>.<\/td><\/tr><\/tbody><\/table><h2><a id=\"post-4160-_Toc10038799\"><\/a><a id=\"post-4160-_Toc115522664\"><\/a><a id=\"post-4160-_Toc115557232\"><\/a>Development of microprocessors<\/h2><p>Microprocessors have undergone significant evolution over the past four decades. This development is perceptible to a common user, especially, in terms of phenomenal growth in the capabilities of personal computers. The development of some of the microprocessors can be given in Table 2.<\/p><p><a id=\"post-4160-_Ref114424598\"><\/a><a id=\"post-4160-_Ref8382477\"><\/a><a id=\"post-4160-_Toc10039055\"><\/a><a id=\"post-4160-_Toc115557489\"><\/a> Table : List of Some popular microprocessors with size and year<\/p><table><tbody><tr><td>Intel 4004<\/td><td>4 bit (2300 PMOS transistors)<\/td><td>1971<\/td><\/tr><tr><td><p>Intel 8080<\/p><p>8085<\/p><\/td><td>8-bit (NMOS)<br \/>8 bit<\/td><td>1974<\/td><\/tr><tr><td><p>Intel 8088<\/p><p>8086<\/p><\/td><td><p>16-bit<\/p><p>16 bit<\/p><\/td><td>1978<\/td><\/tr><tr><td><p>Intel 80186<\/p><p>80286<\/p><\/td><td><p>16 bit<\/p><p>16 bit<\/p><\/td><td>1982<\/td><\/tr><tr><td>Intel 80386<\/td><td>32 bit (275000 transistors)<\/td><td>1985<\/td><\/tr><tr><td><p>Intel 80486 SX<\/p><p>DX<\/p><\/td><td><p>32 bit<\/p><p>32 bit (built in floating point unit)<\/p><\/td><td>1989<\/td><\/tr><tr><td>Intel 80586\u00a0\u00a0\u00a0\u00a0 I<br \/>MMX<br \/>Celeron II<br \/>III<br \/>IV<\/td><td>64 bit<\/td><td>1993<br \/>1997<br \/>1999<br \/>2000<\/td><\/tr><tr><td>Z-80 (Zilog)<\/td><td>8 bit<\/td><td>1976<\/td><\/tr><tr><td>Motorola Power PC\u00a0\u00a0\u00a0\u00a0 601<br \/>602<br \/>603<\/td><td>32-bit<\/td><td><p>1993<\/p><p>1995<\/p><\/td><\/tr><\/tbody><\/table><h2><a id=\"post-4160-_Toc10038800\"><\/a><a id=\"post-4160-_Toc115522665\"><\/a><a id=\"post-4160-_Toc115557233\"><\/a>Embedded system<\/h2><p>An embedded system is a combination of computer hardware and software designed for a specific function.<\/p><h3>Embedded system categories<\/h3><p>Embedded systems can also be categorized by their performance requirements:<\/p><p><strong>Small-scale embedded systems<\/strong> often use no more than an 8-bit microcontroller.<\/p><p><strong>Medium-scale embedded systems<\/strong> use a larger microcontroller (16-32 bit) and often link microcontrollers together.<\/p><p><strong>Sophisticated-scale embedded systems<\/strong> often use several algorithms that result in software and hardware complexities and may require more complex software, a configurable processor and\/or a programmable logic array.<\/p><h3>Examples of embedded systems<\/h3><p>Embedded systems are used in a wide range of technologies across an array of industries. Some examples include:<\/p><h5>Automobiles.<\/h5><p>Modern cars commonly consist of many computers (sometimes as many as 100), or embedded systems, designed to perform different tasks within the vehicle. Some of these systems perform basic utility functions and others provide entertainment or user-facing functions. Some embedded systems in consumer vehicles include cruise control, backup sensors, suspension control, navigation systems and airbag systems.<\/p><h5>Mobile phones<\/h5><p>These consist of many embedded systems, including GUI software and hardware, operating systems (OSes), cameras, microphones, and USB (Universal Serial Bus) I\/O (input\/output) modules.<\/p><h5>Industrial machines<\/h5><p>They can contain embedded systems, like sensors, and can be embedded systems themselves. Industrial machines often have embedded automation systems that perform specific monitoring and control functions.<\/p><h5>Medical equipment<\/h5><p>These may contain embedded systems like sensors and control mechanisms. Medical equipment, such as industrial machines, also must be very user-friendly so that human health isn&#8217;t jeopardized by preventable machine mistakes. This means they&#8217;ll often include a more complex OS and GUI designed for an appropriate UI.<\/p><h2><a id=\"post-4160-_Toc115522666\"><\/a><a id=\"post-4160-_Toc115557234\"><\/a>The Bus<\/h2><h3><a id=\"post-4160-_Toc115557235\"><\/a>Introduction<\/h3><p>A computer system consists of three major components: a processor, a memory unit, and an input\/output (I\/O) subsystem. An interconnection network facilitates communication among these three components, which is called <strong>a bus.<\/strong> The term \u201cbus\u201d is used to represent a group of electrical signals or the wires that carry these signals.<\/p><h3><a id=\"post-4160-_Toc115557236\"><\/a>System bus Components<\/h3><p>The system bus consists of three major components: an address bus, a data bus, and a control bus.<\/p><p>The <strong>address bus<\/strong> width determines the amount of physical memory addressable by the processor.<\/p><p>The <strong>data bus<\/strong> width indicates the size of the data transferred between the processor and memory or an I\/O device.<\/p><p>For example, the Pentium processor (We will study it later) has 32 address lines and 64 data lines. Thus, the Pentium can address up to 2<sup>32<\/sup>, or 4 GB of memory. Furthermore, each data transfer can move 64 bits of data.<\/p><p>The <strong>control bus<\/strong> consists of a set of control signals. Typical control signals include memory read, memory writes, I\/O read, I\/O write, interrupt, interrupt acknowledge, bus request, and bus grant. These control signals indicate the type of action taking place on the system bus.<\/p><p>For example, when the processor is writing data into the memory, the memory writes signal is generated. Similarly, when the processor is reading from an I\/O device, it generates the I\/O read signal. A bus connects various components in a computer system.<\/p><h3><a id=\"post-4160-_Toc115557237\"><\/a>Bus Categories<\/h3><p>Thus buses can be categorised into<\/p><p><strong>Internal buses:<\/strong> The processor uses several internal buses to interconnect registers and the ALU.<\/p><p><strong>External buses:<\/strong> are used to interface with the devices outside a typical processor system. By our classification, serial and parallel interfaces, Universal Serial Bus (USB). These buses are typically used to connect I\/O devices.<\/p><h3><a id=\"post-4160-_Toc115557238\"><\/a>Bus multiplexing<\/h3><p>One problem with the dedicated bus design is that it requires a large number of wires. We can reduce this count by using multiplexed buses.<\/p><p>For example, a single bus may be used for both address and data.<\/p><p>In addition, the address and data bus widths play an important role in determining the address space and data transfer rate, respectively.<\/p><h3>Bus Parameters<\/h3><h5>Bus Width<\/h5><p>Bus width refers to the data and address bus widths. System performance improves with a wider data bus as we can move more bytes in parallel. We increase the addressing capacity of the system by adding more address lines.<\/p><h5>Bus Type<\/h5><p>As discussed in the last section, there are two basic types of buses: <strong>dedicated<\/strong> and <strong>multiplexed<\/strong>.<\/p><h5>Bus Operations<\/h5><p>Bus systems support several types of operations to transfer data. These include the read, write, block transfer, read-modify-write, and interrupt.<\/p><h5>Bus structure<\/h5><p>Figure 2 and Figure 3 represent the block diagram of a typical single bus and double bus architecture. Table 3 shows the differences between a single bus structure and a double bus structure.<\/p><p><img decoding=\"async\" width=\"821\" height=\"251\" class=\"wp-image-4164\" src=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox.png\" alt=\"Lightbox\" srcset=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox.png 821w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox-300x92.png 300w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox-768x235.png 768w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox-600x183.png 600w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox-164x50.png 164w\" sizes=\"(max-width: 821px) 100vw, 821px\" \/><\/p><p><a id=\"post-4160-_Ref114953348\"><\/a><a id=\"post-4160-_Toc115618416\"><\/a> Figure : Single bus structure<\/p><p><img decoding=\"async\" width=\"621\" height=\"391\" class=\"wp-image-4165\" src=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox-1.png\" alt=\"Lightbox\" srcset=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox-1.png 621w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox-1-300x189.png 300w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox-1-600x378.png 600w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/lightbox-1-79x50.png 79w\" sizes=\"(max-width: 621px) 100vw, 621px\" \/><\/p><p><a id=\"post-4160-_Ref114953351\"><\/a><a id=\"post-4160-_Toc115618417\"><\/a> Figure : Double bus structure<\/p><p><a id=\"post-4160-_Ref114953038\"><\/a><a id=\"post-4160-_Toc115557490\"><\/a> Table : Difference between single and double bus structures <img loading=\"lazy\" decoding=\"async\" width=\"1275\" height=\"1650\" class=\"wp-image-4168\" src=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-9.png\" srcset=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-9.png 1275w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-9-232x300.png 232w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-9-791x1024.png 791w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-9-768x994.png 768w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-9-1187x1536.png 1187w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-9-600x776.png 600w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-9-39x50.png 39w\" sizes=\"(max-width: 1275px) 100vw, 1275px\" \/><\/p><h2><a id=\"post-4160-_Toc493079546\"><\/a><a id=\"post-4160-_Toc115522667\"><\/a><a id=\"post-4160-_Toc115557239\"><\/a>Introduction to 8085<\/h2><p><strong>8085<\/strong> is pronounced as \u201c<strong>eighty-eighty-five<\/strong>\u201d microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using <strong>NMOS technology<\/strong>.<\/p><p><strong>It has the following configuration<\/strong><\/p><ul><li style=\"list-style-type: none;\"><ul><li style=\"list-style-type: none;\"><ul><li style=\"list-style-type: none;\"><ul><li>8-bit data bus<\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><li>16-bit address bus, which can address up to 64KB<\/li><li>A 16-bit program counter, A 16-bit stack pointer<\/li><li>Six 8-bit registers arranged in pairs: BC, DE, HL<\/li><li>Requires +5V supply to operate at <strong>3.2 MHZ<\/strong> single phase clock<\/li><\/ul><h2><a id=\"post-4160-_Toc493079547\"><\/a><a id=\"post-4160-_Toc115522668\"><\/a><a id=\"post-4160-_Toc115557240\"><\/a>Architecture of 8085<\/h2><p>Figure 4 shows the architecture of the 8085 microprocessor. Details of each functional block are explained below. From an exam point of view, this is a very important topic.<\/p><p><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"634\" class=\"wp-image-4169\" src=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-10-jpeg.webp\" srcset=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-10-jpeg.webp 962w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-10-300x198.webp 300w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-10-768x506.webp 768w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-10-600x395.webp 600w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-10-76x50.webp 76w\" sizes=\"(max-width: 962px) 100vw, 962px\" \/><\/p><p><a id=\"post-4160-_Ref113028936\"><\/a><a id=\"post-4160-_Toc115618418\"><\/a> Figure :<a id=\"post-4160-_Toc493078280\"><\/a> 8085 microcontroller architecture<\/p><h3><a id=\"post-4160-_Toc493079548\"><\/a><a id=\"post-4160-_Toc115522669\"><\/a><a id=\"post-4160-_Toc115557241\"><\/a>Arithmetic and logic unit (ALU)<\/h3><p>As the name suggests, it performs arithmetic and logical operations like Addition, Subtraction, AND, OR, etc. on 8-bit data.<\/p><h3><a id=\"post-4160-_Toc493079549\"><\/a><a id=\"post-4160-_Toc115522670\"><\/a><a id=\"post-4160-_Toc115557242\"><\/a>Accumulator<\/h3><p>It is an 8-bit register used to perform arithmetic, logical, I\/O &amp; LOAD\/STORE operations. It is connected to the internal data bus &amp; ALU.<\/p><h3><a id=\"post-4160-_Toc493079550\"><\/a><a id=\"post-4160-_Toc115522671\"><\/a><a id=\"post-4160-_Toc115557243\"><\/a>General purpose register<\/h3><p>There are 6 general purpose registers in the 8085 processor, i.e. B, C, D, E, H &amp;L. Each register can hold 8-bit data. These registers can work in pairs to hold 16-bit data and their pairing combination is like B-C, D-E &amp; H-L.<\/p><h3><a id=\"post-4160-_Toc493079551\"><\/a><a id=\"post-4160-_Toc115522672\"><\/a><a id=\"post-4160-_Toc115557244\"><\/a>Program counter<\/h3><p>It is a 16-bit register used to store the memory address <strong>location of the next instruction<\/strong> to be executed.<\/p><p>The microprocessor increments the program whenever an instruction is being executed so that the program counterpoints to the memory address of the next instruction that is going to be executed.<\/p><h3><a id=\"post-4160-_Toc493079552\"><\/a><a id=\"post-4160-_Toc115522673\"><\/a><a id=\"post-4160-_Toc115557245\"><\/a>Stack pointer<\/h3><p>It is also a 16-bit register that works like a stack, which is always incremented\/decremented by 2 during <strong>PUSH &amp; POP<\/strong> operations.<\/p><h3><a id=\"post-4160-_Toc493079553\"><\/a><a id=\"post-4160-_Toc115522674\"><\/a><a id=\"post-4160-_Toc115557246\"><\/a>Temporary register<\/h3><p>It is an 8-bit register, which holds the temporary data of arithmetic and logical operations.<\/p><h3><a id=\"post-4160-_Toc493079554\"><\/a><a id=\"post-4160-_Toc115522675\"><\/a><a id=\"post-4160-_Toc115557247\"><\/a>Flag register<\/h3><p>It is an 8-bit register having five 1-bit flip-flops, which hold either 0 or 1 depending upon the result stored in the accumulator.<\/p><p>The bit positions of the flags are shown in Figure 5.<\/p><p><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"157\" class=\"wp-image-4171\" src=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-11.png\" srcset=\"https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-11.png 878w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-11-300x54.png 300w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-11-768x137.png 768w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-11-600x107.png 600w, https:\/\/pravysoft.org\/eduserver\/wp-content\/uploads\/2023\/01\/word-image-4160-11-220x39.png 220w\" sizes=\"(max-width: 878px) 100vw, 878px\" \/><\/p><p><a id=\"post-4160-_Ref113042855\"><\/a><a id=\"post-4160-_Toc115618419\"><\/a> Figure : 8085 flag register<\/p><p>These are the set of <strong>5 flip-flops <\/strong>and they are listed below.<\/p><h5><a id=\"post-4160-_Toc493079555\"><\/a>Sign (S)<\/h5><p>If the result of an MSB operation is 1 then it is set else it is reset.<\/p><h5><a id=\"post-4160-_Toc493079556\"><\/a>Zero (Z)<\/h5><p><strong>Set<\/strong> if the result of an instruction is <strong>zero<\/strong>.<\/p><h5><a id=\"post-4160-_Toc493079557\"><\/a>Auxiliary Carry (AC)<\/h5><p>This flag is set to a 1 by the instruction just ending if a carry occurred from bit 3 to bit 4 of the accumulator during the instruction\u2019s execution. Because of the relationships of decimal in pure BCD to hexadecimal coding, it is possible to bring BCD values directly into the A Register and perform mathematical operations on them. The result, however, will be as if two hex characters are being processed. If the result must be returned to the program as BCD rather than as hex, the Decimal Adjust Accumulator (DAA) instruction can make that translation; the Auxiliary Carry Flag is provided to assist in this operation.<\/p><h5><a id=\"post-4160-_Toc493079558\"><\/a>Parity (P)<\/h5><p>The parity flag is used for results containing an even number of ones. This may be useful in I\/O operations with serial devices, or any place where <strong>error checking<\/strong> is to be done.<\/p><h5><a id=\"post-4160-_Toc493079559\"><\/a>Carry (C)<\/h5><p>The carry flag is used for carrying and borrowing in case of addition and subtraction operations.<\/p><h3><a id=\"post-4160-_Toc493079560\"><\/a><a id=\"post-4160-_Toc115522676\"><\/a><a id=\"post-4160-_Toc115557248\"><\/a>Instruction register and decoder<\/h3><p>It is an 8-bit register. When an instruction is fetched from memory then it is stored in the Instruction register. The instruction decoder decodes the information present in the Instruction register.<\/p><h3><a id=\"post-4160-_Toc493079561\"><\/a><a id=\"post-4160-_Toc115522677\"><\/a><a id=\"post-4160-_Toc115557249\"><\/a>Timing and control unit<\/h3><p>It provides a timing and control signal to the microprocessor to perform operations.<\/p><p>Following are the timing and control signals, which control external and internal circuits:<\/p><ol><li>Control Signals: READY,, , ALE<\/li><li>Status Signals: S0, S1,<\/li><li>DMA Signals: HOLD, HLDA<\/li><li>RESET Signals: RESET IN, RESET OUT<\/li><\/ol><h3><a id=\"post-4160-_Toc493079562\"><\/a><a id=\"post-4160-_Toc115522678\"><\/a><a id=\"post-4160-_Toc115557250\"><\/a>Interrupt control<\/h3><p>As the name suggests it controls the interrupts during a process. When a microprocessor is executing the main program and whenever an interrupt occurs, the microprocessor shifts the control from the main program to process the incoming request. After the request is completed, the control goes back to the main program.<\/p><p>There are 5 interrupt signals in the 8085 microprocessor and they are INTR, RST 7.5, RST 6.5, RST 5.5, and TRAP.<\/p><h3><a id=\"post-4160-_Toc493079563\"><\/a><a id=\"post-4160-_Toc115522679\"><\/a><a id=\"post-4160-_Toc115557251\"><\/a>Serial Input\/output control<\/h3><p>It controls serial data communication by using these two instructions: SID (Serial input data) and SOD (Serial output data).<\/p><h3><a id=\"post-4160-_Toc493079564\"><\/a><a id=\"post-4160-_Toc115522680\"><\/a><a id=\"post-4160-_Toc115557252\"><\/a>Address buffer and address-data buffer<\/h3><p>The content stored in the stack pointer and program counter is loaded into the address buffer and address-data buffer to communicate with the CPU. The memory and I\/O chips are connected to these buses; the CPU can exchange the desired data with the memory and I\/O chips.<\/p><h3><a id=\"post-4160-_Toc493079565\"><\/a><a id=\"post-4160-_Toc115522681\"><\/a><a id=\"post-4160-_Toc115557253\"><\/a>Address bus and data bus<\/h3><p>Data bus carries the data to be stored. It is bidirectional, whereas the address bus carries the location to where it should be stored and it is unidirectional. It is used to transfer the data &amp; Address I\/O devices.<\/p><h2><a id=\"post-4160-_Toc493079566\"><\/a><a id=\"post-4160-_Toc115522682\"><\/a><a id=\"post-4160-_Toc115557254\"><\/a>8085 Buses<\/h2><p>A typical system uses several buses, a collection of wires, which transmit binary numbers, one bit per wire. A typical microprocessor communicates with memory and other devices (input and output) using three buses: <strong>Address Bus, Data Bus and Control Bus<\/strong>.<\/p><h3><a id=\"post-4160-_Toc493079567\"><\/a><a id=\"post-4160-_Toc115522683\"><\/a><a id=\"post-4160-_Toc115557255\"><\/a>Address Bus<\/h3><p>The Address Bus consists of 16 wires, therefore Its &#8220;width&#8221; is <strong>16 bits<\/strong>. A 16-bit Address bus can identify memory locations i.e. 0000000000000000 up to 1111111111111111. Because memory consists of boxes, each with a unique address, the size of the address bus determines the size of memory, which can be used. To communicate with memory the microprocessor sends an address on the address bus, e.g. 0000000000000011 (3 in decimal), to the memory. The memory selects box number 3 for reading or writing data. <strong>The address bus is unidirectional<\/strong>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fe0a47d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fe0a47d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c4cdb7d\" data-id=\"c4cdb7d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d4a1e57 elementor-widget elementor-widget-heading\" data-id=\"d4a1e57\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"\">Please purchase HSST Part-2 to continue.<br><br>Purchase link:<br><a href=\"https:\/\/pravysoft.org\/eduserver\/courses\/hsst-computer-science-part-2\/\" style=\"font-size: 1.5rem;letter-spacing: -0.022rem;text-align: var(--bs-body-text-align)\">https:\/\/pravysoft.org\/eduserver\/courses\/hsst-computer-science-part-2\/<\/a><br><\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>HSST COMPUTER SCIENCE PART-2 PREVIEW: PURCHASE IT TO READ FULL CONTENTS SUMMARY&#8230;<\/p>\n","protected":false},"author":1,"featured_media":3753,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,293,427],"tags":[426,343,428,430,337,431,429,341],"class_list":["post-4160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-courses","category-education","category-hsst-cs","tag-book","tag-computer","tag-fre-materials","tag-free-pdf","tag-hsst","tag-kerala-psc-materials","tag-pravysoft-calicut-materals","tag-syllabus"],"_links":{"self":[{"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/posts\/4160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/comments?post=4160"}],"version-history":[{"count":0,"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/posts\/4160\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/media\/3753"}],"wp:attachment":[{"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/media?parent=4160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/categories?post=4160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pravysoft.org\/eduserver\/wp-json\/wp\/v2\/tags?post=4160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}