LABORATORY MANUAL. PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab

Size: px
Start display at page:

Download "LABORATORY MANUAL. PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab"

Transcription

1 LABORATORY MANUAL PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING INSTITUTE OF ENGINEERING & MANAGEMENT Sector-V, Salt Lake Electronics Complex Kolkata , West Bengal, India

2 CONTENTS 1 INTRODUCTION TO MICROPROCESSOR Aim 3 Architecture of 8085 Microprocessor 3 PIN Description 4 In Enter Program into Trainer Kit 7 How to Execute Program 7 Result INSTRUCTION SET 8 Implied Addressing 8 Register Addressing 8 Immediate Addressing 8 Direct Addressing 8 Register Indirect Addressing 8 Combined Addressing Modes 8 Timing Effects of Addressing Modes 9 Instruction Naming Conventions 9 Stack Control Instructions 11 The I/O instructions 11 Machine Control instructions 11 3 LIST OF INSTRUCTIONS (WITH OPCODE AND DESCRIPTION) OF MICROPROCESSOR 4 LIST OF EXEPRIMENTS 15 Addition of Two 8-Bit Numbers 15 Subtraction of Two 8 Bit Numbers 17 Addition of Two 16 Bit Numbers 19 Subtraction of Two 16 Bit Numbers 21 Multiplication of Two 8 Bit Numbers 23 Division of Two 8 Bit Numbers 25 Ascending Order 28 Largest in Array 30 Fibonacci Series 32 Sum of Series of Data 34 Factorial of 8 Bit Number Using Subroutine 37 1 s Complement of An 8 Bit Number 40 2 s Complement of An 8 Bit Number 41 Block Transfer Program 43 Sum of Two BCD Numbers 45 2

3 Aim INTRODUCTION TO MICROPROCESSOR 8085 To study the microprocessor 8085 Architecture of 8085 Microprocessor a) General purpose registers It is an 8 bit register i.e. B, C, D, E, H, and L. The combination of 8 bit register is known as register pair, which can hold 16 bit data. The HL pair is used to act as memory pointer is accessible to program. b) Accumulator It is an 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) It is a 16 bit pointer which maintains the address of a byte entered to line stack. d) Stack pointer (SP) It 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 logical unit It 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. 3

4 i) Instruction register and decoder Instruction is fetched from line memory and stored in line instruction register decoder the stored information. j) Register Array These are used to store 8 bit data during execution of some instruction. PIN Description a) Address Bus 1. The pins Ao A15 denote the address bus. 2. They are used for most significant bit. b) Address / Data Bus 1. AD0 AD7 constitutes the address / Data bus. 2. These pins are used for least significant bit. c) ALE: (Address Latch Enable) The signal goes high during the first clock cycle and enables the lower order address bits. 4

5 d) IO / M 1. This distinguishes whether the address is for memory or input. 2. When these pins go high, the address is for an I/O device. e) S0 S1 S0 and S1 are status signal which provides different status and functions. f) RD 1. This is an active low signal. 2. This signal is used to control READ operation of the microprocessor. g) WR 1. WR is also an active low signal. 2. Controls the write operation of the microprocessor. h) HOLD 1. This indicates if any other device is requesting the use of address and data bus. i) HLDA 1. HLDA is the acknowledgement signal for HOLD. 2. It indicates whether the hold signal is received or not. j) INTR 1. INTE is an interrupt request signal. 2. IT can be enabled or disabled by using software. k) INTA 1. Whenever the microprocessor receives interrupt signal 2. It has to be acknowledged. l) RST 5.5, 6.5, These are nothing but the restart interrupts. 2. They insert an internal restart junction automatically. m) TRAP 1. Trap is the only non-maskable interrupt. 2. It cannot be enabled (or) disabled using program. n) RESET IN 1. This pin resets the program counter to 0 to 1 and results interrupt enable and HLDA flip flops. o) X1, X2 These are the terminals which are connected to external oscillator to produce the necessary and suitable clock operation. 5

6 p) SID This pin provides serial input data q) SOD This pin provides serial output data r) VCC and VSS 1. VCC is +5V supply pin 2. VSS is ground pin s) Specifications 1. Processors Intel 8085 at E144 MHz clock 2. Memory Monitor RAM: 0000 IFFF EPROM Expansion: FFF s 0000 FFF System RAM: FFF Monitor data area FFF RAM Expansion 6000 BFFF 3. Input / Output Parallel: A8 TTL input timer with 2 number of only input timer available in 4. Serial: Only one number RS 232-C, Compatible, crucial interface using 8281A 5. Timer: 3 channels-16 bit programmable units, using 8253 channel 0 used for no band late. 6. Clock generator: Channel 1 is used for single stopping used program. 7. Display: 6 digits 7 segments LED display with filter 4 digit for adder display and 2 digits for data display. 8. Key board: 21 keys, soft keyboard including common keys and hexa decimal keys. RES: Reset keys allow terminating present activity and retaining to its on initialize state. INT: Maskable interrupt connect to CPU s RST 7.5 interrupt. DEC: Decrement the adder by 1. EXEC: Execute line particular value after selecting address through go command. NEXT: Increment the address by 1 and then display its content. 9. System Power Consumption Micro BSEB2 MICRO SSEB 1Amp +5V@ 800 ma 200 ma ma EE0310-Microprocessor & Microcontroller Lab 6

7 10. Power Supply Specification MICRO SSEM 230V, 80 Hz 600 ma 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 instructions its Hex code 8. Press NE How to Execute Program 1. Press RESET 2. Press GO 3. Enter the address location in which line program was executed 4. Press Execute key Result Thus 8085 microprocessor was studied successfully. 7

8 8085 INSTRUCTION SET Instructions can be categorized according to their method of addressing the hardware registers and/or memory. Implied Addressing The addressing mode of certain instructions is implied by the instruction s function. For example, the STC (set carry flag) instruction deals only with the carry flag, the DAA (decimal adjust accumulator) instruction deals with the accumulator. Register Addressing Quite a large set of instructions are call for register addressing. With these instructions, you must specify one of the registers A through E, H or L as well as the operation code. With these instructions, the accumulator is implied as a second operand. For example, the instruction CMP E may be interpreted as 'compare the contents of the E register with the contents of the accumulator. Immediate Addressing Instructions that use immediate addressing have data assembled as a part of the instruction itself. For example, the instruction CPI 'C' may be interpreted as compare the contents of the accumulator with the letter C. When assembled, this instruction has the hexadecimal value FE43. Hexadecimal 43 is the internal representation for the letter C. When this instruction is executed, the processor fetches the first instruction byte and determines that it must fetch one more byte. The processor fetches the next byte into one of its internal registers and then performs the compare operation. Direct Addressing Jump instructions include a 16-bit address as part of the instruction. For example, the instruction JMP 1000H causes a jump to the hexadecimal address 1000 by replacing the current contents of the program counter with the new value 1000H.Instructions that include a direct address require three bytes of storage: one for the instruction code, and two for the 16-bit address. Register Indirect Addressing Register indirect instructions reference memory via a register pair. Thus, the instruction MOV M, C moves the contents of the C register into the memory address stored in the H and L register pair. The instruction LDAX B loads the accumulator with the byte of data specified by the address in the B and C register pair. Combined Addressing Modes Some instructions use a combination of addressing modes. A CALL instruction, for example, combines direct addressing and registers indirect addressing. The direct address in a CALL instruction specifies the address of the desired subroutine; the register indirect address is the stack pointer. The CALL instruction pushes the current contents of the program counter into the memory location specified by the stack pointer. 8

9 Timing Effects of Addressing Modes Addressing modes affect both the amount of time required for executing an instruction and the amount of memory required for its storage. For example, instructions that use implied or register addressing, execute very quickly since they deal directly with the processor s hardware or with data already present in hardware registers. Most important, however is that the entire instruction can be fetched with a single memory access. The number of memory accesses required is the single greatest factor in determining execution timing. More memory accesses therefore require more execution time. A CALL instruction for example, requires five memory accesses: three to access the entire instruction and two more to push the contents of the program counter onto the stack. Instruction Naming Conventions The mnemonics assigned to the instructions are designed to indicate the function of the instruction. The instructions fall into the following functional categories: Data Transfer Group The data transfer instructions move data between registers or between memory and registers. MOV MVI LDA STA LHLD SHLD Move Move Immediate Load Accumulator Directly from Memory Store Accumulator Directly in Memory Load H & L Registers Directly from Memory Store H & L Registers Directly in Memory An 'X' in the name of a data transfer instruction implies that it deals with a register pair(16- bits). LXI LDAX STAX XCHG XTHL Arithmetic Group Load Register Pair with Immediate data Load Accumulator from Address in Register Pair Store Accumulator in Address in Register Pair Exchange H & L with D & E Exchange Top of Stack with H & L The arithmetic instructions add, subtract, increment, or decrement data in registers or memory. ADD ADI ADC ACI SUB SUI SBB SBI INR Add to Accumulator Add Immediate Data to Accumulator Add to Accumulator Using Carry Flag Add Immediate data to Accumulator Using Carry Subtract from Accumulator Subtract Immediate Data from Accumulator Subtract from Accumulator Using Borrow (Carry) Flag Subtract Immediate from Accumulator Using Borrow (Carry) Flag Increment Specified Byte by One 9

10 DCR INX DCX DAD Logical Group Decrement Specified Byte by One Increment Register Pair by One Decrement Register Pair by One Double Register Add; Add Content of Register Pair to H & L Register Pair This group performs logical (Boolean) operations on data in registers and memory and on condition flags. The logical AND, OR, and Exclusive OR instructions enable you to set specific bits in the accumulator ON or OFF. ANA ANI ORA ORI XRA XRI Logical AND with Accumulator Logical AND with Accumulator Using Immediate Data Logical OR with Accumulator Logical OR with Accumulator Using Immediate Data Exclusive Logical OR with Accumulator Exclusive OR Using Immediate Data The Compare instructions compare the content of an 8-bit value with the contents of the accumulator. CMP CPI Compare Compare Using Immediate Data The rotate instructions shift the contents of the accumulator one bit position to the left or right. RLC RRC RAL RAR Rotate Accumulator Left Rotate Accumulator Right Rotate Left Through Carry Rotate Right Through Carry Complement and carry flag instructions: CMA CMC STC Branch Group Complement Accumulator Complement Carry Flag Set Carry Flag The branching instructions alter normal sequential program flow, either unconditionally or conditionally. The unconditional branching instructions are as follows: JMP CALL RET Jump Call Return Conditional branching instructions examine the status of one of four condition flags to determine whether the specified branch is to be executed. The conditions that may be specified are as follows: 10

11 NZ Not Zero (Z = 0) Z Zero (Z = 1) NC No Carry (C = 0) C Carry (C = 1) PO Parity Odd (P = 0) PE Parity Even (P = 1) P Plus (S = 0) M Minus (S = 1) Thus, the conditional branching instructions are specified as follows: Jumps Calls Returns JC CC RC (Carry) JNC CNC RNC (No Carry) JZ CZ RZ (Zero) JNZ CNZ RNZ (Not Zero) JP CP RP (Plus) JM CM RM (Minus) JPE CPE RPE (Parity Even) JP0 CPO RPO (Parity Odd) Two other instructions can affect a branch by replacing the contents or the program counter: PCHL RST Move H & L to Program Counter Special Restart Instruction Used with Interrupts Stack Control Instructions The following instructions affect the Stack and/or Stack Pointer: PUSH POP XTHL SPHL Push Two bytes of Data onto the Stack Pop Two Bytes of Data off the Stack Exchange Top of Stack with H & L Move content of H & L to Stack Pointer The I/O instructions IN OUT Initiate Input Operation Initiate Output Operation Machine Control instructions EI DI HLT NOP Enable Interrupt System Disable Interrupt System Halt No Operation 11

12 LIST OF INSTRUCTIONS (WITH OPCODE AND DESCRIPTION) OF 8085 MICROPROCESSOR Mnemonic Op Description Notes ACI n CE Add with Carry Immediate A=A+n+CY ADC r 8F Add with Carry A=A+r+CY(21X) ADC M 8E Add with Carry to Memory A=A+[HL]+CY ADD r 87 Add A=A+r (20X) ADD M 86 Add to Memory A=A+[HL] ADI n C6 Add Immediate A=A+n ANA r A7 AND Accumulator A=A&r (24X) ANA M A6 AND Accumulator and Memory A=A&[HL] ANI n E6 AND Immediate A=A&n CALL a CD Call unconditional -[SP]=PC,PC=a CMA 2F Complement Accumulator A=~A CMC 3F Complement Carry CY=~CY CMP r BF Compare A-r (27X) CMP M BF Compare with Memory A-[HL] CNC a D4 Call on No Carry If CY=0(18~s) CNZ a C4 Call on No Zero If Z=0 (18~s) CP a F4 Call on Plus If S=0 (18~s) CPE a EC Call on Parity Even If P=1 (18~s) CPI n FE Compare Immediate A-n CPO a E4 Call on Parity Odd If P=0 (18~s) CZ a CC Call on Zero If Z=1 (18~s) DAA 27 Decimal Adjust Accumulator A=BCD format DAD B 09 Double Add BC to HL HL=HL+BC DAD D 19 Double Add DE to HL HL=HL+DE DAD H 29 Double Add HL to HL HL=HL+HL DAD SP 39 Double Add SP to HL HL=HL+SP DCR r 3D Decrement r=r-1 (0X5) DCR M 35 Decrement Memory [HL]=[HL]-1 DCX B 0B Decrement BC BC=BC-1 DCX D 1B Decrement DE DE=DE-1 DCX H 2B Decrement HL HL=HL-1 DCX SP 3B Decrement Stack Pointer SP=SP-1 DI F3 Disable Interrupts EI FB Enable Interrupts HLT 76 Halt IN p DB Input A=[p] INR r 3C Increment r=r+1 (0X4) INR M 3C Increment Memory [HL]=[HL]+1 INX B 03 Increment BC BC=BC+1 INX D 13 Increment DE DE=DE+1 INX H 23 Increment HL HL=HL+1 INX SP 33 Increment Stack Pointer SP=SP+1 JMP a C3 Jump unconditional PC=a JC a DA Jump on Carry If CY=1(10~s) JM a FA Jump on Minus If S=1 (10~s) JNC a D2 Jump on No Carry If CY=0(10~s) JNZ a C2 Jump on No Zero If Z=0 (10~s) JP a F2 Jump on Plus If S=0 (10~s) JPE a EA Jump on Parity Even If P=1 (10~s) JPO a E2 Jump on Parity Odd If P=0 (10~s) JZ a CA Jump on Zero If Z=1 (10~s) 12

13 LDA a 3A Load Accumulator direct A=[a] LDAX B 0A Load Accumulator indirect A=[BC] LDAX D 1A Load Accumulator indirect A=[DE] LHLD a 2A Load HL Direct HL=[a] LXI B,nn 01 Load Immediate BC BC=nn LXI D,nn 11 Load Immediate DE DE=nn LXI H,nn 21 Load Immediate HL HL=nn LXI SP,nn 31 Load Immediate Stack Ptr SP=nn MOV r1,r2 7F Move register to register r1=r2 (1XX) MOV M,r 77 Move register to Memory [HL]=r (16X) MOV r,m 7E Move Memory to register r=[hl] (1X6) MVI r,n 3E Move Immediate r=n (0X6) MVI M,n 36 Move Immediate to Memory [HL]=n NOP 00 No Operation ORA r B7 Inclusive OR Accumulator A=Avr (26X) ORA M B6 Inclusive OR Accumulator A=Av[HL] ORI n F6 Inclusive OR Immediate A=Avn OUT p D3 Output [p]=a PCHL E9 Jump HL indirect PC=[HL] POP B C1 Pop BC BC=[SP]+ POP D D1 Pop DE DE=[SP]+ POP H E1 Pop HL HL=[SP]+ POP PSW F1 Pop Processor Status Word {PSW,A}=[SP]+ PUSH B C5 Push BC -[SP]=BC PUSH D D5 Push DE -[SP]=DE PUSH H E5 Push HL -[SP]=HL PUSH PSW F5 Push Processor Status Word -[SP]={PSW,A} RAL 17 Rotate Accumulator Left A={CY,A}<- RAR 1F Rotate Accumulator Right A=->{CY,A} RET C9 Return PC=[SP]+ RC D8 Return on Carry If CY=1(12~s) RIM 20 Read Interrupt Mask A=mask RM F8 Return on Minus If S=1 (12~s) RNC D0 Return on No Carry If CY=0(12~s) RNZ C0 Return on No Zero If Z=0 (12~s) RP F0 Return on Plus If S=0 (12~s) RPE E8 Return on Parity Even If P=1 (12~s) RPO E0 Return on Parity Odd If P=0 (12~s) RZ C8 Return on Zero If Z=1 (12~s) RLC 07 Rotate Left Circular A=A<- RRC 0F Rotate Right Circular A=->A RST z C7 Restart (3X7) -[SP]=PC,PC=z SBB r 9F Subtract with Borrow A=A-r-CY SBB M 9E Subtract with Borrow A=A-[HL]-CY SBI n DE Subtract with Borrow Immediately A=A-n-CY SHLD a 22 Store HL Direct [a]=hl SIM 30 Set Interrupt Mask mask=a SPHL F9 Move HL to SP SP=HL STA a 32 Store Accumulator [a]=a STAX B 02 Store Accumulator indirect [BC]=A STAX D 12 Store Accumulator indirect [DE]=A STC 37 Set Carry CY=1 SUB r 97 Subtract A=A-r(22X) SUB M 96 Subtract Memory A=A-[HL] SUI n D6 Subtract Immediate A=A-n XCHG EB Exchange HL with DE HL<->DE XRA r AF Exclusive OR Accumulator A=Axr(25X) 13

14 XRA M AE Exclusive OR Accumulator A=Ax[HL] XRI n EE Exclusive OR Immediate A=Axn XTHL E3 Exchange stack Top with HL [SP]<->HL A B C D E H L Registers (8-bit) BC DE HL Register pairs (16-bit) PC Program Counter register (16-bit) PSW Processor Status Word (8-bit) SP Stack Pointer register (16-bit) a nn 16-bit address/data (0 to 65535) n p 8-bit data/port (0 to 255) r Register (X=B,C,D,E,H,L,M,A) z Vector (X=0H,8H,10H,18H,20H,28H,30H,38H) Arithmetic addition/subtraction & ~ Logical AND/NOT v x Logical inclusive/exclusive OR <- -> Rotate left/right <-> Exchange [ ] Indirect addressing [ ]+ -[ ] Indirect address auto-inc/decrement { } Combination operands (X) Octal op code where X is a 3-bit code If (~s) Number of cycles if condition true 14

15 LIST OF EXEPRIMENTS ADDITION OF TWO 8-BIT NUMBERS Aim: Write 8085 assembly language program for addition of two 8-bit numbers. Instruments Required: Microprocessor Kit 2. +5V Power supply Theory : Consider the first number 42H is stored in memory location 8000H and the second number 35H is stored in memory location 8001H. The result after addition of two numbers is to be stored in the memory location 8002 H. Assume program starts from memory location 8500H. Algorithm 1. Initialize the memory location of first number in HL register pair 2. Move first number/data into accumulator 3. Increment the content of HL register pair to initialize the memory location of second data 4. Add the second data with accumulator 5. Store the result in memory location 8003H Program Memory address Machine Codes Mnemonics Comments LXI H, 8000 H Address of first number in H-L register pair E MOV A,M Transfer first number in accumulator INX H Increment content of H-L register pair ADD M Add first number and second number STA 8003H Store sum in 8003 H HLT Halt Experimental Results Input Data Result Memory location Data Memory location Data H H H 15

16 Calculation Data 1: Data 2: Sum: Carry: 00 Conclusion The addition of two 8-bit numbers is performed using 8085 microprocessor where sum is 8-bit. Precautions 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What is the function of LXI H, 8000 H instruction? 2. How you can store a data in a memory location? 3. How you can read a data from a memory location? 4. What are flags available in 8085? 5. What is the function of RESET key of an 8085 microprocessor kit? 16

17 SUBTRACTION OF TWO 8 BIT NUMBERS Aim: Write 8085 assembly language program for subtraction of two 8-bit numbers. Instruments Required: Microprocessor Kit 2. +5V Power supply Theory : Consider the first number 55H is stored in memory location 8000H and the second number 32H is stored in memory location 8001H. The result after subtraction of two numbers is to be stored in the memory location 8002H. Assume program starts from memory location 8500H. Algorithm 1. Initialize the memory location of first number in HL register pair 2. Move first number/data into accumulator 3. Increment the content of HL register pair to initialize the memory location of second data 4. Subtract the second data with accumulator 5. Store the result in memory location 8003H Program Memory address Machine Codes Mnemonics Comments LXI H, 8000 H Address of first number in H-L register pair E MOV A,M Transfer first number in accumulator INX H Increment content of H-L register pair SUB M Subtract first number and second number Memory address Machine Codes Mnemonics Comments STA 8003H Store sum in 8003 H HLT Halt Experimental Results Input Data Result Memory location Data Memory location Data H H H 17

18 Calculation Data 1: Data 2: Difference: Borrow: 00 Conclusion Subtraction of two 8-bit numbers is performed using 8085 microprocessor where sum is 8-bit. Precautions 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What is the function of LXI H, 8000 H instruction? 2. How you can store a data in a memory location? 3. How you can read a data from a memory location? 4. What are flags available in 8085? 5. What is the function of RESET key of an 8085 microprocessor kit? 18

19 ADDITION OF TWO 16 BIT NUMBERS Aim: To write an assembly language program for adding two 16 bit numbers using 8085 micro processor kit. Instruments required: Microprocessor Kit 2. +5V Power supply Theory: Consider the first number 4283H is stored in memory location 8000H and 8001H; the second number 2931H is stored in memory location 8002H and 8003H. The result after addition of two numbers is to be stored in the memory location 8004H and 8005H. Assume program starts from memory location 8500H. Algorithm 1. Start the microprocessor 2. Get the 1st 8 bit in C register (LSB) and 2nd 8 bit in H register (MSB) of 16 bit number. 3. Save the 1st 16 bit in DE register pair 4. Similarly get the 2nd 16 bit number and store it in HL register pair. 5. Get the lower byte of 1st number into L register 6. Add it with lower byte of 2nd number 7. Store the result in L register 8. Get the higher byte of 1st number into accumulator 9. Add it with higher byte of 2nd number and carry of the lower bit addition. 10. Store the result in H register 11. Store 16 bit addition value in HL register pair 12. Stop program execution Program Memory address Label Mnemonics Hex Code Comments 8500 MVI C,00 0E C = 00H LHLD A HL 1st No XCHG EB HL DE 8506 LHLD A HL 2nd No DAD D 19 Double addition DE + HL 850A JNC Ahead D2 If Cy = 0, G0 to 850E 850B 0E 19

20 Memory address Label Mnemonics Hex Code Comments 850C D INR C 0C C = C E AHEAD SHLD HL 8004 (sum) 850F MOV C,A 79 Cy A 8512 STA Cy HLT 76 Stop execution Experimental Results Input Data Result Memory location Value Memory location Value (addend) 8004 B4 (sum) (addend) B (sum) (augend) (augend) (carry) Calculation Lower Byte of Data1: (83) Higher Byte of Data1: (42) Lower Byte of Data2: (31) Higher Byte of Data2: (29) Lower Byte of Sum: (B4) Higher Byte of Sum: (6B) Carry: 00 Conclusion Addition of two 16-bit numbers is performed using 8085 microprocessor where sum is Precautions 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What is the function of XCHG instruction? 2. How you can store a data in a memory location? 3. How you can read a data from a memory location? 4. What are flags available in 8085? 5. What is the function of DAD, LHLD and SHLD instructions of 8085 microprocessor? 16-bit. 20

21 SUBTRACTION OF TWO 16 BIT NUMBERS Aim: To write an assembly language program for subtracting two 16 bit numbers using 8085 microprocessor kit. Instruments required: Microprocessor Kit 2. +5V Power supply Theory: Consider the first number 4398H is stored in memory location 8000H and 8001H; the second number 4621H is stored in memory location 8002H and 8003H. The result after subtraction of two numbers is to be stored in the memory location 8004H and 8005H. Assume program starts from memory location 8500H. Algorithm 1. Start the microprocessor 2. Get the 1st 16 bit in HL register pair 3. Save the 1st 16 bit in DE register pair 4. Get the 2nd 16 bit number in HL register pair 5. Get the lower byte of 1st number 6. Get the subtracted value of 2nd number of lower byte by subtracting it with lower byte of 1st number 7. Store the result in L register 8. Get the higher byte of 2nd number 9. Subtract the higher byte of 1st number from 2nd number with borrow 10. Store the result in HL register 11. Stop the program execution Program Memory address Label Mnemonics Hex Code Comments 8500 MVI C,00 0E C = 00H LHLD A L 1st No XLHG EB HL DE 8506 LHLD A HL 2nd No MOV A,E 7B LSB of 1 to A 850A SUB L 95 A A L 850B STA A memory 850C D E MOV A,D 7A MSB of 1 to A 850F SBB H 9C A- A H 21

22 Memory address Label Mnemonics Hex Code Comments 8510 STA A memory HLT 76 Stop execution Experimental Results Input Data Result Memory location Value Memory location Value (Borrow) Calculation Lower Byte of Data 1: Lower Byte of Data 2: Lower Byte of Difference: Higher Byte of Data1: Higher Byte of Data 2: Higher Byte of Difference: Borrow: 00 Conclusion The subtraction of two 16-bit numbers is performed using 8085 microprocessor where result is 16-bit. Precautions 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What is the function of XLHG instruction? 2. How you can store a data in a memory location? 3. How you can read a data from a memory location? 4. What are flags available in 8085? 5. What is the function of SBB, LHLD instructions of 8085 microprocessor? 22

23 MULTIPLICATION OF TWO 8 BIT NUMBERS Aim: To write an assembly language for multiplying two 8 bit numbers by using 8085 micro processor kit. Instruments required: Microprocessor Kit 2. +5V Power supply Theory: Consider the first number 03H is stored in accumulator directly; the second number 05H is stored in memory location 8001H. The result after multiplication of two numbers is to be stored in the memory location 8001H and 8002H. Assume program starts from memory location 8500H. Algorithm 1. Start the microprocessor 2. Get the 1st 8 bit numbers 3. Move the 1st 8it number to a register 4. Get the 2nd 8 bit number 5. Move the 2nd 8 bit number to another register 6. Initialize the accumulator as zero 7. Initialize the carry as zero 8. Add both register value as accumulator 9. Jump on if no carry 10. Increment carries by 1 if there is 11. Decrement the 2nd value and repeat from step 8, till the 2nd value becomes zero. 12. Store the multiplied value in accumulator 13. Move the carry value to accumulator 14. Store the carry value in accumulator Program Memory address Label Mnemonics Hex Code Comments 8500 MVI A, 03 3E A = 00H 8502 MOV E,A 5F E = A MVI D, Get the first number in DE register pair 8505 LDA A Store the content of memory location into A MOV C,A 4F Initialize counter 8509 LXI H, A B 00 Result = 0 850C BACK DAD D 19 Result = Result + first number 23

24 Memory address Label Mnemonics Hex Code Comments Experimental Results Calculation A = 0F Conclusion The multiplication of two 8-bit numbers is performed using 8085 microprocessor where result is 16-bit. Precautions 850D DCR C 0D Decrement counter 850E JNZ BACK C2 850F 0C If count 0 repeat SHLD Store result HLT 76 Stop execution Input Data Result Memory location Value Memory location Value F Accumulator Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What is the function of DAD instruction? 2. How you can store a data in a memory location? 3. How you can read a data from a memory location? 4. What are flags available in 8085? 5. What is the function of SHLD instruction of 8085 microprocessor? 24

25 DIVISION OF TWO 8 BIT NUMBERS Aim: To write an assembly language program for dividing two 8 bit numbers using microprocessor kit. Instruments required: Microprocessor Kit 2. +5V Power supply Theory: Consider the first number 09H is stored in memory location 8000H AND the second number 02H is stored in memory location 8001H. The result after division of two numbers is to be stored in the memory location 8002H (quotient) and 8003H (remainder). Assume program starts from memory location 8500H. Algorithm 1. Start the microprocessor 2. Initialize the Quotient as zero 3. Load the 1st 8 bit data 4. Copy the contents of accumulator into register B 5. Load the 2nd 8 bit data 6. Compare both the values 7. Jump if divisor is greater than dividend 8. Subtract the dividend value by divisor value 9. Increment Quotient 10. Jump to step 7, till the dividend becomes zero 11. Store the result (Quotient) value in accumulator 12. Move the remainder value to accumulator 13. Store the result in accumulator 14. Stop the program execution Program Memory address Label Mnemonics Hex Code Comments 8500 MVI C, 00 0E Initialize Quotient as zero 8502 LDA A Get the first number in Accumulator MOV B,A 47 Copy the 1st data into register B 25

26 Experimental Results Calculation I II III Memory address Label Mnemonics Hex Code Comments 8506 LDA A Get the second number in Accumulator CMP B B8 Compare the 2 values 850A JC LOO P1 DA 850B C 85 Jump if dividend lesser than divisor 850D LOOP2 SUB B 90 Subtract the 1st value by 2nd value 850E INR C 0C Increment Quotient 850F JMP C3 Jump to Loop 1 till the D value of dividend becomes zero 8512 LOOP1 STA Store result MOV A,C 79 Move the value of remainder to accumulator 8516 STA Store the remainder value in accumulator HLT Stop execution Input Data Result Memory location Value Memory location Value (quotient) (reminder) 26

27 IV carry Quotient - 04 Carry - 01 Conclusion The division of two 8-bit numbers is performed using 8085 microprocessor where result is 8 bit number quotient and 8 bit number remainder. Precautions 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What is the function of CMP instruction? 2. How you can store a data in a memory location? 3. How you can read a data from a memory location? 4. What are flags available in 8085? 5. What is the function of JMP and JC instructions of 8085 microprocessor? 27

28 ASCENDING ORDER Aim: To write a program to sort given n numbers in ascending order Instruments required: Microprocessor Kit 2. +5V Power supply Theory: A series of five words 04, AB, BC, 01,0A in memory locations from 8000 to 8004 and number of words is stored in memory location 17B3:0300. Arrange the above words in Descending Order. Algorithm 1. Start the microprocessor 2. Accumulator is loaded with number of values to sorted and it is saved 3. Decrement 8 register (N-1) Repetitions) 4. Set HL register pair as data array 5. Set C register as counter for (N-1) repetitions 6. Load a data of the array in accumulator 7. Compare the data pointed in HL pair 8. If the value of accumulator is smaller than memory, then jump to step Otherwise exchange the contents of HL pair and accumulator 10. Decrement C register, if the of C is not zero go to step Decrement B register, if value of B is not zero, go step Stop the program execution Program Memory address Label Mnemonics Hex Code Comments 8500 LDA A Load the number of values MOV B,A 47 Move it B register 8504 DCR B 05 For (N-1) comparisons 8505 Loop 3 LXI H, Set the pointer for array MOV C,M 4E Count for (N-1) comparisons 8509 DCR C 0D For (N-1) comparisons 850A INX H 23 Increment pointer 850B Loop 2 MOV A,M 7E Get one data in array A 850C INX H 23 Increment pointer 850D CMP M BE Compare next with accumulator 28

29 Memory address Label Mnemonics Hex Code Comments 850E JC Loop1 DA 850F 16 If content less memory go ahead MOV D,M 56 If it is greater than interchange it 8512 MOV M,A 77 Memory content 8513 DCX H 2B Exchange the content of memory pointed by HL by previous location 8514 MOV M,D 72 One in by HL and previous location 8515 INX H 23 Increment pointer 8516 Loop 1 DCR C 0D Decrement C register 8517 JNZ Loop 1 C B Repeat until C is zero A DCR B 05 Decrement in B values 851B JNZ Loop 2 C2 851C 05 Repeat till B is zero 851D E HLT 76 Stop the program execution Experimental Results Conclusion The above assembly language program for sorting numbers in ascending order was executed by microprocessor kit and this program is stored into memory 8500 to 851E. Precautions Input Data Result Input Address Value Output Address Value AB BC A AB A 8004 BC 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What do you mean by ascending order? 2. What is the function of CMP, LXI instructions? 3. How you can store the smallest number in memory? 29

30 LARGEST IN ARRAY Aim: To find the largest element in an array of size n using 8085 Microprocessor. Instruments required: Microprocessor Kit 2. +5V Power supply Theory: Find the largest number in a block of data. The length of the block is in memory location 8000H and the block itself starts from memory location 8001H. Store the maximum number in memory location 8050H. Assume that the numbers in the block are all 8 bit unsigned binary numbers. Algorithm 1. Initialize counter 2. Maximum = Minimum possible value = 0 3. Initialize pointer 4. Is number> maximum 5. Yes, replace maximum 6. Decrement counter by one 7. Go to step 4 until counter = 0 8. Store maximum number 9. Terminate program execution Program Memory address Label Mnemonics Hex Code Comments 8500 LDA A Load the number of values MOV C,A 79 Initialize counter 8504 XRA A AF Clear Accumulator 8505 LXI H, Set the pointer for array BACK CMP M BD Is number> maximum 8509 JNC SKIP D2 No, jump to SKIP 850A 0D 850B C MOV A,M 7E replace maximum 850D SKIP INX H 23 Increment pointer 850E DCR C 0D Decrement counter by one 850F JNZ BACK C Go to next iteration

31 Memory address Label Mnemonics Hex Code Comments 8512 STA Store maximum number HLT 76 Terminate program execution Experimental Results Conclusion Program to find the smallest element in an array of size n using 8085 Microprocessor has been executed. Precautions Input Data Result Input Address Value Output Address Value A A Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What do you mean by XRA A? 2. What is the function of CMP, LXI, JNC, JNZ instructions? 3. How you can store the largest number in memory? 31

32 FIBONACCI SERIES Aim: To write an assembly language program to display n elements of the Fibonacci series using 8085 Microprocessor. Instruments required: Microprocessor Kit 2. +5V Power supply Theory: Find the Fibonacci series, where the length of the series is in memory location 8000H and the series itself starts from memory location 8001H. Algorithm 1. Start the microprocessor 2. Load the length of series in the accumulator and decrement it by 2 3. Move the value to register D 4. Load the starting value of data value address 5. Initialize the 1st number as Move the pointer to 2nd data and initialize them as Move the pointer to next position for next data 8. Initialize B as 00 and C as 01 for calculations 9. Copy the contents of B to accumulator 10. Add the content of C register to accumulator 11. Move the content C to B and A to C 12. Now store the result to memory pointed by HL pair 13. Move the pointer to next pointer 14. Decrement 0 by 1 for counter 15. If D is not zero, go to step If D is zero, end the program Program Memory address Label Mnemonics Hex Code Comments 8500 LDA A Store the length of series in A SUI 02 D Decrement A by MOV D,A 57 Move A to D (counter) 8506 LXI H, Load the starting address of array MVI M, A 00 Initialize 8001 as 00 32

33 Memory address Label Mnemonics Hex Code Comments 850B INX H 23 Increment pointer 850C MVI M, D 01 Initialize 2nd as E INX H 23 Increment pointer 850F MVI B, Initialize B as MVI, C, 01 0E Initialize C as Loop MOV A,B 78 Move B to A 8514 ADD C 81 Add A and C 8515 MOV B,C 41 Move C to B 8516 MOV C,A 4F Move A to C 8517 MOV M,A 77 Move the result to memory 8518 INX H 23 Increment pointer 8519 DCR D 15 Decrement counter 851A JNZ Loop C2 851B 13 If D = 0, jump to loop 851C D HLT 76 Stop the program Experimental Results Conclusion The assembly language for Fibonacci series was executed successfully using 8085 microprocessor kit. Precautions Input Data Result Input Address Value Output Address Value Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What do you mean by SUI? 2. What is the function of LXI, JNC, JNZ instructions? 3. How you can store the series in memory? 33

34 SUM OF SERIES OF DATA Aim: To write an assembly language program to calculate the sum of data using 8085 microprocessor kit. Instruments required: Microprocessor Kit 2. +5V Power supply Theory: This program finds the sum of series of data stored from 8001H on wards, where length of series is stored in memory location 8000H. The sum is stored in memory location 8050H and carry is stored in 8051H memory location. Algorithm 1. Start the microprocessor 2. Load the number of values in series in accumulator and move it to register C and load the starting address of array 3. Initialize the value of A as Move the value of A to B register 5. Add the content of accumulator with the data pointed by HL pair 6. If there exists a carry, increment B by 1, if not continue 7. Increment the pointer to next data 8. Decrement the value of C by 1, which is used as counter 9. If C is equal to zero, go to step 10 if not go to step Store the value of A to memory, it shows the result 11. Move the content of B to A 12. Store the value of A to memory 13. Stop the program Program Memory address Label Mnemonics Hex Code Comments 8500 LDA A Load accumulator with number of values MOV B,A 4F Move it from A to C 8504 LXI H, Load the starting address of data array SUB A 97 Initialize A as MOV B,A 47 Initialize B as Loop ADD M 86 Add the previous sum with next data 34

35 Memory address Label Mnemonics Hex Code Comments 850A JNC Skip D2 850B 0E Jump on if no carry 850C D INR B 04 Increment carry by one 850E Skip INX H 23 Increment pointer for next data 850F DCR C 0D Decrement C by one 8510 JNZ Loop C Jump if not zero STA Store the sum in accumulator MOV A,B 78 Move the value of carry to A from B 8517 STA Store the carry in memory A HLT 76 End of program Experimental Results Calculation = 23 = 17 (in Hexa decimal) (0F + 8 = 233) 0F = = Input Data Result Input Address Value Output Address Value

36 Conclusion The assembly language program for sum of data was executed successfully using 8085 microprocessor kit. Precautions 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What do you mean by carry? 2. What is the function of LXI, JNC, JNZ instructions? 3. How you can store the series in memory? 36

37 FACTORIAL OF 8 BIT NUMBER USING SUBROUTINE Aim: To write a program to calculate the factorial of a number (between 0 to 8) Instruments required: Microprocessor Kit 2. +5V Power supply Theory: This program finds the factorial of a number stored in 8000H memory location. The result is stored in memory location 8050H. Algorithm: 1. Initialize the stack pointer 2. Get the number in accumulator 3. Check for if the number is greater than 1. If no, store the result otherwise go to next step. 4. Load the counter and initialize result 5. Now factorial program in sub-routine is called. 6. In factorial, initialize HL RP with 0. Move the count value to B 7. Add HL content with Rp. 8. Decrement count (for multiplication) 9. Exchange content of Rp (DE) with HL. 10. Decrement counter (for factorial) till zero flag is set. 11. Store the result 12. Halt Program Memory Address Label Hex Code Mnemonics Comments A LDA 8000 Get the number in accumulator FE CPI 02H Compare data with 2 and DA check it is greater than 1 JC Loop 1 If cy =1 jump to loop 1 If cy = 0 proceed F MOV E,A Move content of A to E MVI D,00 Load this term as a result 850A B 3D DCR A Decrement accumulator by 1 850C 4F MOV C,A Move A content to C (counter 1 less than A) 37

38 Memory Address Label Hex Code Mnemonics Comments 850D 850E 850F CD CALL Facto Call sub routine program Facto 8510 EB XCHG Exchange (DE) (HL) SHLD 8050 Store content of HL in specified memory location A 851B 851C C3 1D 85 Loop JMP Loop 3 Jump to Loop 3 LXI H,0001H HL is loaded with data 01 SHLD 8050 Store the result in memory 851D Loop3 76 HLT Terminate the program Sub Routine Memory Address Label Hex Code Mnemonics Comments Facto LXI H,0000 Initialize HL pair MOV B,C Content of C is moved to B 8604 Loop2 19 DAD D Content of DE is added with HL DCR B B is decremented Experimental Results C JNZ Loop 2 Multiply by successive addition till zero flag is set EB XCHG [DE] [HL] 0D DCR C Decrement counter value C CNZ Facto Call on no zero to facto (i.e repeat process till zero flag for c = 1) C9 RET Return to main program Input Data Result Input Address Value Output Address Value

39 Conclusion The assembly language program for factorial of 8 bit number was executed successfully using 8085 microprocessor kit. Precautions 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions 1. What do you mean by CALL? 2. What is the function of SHLD, CNZ instructions? 3. How subroutine is executed? 39

40 1 s COMPLEMENT OF AN 8 BIT NUMBER Aim: Write 8085 assembly language program for one s complement of an 8-bit numbers Instruments Required: Microprocessor Kit 2. +5V Power supply Theory: The number is stored in memory location 8050H and one s complement of number will be stored in location 8051H. Assume the program memory starts from 8000H. Algorithm 1. Load memory location of data 8000H in H-L registers pair. 2. Move data into accumulator 3. Complement accumulator 4. Store the result in memory location 8050H Program Experimental Results Conclusion The one s complement of an 8-bit numbers is performed using 8085 microprocessor. Precautions Memory Address Hex Code Mnemonics Comments LXI H,8000H 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions: Define one s complement of an 8-bit numbers. 2. What is the function of CMA instruction? Load address of number in H-L register pair E MOV A,M Move number into accumulator F CMA Complement accumulator STA 8050H HLT Stop Execution Input Data Result Input Address Value Output Address Value 8000 F0H FH Store the result in 8050H 40

41 2 s COMPLEMENT OF AN 8 BIT NUMBER Aim: Write 8085 assembly language program for two s complement of an 8-bit numbers Instruments Required: Microprocessor Kit 2. +5V Power supply Theory: The number is stored in memory location 8000H. The two s complement will be stored in 8050H. The program is written from memory location 8500H. Algorithm 1. Transfer the content of memory location 8500H to accumulator. 2. Complement the content of accumulator 3. Add 01H with accumulator to get two s complement of number 4. Store the result in memory location 8501H Program Experimental Results Conclusion: Memory Address Hex Code Mnemonics Comments LXI H,8000H Load address of number in H-L register pair E MOV A,M Move number into accumulator F CMA Complement accumulator 8505 C6 ADI 01 Add 01H with accumulator to find two s complement of number STA 8050H Store the result in 8050H A 76 HLT Stop Execution Input Data Result Input Address Value Output Address Value 8000 F0H H The two s complement of an 8-bit numbers is performed using 8085 microprocessor. 41

42 Precautions 1. Properly connect the 8085 microprocessor kit with power supply terminals. 2. Switch on the power supply after checking connections. 3. Handle the Trainer kit carefully. Viva-Voice Questions: 1. Define two s complement of an 8-bit numbers. 2. What is the function of CMA instruction? 3. Why ADI 01H is used in two s complement of an 8-bit number. 42

43 BLOCK TRANSFER PROGRAM Aim: Write 8085 assembly language program to transfer block of 16 bytes data from source to destination. Instruments Required: Microprocessor Kit 2. +5V Power supply Theory: The block of 16 byte data stored in memory locations 8000H onwards and transfers this data to another memory locations and store from 8050 onwards. Algorithm 1. Initialize counter 2. Initialize source memory pointer 3. Initialize destination memory pointer 4. Get byte from source memory block 5. Store byte in the destination memory block 6. Decrement source memory pointer 7. Decrement destination memory pointer 8. Decrement counter 9. If counter 0 repeat 10. Stop execution Program Memory Hex Code Label Mnemonics Comments Address LXI H,8000H LXI D,8050H Load address of number in H-L register pair Load address of number in D-E register pair E MVI C, 0F F Initialize the counter C E Loop MOV A,M Move number into accumulator STAX D Data transfer from source to destination 850A C6 INX H Increment source pointer 850B 01 INX D Increment destination pointer 850C 0D DCR C Decrement counter 850D C2 JNZ Loop Go to the loop staring location if z= 0 850E F HLT Stop Execution 43

The 8085 Instruction Set

The 8085 Instruction Set 1 of 8 2/9/2011 5:14 PM The 8085 Instruction Set As I promised, in an earlier lesson, I am going to go through an in-depth explaination of ALL the 8085 instructions. Intel 88888 000 88888 5555555 A 8 8

More information

Instruction Set Instruction set of 8085 can be classified in following groups: Data Transfer Instructions These instructions can perform data transfer operations between Registers of 8085 e.g. MOV 8085

More information

8085 INSTRUCTION SET INSTRUCTION DETAILS

8085 INSTRUCTION SET INSTRUCTION DETAILS 8085 INSTRUCTION SET INSTRUCTION DETAILS DATA TRANSFER INSTRUCTIONS MOV Rd, Rs Copy from source to destination This instruction copies the contents of the source register Rs into the destination register

More information

INSTRUCTION SET OF 8085

INSTRUCTION SET OF 8085 INSTRUCTION SET OF 8085 Instruction Set of 8085 An instruction is a binary pattern designed inside a microprocessor to perform a specific function. The entire group of instructions that a microprocessor

More information

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples. (1) Explain instruction format and Opcode format of 8085 μp with example. OR With help of examples, explain the formation of opcodes of 8085 OR What is an instruction? List type of instruction based on

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. QUESTION BANK DEPARTMENT: EEE SUB CODE: EE2324 YR/ SEM:III/ VI SUB NAME: MICROPROCESSORS & MICROCONTROLLERS UNIT 2- PROGRAMMING OF 8085 MICROPROCESSORS

More information

Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1

Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1 Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1 High Level Language Compiler Assembly Language Assembler Machine Code Microprocessor Hardware 1/18/2011 2 8085A Instruction Set

More information

SAMPLE STUDY MATERIAL

SAMPLE STUDY MATERIAL Microprocessor-IN Postal Correspondence Course 1 SAMPLE STUDY MATERIAL Instrumentation Engineering IN Postal Correspondence Course GATE & PSUs Microprocessor Microprocessor-IN Postal Correspondence Course

More information

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer Lect. (1) Introduction to microprocessor and microcomputer Reference Books: 1. Ramesh S. Gaonkar, "Microprocessor Architecture, Programming and Application with the 8085". 2. Anokh Singh, A.K. Chhabra,Fundamentals

More information

EE309: Computer Organization, Architecture and MicroProcessors. sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS

EE309: Computer Organization, Architecture and MicroProcessors.   sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS CMP:8085 Primer-1 EE309: Computer Organization, rchitecture and MicroProcessors http://www.ee.iitb.ac.in/ sumantra/courses/up/up.html The 8085 Chip F LGS: S Z x x P x cy EXTERNLLY INITITED SIGNLS SERIL

More information

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller UNIT I SYLLABUS INTRODUCTION TO 8085 Intel 8085 Microprocessor architecture signals Addressing modes Instruction classification Instruction set Timing diagram ALP format Programming 8085 8-bit and 16-bit

More information

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit. LIST OF PROGRAMS Prg. Name of the Program No. 1 Study of Pin Diagram of 8085 2 Study of Architecture of 8085 3 Study of 8085 Kit 4 Reverse Order 5 Exchange of memory blocks 6 Absolute Difference 7 Even

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 Topics 1. Introduction 2. Programming model of 8085 3. Instruction set of 8085 4. Example Programs 5. Addressing modes of 8085 6. Instruction & Data Formats of 8085

More information

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE 8085 -Internal Architecture - Addressing modes - Instruction set -Timing diagrams -Interrupts-Assembly language Programming 1. Internal Architecture of 8085 Microprocessor

More information

Practical Course File For

Practical Course File For Practical Course File For Microprocessor (IT 473) B.Tech (IT) IV-SEM Department of IT University Institute of Engineering & Technology Panjab University, Chandigarh Page 1 INTRODUCTION... 4 EXPERIMENT-1:

More information

Its Assembly language programming

Its Assembly language programming 8085 Architecture & Its Assembly language programming Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati 8085 Era and Features 8085 Outline Block diagram (Data Path) Bus Structure Register Structure

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor understands

More information

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web:     Ph: Serial :. PT_EE-EC_A_Microprocessor_968 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: -452462 CLASS TEST 28-9 Subject : Microprocessors

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks) MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. UNIT I THE 8085 & 8086 MICROPROCESSORS PART A (2 Marks) 1. Give the significance of SIM and RIM instruction available in 8085. [NOV/DEC 2006] Instruction

More information

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33 MSMF GATE CENTRE Sub: MICROPROCESSORS Time: 50min Date:20-12-16 Marks:33 1. Which interrupt has highest priority in 8085 microprocessor? a) INTR b) RST 4.5 c) RST 6.5 d) RST 7.5 2. In 8085 microprocessor,

More information

COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS

COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS AND/OR REPRINT ISSUES CONTAINED IN THIS MATERIALS. THIS IS NOT MEANT FOR ANY

More information

ELECTRICAL ENGINEERING

ELECTRICAL ENGINEERING Serial : 1. JP_EE_Microprocessor_130618 CLASS TEST Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 ELECTRICAL ENGINEERING

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

Subject Code: Model Answer Page No: /25

Subject Code: Model Answer Page No: /25 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate

More information

UNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR

UNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR UNIT 1 REFERENCE 1 PROGRAMMING THE 8085 DEVELOPMENT OF PROGRAM A program is a sequence of instructions written to tell a computer to perform a specific function. The instructions are selected from the

More information

G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering

G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering LECTURE NOTES MICROPROCESSORS AND INTERFACING PREPARED BY V.SHANTHI ASST PROFESSOR DEPT

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microprocessor Subject Code: 17443 I m p o r t a n t I n s t r u c t i o n s t o e x a m i n e r s : 1) The answers should be examined by key words and

More information

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web:     Ph: Serial : 01. ND_EE_NW_Microprocessors_150718 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 CLASS TEST 2018-19 ELECTRICAL

More information

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor Subject Name: Microprocessor and Microcontroller Year: 3 rd Year Subject Code: CS502 Semester: 5 th Module Day Assignment 1 Microprocessor

More information

EXAMPLE PROGRAMS 8085

EXAMPLE PROGRAMS 8085 P! EXAMPLE PROGRAMS 8085 Statement:Multiply the 8-bit unsigned number in memory location 2200H by the 8-bit unsigned number in memory location 2201H. Store the 8 least significant bits of the result in

More information

GATE Exercises on Microprocessors

GATE Exercises on Microprocessors 1 GATE Exercises on Microprocessors Abstract This problem set has questions taken from GATE papers over the last twenty years. Teachers can use the problem set for courses tutorials. 1) The clock frequency

More information

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER OBJECT: EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER To understand the structure and operating instruction of the microprocessor trainer. INTRODUCTION: The MKT 8085 is a single-board microcomputer,

More information

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT ELECTRONICS AND COMMUNICATION ENGINEERING CS 2252-MICROPROCESSOR AND MICROCONTROLLER COURSE NOTES UNIT I 8085 MICROPROCESSOR OBJECTIVES:.* Study

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.

More information

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web:     Ph: Serial : LS2_EE_S_Microprocessors_2688 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: -452462 CLASS TEST 28-9 ELECTRICAL ENGINEERING

More information

SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER

SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER (AS PER UNIVERSITY SYLLABUS) LIST OF EXPERIMENTS 1. UNDERSTANDING

More information

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem

More information

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly. Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale

More information

CS2259-MICROPROCESSOR AND MICROCONTROLLER LABORATORY MANUAL

CS2259-MICROPROCESSOR AND MICROCONTROLLER LABORATORY MANUAL CS2259-MICROPROCESSOR AND MICROCONTROLLER LABORATORY LABORATORY MANUAL FOR IV SEMESTER B.TECH / IT ACADEMIC YEAR: 2012-2013 (FOR PRIVATE CIRCULATION ONLY) ANNA UNIVERSITY, CHENNAI. NAME REG.NO BATCH :

More information

8085 Microprocessor Programs

8085 Microprocessor Programs 8085 Microprocessor Programs Courtesy : www.8085projects.info Rachit Agrawal 07-CE-52 Kalol Institute of Technology & Research Center PROGRAMS FOR 8085 MICROPROCESSOR PROGRAMS FOR LEARNERS 1. Store 8-bit

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.

More information

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU 534007 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER Faculty: B.Homer Benny (Section- A

More information

MICROPROCESSOR BASICS AND RELATED TERMS

MICROPROCESSOR BASICS AND RELATED TERMS MICROPROCESSOR BASICS AND RELATED TERMS Microprocessor: Programmable integrated device that has computing ability and decision making capacity. It is the CPU of computer. A multipurpose, programmable,

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

INDEX. 1 Study of intel 8085 micropeocessor kit. 2 Program to find addition of two 8 bit no. 3 Program to find subtraction of two 8 bit no.

INDEX. 1 Study of intel 8085 micropeocessor kit. 2 Program to find addition of two 8 bit no. 3 Program to find subtraction of two 8 bit no. INDEX PROGRAM NO. NAME OF THE PROGRAM 1 Study of intel 8085 micropeocessor kit SIGNATURE 2 Program to find addition of two 8 bit no. 3 Program to find subtraction of two 8 bit no. 4 Program to find 1 s

More information

Programming of 8085 microprocessor and 8051 micro controller Study material

Programming of 8085 microprocessor and 8051 micro controller Study material 8085 Demo Programs Now, let us take a look at some program demonstrations using the above instructions Adding Two 8-bit Numbers Write a program to add data at 3005H & 3006H memory location and store the

More information

ROEVER ENGINEERING COLLEGE

ROEVER ENGINEERING COLLEGE ROEVER ENGINEERING COLLEGE ELAMBALUR, PERAMBALUR- 621 212 DEPARTMENT OF INFORMATION TECHNOLOGY MICROPROCESSOR & MICROCONTROLLER 2 marks questions andanswers Unit I 1. Define microprocessor? A microprocessor

More information

Micro Processor & Micro Controllers

Micro Processor & Micro Controllers Micro Processor & Micro Controllers 1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. 2. What are the basic units of microprocessor?

More information

Computer Organization

Computer Organization Computer Organization (Instruction set Architecture & Assembly Language Programming) KR Chowdhary Professor & Head Email: kr.chowdhary@gmail.com webpage: krchowdhary.com Department of Computer Science

More information

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

Microprocessor Architecture

Microprocessor Architecture Microprocessor - 8085 Architecture 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration

More information

PERIPHERAL INTERFACING Rev. 1.0

PERIPHERAL INTERFACING Rev. 1.0 This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en

More information

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUN 2015

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUN 2015 Q.2 a. Draw block diagram schematic of 8085 bus structure. Explain buses/ communication lines used by 8085. (6) 8085 Bus organization structure: 8085 MPU and peripheral devices communicate through three

More information

MICROPROCESSOR AND MICROCONTROLLER

MICROPROCESSOR AND MICROCONTROLLER A Course Material on By Mr. C.JAGADEESHWARAN ASSISTANT PROFESSOR DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING SASURIE COLLEGE OF ENGINEERING VIJAYAMANGALAM 638 56 QUALITY CERTIFICATE This is to

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within up to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the

More information

PERIPHERAL INTERFACING Rev. 1.0

PERIPHERAL INTERFACING Rev. 1.0 This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en

More information

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions.

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. Downloaded from www.books4career.blogspot.com 1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. 2. What are the basic units

More information

Chapter 1: Basics of Microprocessor [08 M]

Chapter 1: Basics of Microprocessor [08 M] Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)

More information

Microprocessor Micro Syllabus BSc. CSIT, IOST, TU. Microprocessor

Microprocessor Micro Syllabus BSc. CSIT, IOST, TU. Microprocessor Microprocessor Micro Syllabus BSc. CSIT, IOST, TU Microprocessor Course Title: Microprocessor Full Marks: 60 + 20 + 20 Course No: CSC162 Pass Marks: 24 + 8 + 8 Nature of the Course: Theory + Lab Credit

More information

2003 LXI H, 42F2H ; this instruction store 42F2 in to the HL pair POP H ; store data from top of the stack to HL pair

2003 LXI H, 42F2H ; this instruction store 42F2 in to the HL pair POP H ; store data from top of the stack to HL pair (1) What is stack? Explain stack related instruction with example OR Give function of stack. OR What is stack? Explain the stack operations using examples. The stack is a group of memory location in the

More information

The functional block diagram of 8085A is shown in fig.4.1.

The functional block diagram of 8085A is shown in fig.4.1. Lecture-13 Internal Architecture of Intel 05A The functional block diagram of 05A is shown in fig.4.1. INTA INTR RST7.5 RST5.5 RST6.5 TRAP SOD SID INTERRUPT SERIAL I/O (Internal Bus) FR(S) IR() B() C()

More information

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

1. What is Microprocessor? Give the power supply & clock frequency of 8085? 1. What is Microprocessor? Give the power supply & clock frequency of 8085? A microprocessor is a multipurpose, programmable logic device that reads binary instructions from a storage device called memory

More information

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks) QUESTION BANK EE 6502 / Microprocessor and Microcontroller Unit I- 8085 Processor PART-A (2-Marks) YEAR/SEM : III/V 1. What is meant by Level triggered interrupt? Which are the interrupts in 8085 level

More information

XII HSC - BOARD - MARCH

XII HSC - BOARD - MARCH Date: 17.03.2018 JEE MEDICAL-UG BOARDS KVPY NTSE OLYMPIADS XII HSC - BOARD - MARCH - 2018 COMPUTER SCIENCE - II ( D-9) QP + SOLUTIONS 1. (A) Select correct options and rewrite the following : (a) Intel

More information

The due date for submitting this assignment has passed. 1) How many times will the following loop be executed? Depends on the initial value of A

The due date for submitting this assignment has passed. 1) How many times will the following loop be executed? Depends on the initial value of A X reviewer2@nptel.iitm.ac.in Courses» and Microcontrollers Unit 4 - Week 3 Announcements Course Ask a Question Progress Mentor Course outline How to access the portal Week 3 Assignment The due date for

More information

8051 Overview and Instruction Set

8051 Overview and Instruction Set 8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different

More information

EKT222 Miroprocessor Systems Lab 5

EKT222 Miroprocessor Systems Lab 5 LAB 5: Interrupts Objectives: 1) Ability to define interrupt in 8085 microprocessor 2) Ability to understanding the interrupt structure in the 8085 microprocessor 3) Ability to create programs using the

More information

Valliammai Engineering College

Valliammai Engineering College Valliammai Engineering College SRM Nagar, Kattankulathur - 603203 Department of Electrical and Electronics Engineering EE6612 Microprocessors and Microcontrollers Laboratory LAB MANUAL VI Semester - Electrical

More information

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI EE2354- MICROPROCESSORS AND MICROCONTROLLER UNIT I 8085 and 8086 PROCESSOR PART A 1. Define

More information

The advantages of registers over memory locations are as follows:

The advantages of registers over memory locations are as follows: Q.2 a. In a microprocessor, what is the use of a register? What are the advantages & disadvantages of using registers over a memory location? What is the speciality of register A (accumulator) over other

More information

Machine Cycle- 2 or (Machine Cycle-1 of next instruction):

Machine Cycle- 2 or (Machine Cycle-1 of next instruction): Lecture-29 17. CMA: (Complement accumulator) This is an ALP statement. The meaning of the instruction is Complement the content of accumulator bit by bit and store the result back into the accumulator.

More information

Microcontroller Intel [Instruction Set]

Microcontroller Intel [Instruction Set] Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers

More information

Architecture of 8085 microprocessor

Architecture of 8085 microprocessor Architecture of 8085 microprocessor 8085 consists of various units and each unit performs its own functions. The various units of a microprocessor are listed below Accumulator Arithmetic and logic Unit

More information

SN8F5000 Family Instruction Set

SN8F5000 Family Instruction Set SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.

More information

Basics of Microprocessor

Basics of Microprocessor Unit 1 Basics of Microprocessor 1. Microprocessor Microprocessor is a multipurpose programmable integrated device that has computing and decision making capability. This semiconductor IC is manufactured

More information

1 = Enable SOD 0 = Disable SOD. Serial Output Data. Fig.12.9 SIM Instruction Format

1 = Enable SOD 0 = Disable SOD. Serial Output Data. Fig.12.9 SIM Instruction Format Lecture-67 The 8085 Serial I/O Lines: SOD & SID The 8085 microprocessor has two pins specially designed for software control serial I/O. One is called SOD (serial output data) and the other is called SID

More information

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUNE 2013

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUNE 2013 Q 2 (a) Distinguish between following pair of instructions of 8085 (i) LXI H, 123H and LHLD 1234H (ii) SPHL and PCHL (iii) XRA M and ORA M (iv) RRC and RLC (i)lxi H, 123H- Loads 16 bit data (123H) in register

More information

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND)

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND) 1. (a) Pin configuration of 8085 X 1 X 2 CLKOUT TRAP RST 7.5 RST 6.5 RST 5.5 INTR INTA SID SOD RESET IN RESET OUT T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution

More information

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085 BLOCK DIAGRAM OF INTEL 8085 GURSHARAN SINGH TATLA Introduction to 8085 It was introduced in 1977. It is 8-bit microprocessor. Its actual name is 8085 A. It is single NMOS device. It contains 6200 transistors

More information

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085 mailme@gursharansingh.in BLOCK DIAGRAM OF INTEL 8085 mailme@maninderkaur.in Introduction to 8085 It was introduced in 1977. It is 8-bit microprocessor. Its actual name is 8085 A. It is single NMOS device.

More information

Contents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):

More information

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS UNIT I INTRODUCTION TO 8085 8085 Microprocessor - Architecture and its operation, Concept of instruction execution and timing diagrams, fundamentals of

More information

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013) BHARATHIDASAN ENGINEERING COLLEGE III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013) FREQUENTLY ASKED QUESTIONS IN UNIVERSITY EXAMINATION PART A UNIT 1-8085 PROCESSOR 1. Draw the

More information

E3940 Microprocessor Systems Laboratory. Introduction to the Z80

E3940 Microprocessor Systems Laboratory. Introduction to the Z80 E3940 Microprocessor Systems Laboratory Introduction to the Z80 Andrew T. Campbell comet.columbia.edu/~campbell campbell@comet.columbia.edu E3940 Microprocessor Systems Laboratory Page 1 Z80 Laboratory

More information

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman Microprocessors 1 The 8051 Instruction Set Microprocessors 1 1 Instruction Groups The 8051 has 255 instructions Every 8-bit opcode from 00 to FF is used except for A5. The instructions are grouped into

More information

Assembly language Programming

Assembly language Programming Assembly language Programming Applications With out the assembly language programming microprocessor can not works. Instructions are the patterns which is require by the microprocessor to done any task.

More information

CS521 CSE IITG 11/23/2012

CS521 CSE IITG 11/23/2012 CS521 CSE IITG 11/23/212 http://jatinga.iitg.ernet.in/~asahu/cs523/ Course Contents Text and Reference Books All lecture slides Summery of each class with references Other information Simulators, Benchmarks,

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK V SEMESTER EE6502- MICROPROCESSORS AND MICROCONTROLLERS Regulation 2013

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

Instruction set of 8085

Instruction set of 8085 Instruction set of 05 /23/2016 ptkarule@rediffmail.com 1 Instruction set of 05 Instruction set is divided into various groups depending on the operations performed: 1. Data transfer 2. rithmetic 3. Logical

More information

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS Q.2 a. Draw pin diagram and signal group diagram of 8085 microprocessor. (8) b. List out the various categories of the 8085 instructions. Give examples of the instructions for each group. (8) Data transfer

More information

Lecture Note On Microprocessor and Microcontroller Theory and Applications

Lecture Note On Microprocessor and Microcontroller Theory and Applications Lecture Note On Microprocessor and Microcontroller Theory and Applications MODULE: 1 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip

More information

EASWARI ENGINEERING COLLEGE DEPARTMENT OF ELECTRONICS AND COMMUNICATION QUESTION BANK - V SEMESTER ECE EC2304 MICROPROCESSORS AND MICROCONTROLLERS UNIT I 1. When the 8086 processor is in minimum mode and

More information

MGM S Jawaharlal Nehru Engineering College

MGM S Jawaharlal Nehru Engineering College MGM S Jawaharlal Nehru Engineering College Laboratory Manual MICROPROCESSOR AND INTERFACING TECHNIQUES For TE (EEP) Prof.J.R.Rana Author JNEC, Aurangabad PREFACE It is my great pleasure to present this

More information

9/25/ Software & Hardware Architecture

9/25/ Software & Hardware Architecture 8086 Software & Hardware Architecture 1 INTRODUCTION It is a multipurpose programmable clock drive register based integrated electronic device, that reads binary instructions from a storage device called

More information

(2½ Hours) [Total Marks: 75]

(2½ Hours) [Total Marks: 75] (2½ Hours) [Total Marks: 75] N. B.: (1) All questions are compulsory. (2) Make suitable assumptions wherever necessary and state the assumptions made. (3) Answers to the same question must be written together.

More information

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output 8085 SATISH CHANDRA 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

More information

PROGRAMMING BOOK FOR MTK85SE, 8085 MICROPROCESSOR TRAINING KIT

PROGRAMMING BOOK FOR MTK85SE, 8085 MICROPROCESSOR TRAINING KIT PROGRAMMING BOOK FOR MTKSE, 0 MICROPROCESSOR TRAINING KIT Wichit Sirichote 0 Rev.0 April, 0 CONTENTS Program : Writing data to output port... Program : Binary number counting... Program : LED running...

More information