Recent Posts

Translate

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Monday, February 11, 2019

Experimental verification of 8085


Experiment No-1

Aim

To write an assembly language for adding two 8-bit numbers by using microprocessor kit.

Apparatus required

8085 micro processor kit, ( 0-5V ) DC battery.

Theory

In order to perform addition in 8085, one of the data should be in the accumulator and another data can be in any one of the general purpose register or in the memory. After addition, the sum is stored in .
The sum of two 8-bit data can be either 8-bit ( sum only) or 9-bit ( sum and carry ).
The accumulator can accumulated only the sum and if there is a carry, the 8085 will indicate by setting the carry flag. Here one of the register is used to account for carry.

Algorithm

Step-1         MVI,A
Step-2        Load first data in a register A ( Accumulator )
Step-3        MVI,B
Step-4        Load second data in a register B
Step-5        ADD,B
Step-6        STA,2050h
Step-7        HLT

Assembly Language program

Address         Mnemonics     Op.Codes ( Hex-codes)
 2000                   MVI,A                                  3E
 2001                   30h                                       30
 2002                   MVI,B                                  06
 2003                   20h                                       20
 2004                   ADD,B                                 80
 2005                   STA                                      32
 2006                   50 (Low byte of  M.Add.) 50
 2007                   20 ( High byte of  M.Add) 20
 2008                   HLT                                      76

Results

            Result- 50h
The assembly language program addition of two 8-bit numbers was executed successfully by using 8085 Microprocessor kit.


Experiment No-2

Aim

To write an assembly language for subtracting two 8-bit numbers by using microprocessor kit.

Apparatus required

8085 micro processor kit, ( 0-5V ) DC battery.

Theory

In order to perform subtracting in 8085, one of the data should be in the accumulator and another data can be in any one of the general purpose register or in the memory. After subtraction, the result is stored in accumulator.

Algorithm

Step-1         MVI,A
Step-2        Load first data in a register A ( Accumulator )
Step-3        MVI,B
Step-4        Load second data in a register B
Step-5        SUB,B
Step-6        STA,2050h
Step-7        HLT

Assembly Language program

Address         Mnemonics     Op.Codes ( Hex-codes)
 2000                MVI,A                                  3E
 2001                30h                                       30
 2002                MVI,B                                  06
 2003                20h                                       20
 2004                SUB,B                                  90
 2005                STA                                      32
 2006                50 (Low byte of  M.Add.) 50
 2007                20 ( High byte of  M.Add) 20
 2008                HLT                                      76

Results

            Result- 10h
The assembly language program subtraction of two 8-bit numbers was executed successfully by using 8085 Microprocessor kit.

Saturday, February 9, 2019

Practical-Introduction to Microprocessor


Microprocessor

Practical-Introduction to Microprocessor

Aim

To study the microprocessor 8085

Architecture of 8085 Microprocessor

  a.     General purpose register
     The register B,C,D,E,H,L is known as general purpose register. Each register have 8-bit space to store 8-bit data (i.e. each register make by combination of  8-flip-flop circuit , one flip-flop store 1-bit data).
     The combination of 8 bit register is known as register pair, which can hold 16 bit data.
  b.    Accumulator
    
Accumulator is a 8-bit register, which hold one of the data to be processed by ALU and stored the result of the operation.
  c.     Program counter (PC)
     
Program counter is a 16-bit register, which have the address of next instruction.(i.e. in 8085 the execution of program is start from PC.)
  d.    Stack pointer
     Stack pointer is a 16 bit special purpose register which is used to hold line memory address for line next instruction to be executed.
  e.     Arithmetic and Logic unit
     
Arithmetic and Logic unit carries out arithmetic and logical operation by 8 bit address it uses the accumulator content as input the ALU result is stored back into accumulator.
  f.      Temporary register
     It is an 8 bit register associated with ALU hold data, entering an operation, used by the microprocessor and not accessible to programs.
  g.     Flags
     Flag register is a group of fire, individual flip flops line content of line flag register will change after execution of arithmetic and logic operation. The line states flags are.
i) Carry flag (C)
ii) Parity flag (P)
iii) Zero flag (Z)
iv) Auxiliary carry flag (AC)
v) Sign flag (S)
  h.    Timing and control unit
    
Synchronous all microprocessor, operation with the clock and generator and control signal from it necessary to communicate between controller and peripherals.
  i.       Instruction register and decoder
   
Instruction is fetched from line memory and stored in line instruction register decoder the stored information.
j j.       Register array
  
These are used to store 8 bit data during execution of some instruction. If we want to store 16-bit data then we use pair of register i.e. B-C, D-E, H-L.

Pin Description

Address Bus
1. The pins Ao – A15 denote the address bus.
2. They are used for most significant bit

Address / Data Bus
1. AD0 – AD7 constitutes the address / Data bus
2. These pins are used for least significant bit

ALE : (Address Latch Enable)
1. The signal goes high during the first clock cycle and enables the lower order address bits.

IO / M
1. This distinguishes whether the address is for memory or input.
2. When this pins go high, the address is for an I/O device.

S0 – S1
S0 and S1 are status signal which provides different status and functions.
RD
1. This is an active low signal
2. This signal is used to control READ operation of the microprocessor.

WR
1. WR is also an active low signal
2. Controls the write operation of the microprocessor.

HOLD
1. This indicates if any other device is requesting the use of address and data bus.

HLDA
1. HLDA is the acknowledgement signal for HOLD
2. It indicates whether the hold signal is received or not.

INTR
1. INTE is an interrupt request signal
2. IT can be enabled or disabled by using software

INTA
1. Whenever the microprocessor receives interrupt signal
2. It has to be acknowledged.

RST 5.5, 6.5, 7.5
1. These are nothing but the restart interrupts
2. They insert an internal restart junction automatically.
TRAP
1.  Trap is the only non-maskable interrupt
2.  It cannot be enabled (or) disabled using program
RESET IN
1.  This pin resets the program counter to 0 to 1 and results interrupt enable and HLDA flip flops.
X1, X2
1.  These are the terminals which are connected to external oscillator to produce the necessary and suitable clock operation.
SOD
1.  This pin provides serial input data
SOD
1.     This pin provides serial output data
VCC and VSS
1. VCC is +5V supply pin
2. VSS is ground pin

IC’s Used
8085 - 8 bit p
8253 - programmable internal timer
8255 - programmable peripheral interface
8279 - programmable key boards / display interface
8251 - programmable communication interface
2764 - 8 KV VV EPROM
6264 - 8K STATIC PROM
7414 - Hex inverter
7432 - Quad 21/p OR GATE
7409 - Quad 21/p AND GATE
7400 - NAND Gate
7404 - Dual D-FF
74373 - Octal ‘D’ Latch
74139 - Dual 2 to 4 line decoder
74138 - 3 to 8 line decoder

In Enter Program into Trainer Kit

1. Press ‘RESET’ key
2. Sub (key processor represent address field)
3. Enter the address (16 bit) and digit in hex
4. Press ‘NEXT’ key
5. Enter the data
6. Again press “NEXT”
7. Again after taking the program, are use HLT instruction its Hex code
8. Press “NEXT”

How to executive program

1. Press “RESET”
2. Press “GO”
3. Enter the address location in which line program was executed
4. Press “Execute” key

Results

Thus 8085 microprocessor was studied successfully.

Sunday, February 3, 2019

Basic Computer

Computer

Introduction-

Computer is an electronic device, which can perform mathematical and logic operation according to a set of instruction.

The computer is capable of accepting data (input), processing data arithmetically and logically, producing output from the processing,
 A computer is primarily made of the Central Processing Unit (usually referred to as the computer), the monitor, the keyboard, and the mouse. Other pieces of hardware are commonly referred to as peripherals.

Hardware-

Hardware are those components that make up the computer. Like as monitor,  speakers,  mouse,  CDROM,  floppy  drive,  keyboard, CPU, RAM, Processor, etc. Each piece plays a role in the operation of a computer.

Software-

Software is the set of instruction that tells the computer what to do and when to do it. The computer uses this  instruction  to manipulate  data,  and  enhance  the  proper  functioning  of  the  hardware  components.

Software are mostly two type
1-      System software
2-      Application software

1-    System software

System software is general programs written for the system which provide the environment to facilitate the writing of application software.

2-    Application software

Application software are the set of programs necessary to carry out operations for a specialized application 

Component of a computer

The standard computer consists of a monitor, a keyboard, a mouse and the system unit. One can attach accessories such as printers and  scanners by  means  of ports, computers  are connected to other computers by means of a network.

1.     Output unit

The function of out unit is reveres in nature than that of the input unit. It is used to take out data, instructions and results of computation from the central processing unit (CPU).The output may be in the form of audio signal, video displays on screen, discs, photofilms etc.

Common output device are- Monitor, printer, optical printer, floppy disc, magnetic tape etc.

Monitor

This is the Visual Display Unit (VDU). There are various technologies for the display unit, cathode ray tube (CRT) or Liquid Crystal Display (LCD) or the projector. The monitor or screen displays your work.

2.     Input unit

The input unit is a device which accepts data and instruction from the user and communicates these to the central processing unit. The key board in computers is the most common input unit.

Input device are- Key-board, mouse, scanner, microphone, photo camera, semi-conductor device for detecting radiations.

Function of input unit

           i.            It accepts the data and instructions from the user.
         ii.            It converts these data and instruction into the form acceptable to the processing unit.
       iii.            It transfer the converted data instructions to the central processing unit.

Mouse

This is the input device used to move a small white arrow pointer-the Cursor on the screen. By pointing and clicking you can carry out commands.

Key-Board

This is the basic input device. It is one of the ways you can tell the computer what to do. It consists of the standard typewriter keys as well as a numeric keypad and function keys. You can use it to give the computer commands.

Peripheral device

All the parts we have reviewed so far are usually required for the computer to function. Some other parts, not required, can also be connected to the computer to complement it. A peripheral is an object attached to the computer to help it perform some necessary assignments none of the other parts can handle.
The most used peripherals are the printer, a digital camera, a scanner, a projector, an external drive (such as an external CD burner for an old computer), etc.

3.     C.P.U. (Central processing unit)

It is a main part of a computer. It performs and controls all the operations according to the data and instructions received from the user by input device.
It is divided in to three main parts.
·         Control unit
·         Arithmetic and logic unit
·         Memory unit

·        Control unit

This unit fetches the instruction from the main store, decodes them and produces signals that carry out the instructions.

Function of Control unit

        i.      It is the nerve center of the CPU.
      ii.      It acts as a supervisor.
    iii.      It sends the input from input device to the memory unit.
    iv.      If the input is to be processed, it is sent to the ALU.
      v.      It sends the final results from the memory unit to the output.

·        Arithmetic and Logic unit (ALU)

It performs all the arithmetical operations like addition, subtraction, multiplication, division and other logic operations like taking decisions based on conditional computation.
Function of ALU
Appropriate operations (addition, subtraction, multiplication, division, comparison of greater, lesser, equal, positive, negative, zero) are also performed here.

·        Memory unit

This unit store the data(like as input data, programs, intermediate results and final results ready for output).
Function of Memory unit
           i.            The input, data and instruction, fed in by the user is received and stored in this unit.
         ii.            The data and program instructions are stored as long as required by the user.
       iii.            The intermediate or final results values processed by the ALU are also stored in the                 memory unit.
       iv.            The data, if it has to be processed, is sent to the ALU or the output device from the memory unit.

Type of Computer

According to the operating principle, computers are classified in to three types:

1-    Analog Computer

Analog computer works on the principle of current and voltage-signal.
Analog computer can perform the job of measurement and comparison of physical quantities like velocity, acceleration, force, power, rate of flow, voltage, light intensity etc.
Analog computer are widely used in scientific and technological jobs.

2-    Digital Computer

Digital computer can perform only calculations. The mathematical data is represented in the form of only two digit 0 or 1 called binary number. Digital computer are widely used in commercial jobs.

3-    Hybrid Computer

Hybrid computer is a mixture of analog and digital computer. Some function are performed in analog part and some function are done by the digital part. Most modern computers

Operating System

An operating system is a program that acts as an intermediary between the application programs and the computer hardware. You cannot directly use computer applications (or programs) with computer  hardware without a translation system between the hardware and the applications. This translation system is called the operating system (OS).

Computer Language

The function of a computer is controlled by set of instructions called a computer program.
Just as a common language is needed for communication between two human beings, a language is needed for communication between the computer and its user. Computer language is the means of communication between the users and computers.

Type of Computer Language

There are two types of computer language:

1-    Low level language

Low level language is also divided into two type
     i.            Machine level language

The binary coded instructions which the computer can follow is knows as the machine-code and the sequence in which they are written is called machine level language.
   ii.            Assembly level language