Microprocessor & Micro Controller, Exercises of Microprocessors

Lab Manual for CSE /ECE STudents

Typology: Exercises

2020/2021

Uploaded on 03/25/2021

vive-kowsal-yaniss
vive-kowsal-yaniss 🇮🇳

3 documents

1 / 91

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
R
R
V
V
S
S
RVS EDUCATIONAL TRUST’S GROUP OF
INSTITUTION
RVS Nagar, Dindigul- 624 005. Tamil Nadu.
Name : ……………………….
Register No: ………………………..
Year & Sec: ………………………..
RECORD NOTE BOOK
MICROPROCESSOR & MICROCONTROLLER LAB
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b

Partial preview of the text

Download Microprocessor & Micro Controller and more Exercises Microprocessors in PDF only on Docsity!

R VR V SS

RVS EDUCATIONAL TRUST’S GROUP OF

INSTITUTION

RVS Nagar, Dindigul- 624 005. Tamil Nadu.

Name : ……………………….

Register No: ………………………..

Year & Sec: ………………………..

RECORD NOTE BOOK

MICROPROCESSOR & MICROCONTROLLER LAB

R VR V SS

RVS EDUCATIONAL TRUST’S GROUP OF

INSTITUTION

RVS Nagar, Dindigul- 624 005. TAMILNADU.

RECORD NOTE BOOK

Reg.No.

Certify that this is the bonafide record of work done by

Selvan/Selvi…………….…….……………of the ……... semester

…………………………………… Branch during the year 20….-

20 …. in the ……………………………………… Laboratory.

Internal Examiner External Examiner

Staff-in-Charge Head of the Department

Submitted for the University Practical Examination

on...……...……….20 20.

16 BIT ADDITION USING ARITHMETIC OPERATION OF 8086 MICROPROCESSOR

AIM:

To write an assembly language program to perform addition of two 16 bit numbers

using 8086.

APPARATUS REQUIRED:

S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1

ALGORITHM:

16-bit addition

 Get the first number is specific address.

 Add the second number to the first number.

 Add the two values.

 Store the sum and carry.

Ex. NO: 01

DATE:

FLOW CHART:
ADDITION:

Ex. NO: 02

DATE:

16 BIT SUBTRACTION
USING ARITHMETIC OPERATION OF 8086 MICROPROCESSOR

AIM:

To write an assembly language program to perform subtraction of two 16 bit

numbers using 8086.

APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1

ALGORITHM:

16-bit SUBTRACTION:

 Initialize the MSBs of difference to 0

 Get the first number

 Subtract the second number from the first number.

 If there is any borrow, increment MSBs of difference by 1.

 Store LSBs of difference.

 Store MSBs of difference.

FLOECHART:
SUBTRACTION:

Ex. NO: 03

DATE:

16 BIT MULTIPLICATION USING ARITHMETIC OPERATION OF 8086
MICROPROCESSOR
AIM:

To write an assembly language program to perform Multiplication of two 16

bit numbers using 8086.

APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1
ALGORITHM:

16-bit MULTIPLICATION

Multiplication of 16-bit numbers:

 Get the multiplier.

 Get the multiplicand

 Initialize the product to 0.

 Product = product + multiplicand

 Decrement the multiplier by 1.

 If multiplicand is not equal to 0, repeat from step (d) otherwise store the

product.

FLOECHART:
MULTIPLICATION:

Ex. NO: 04

DATE:

16 BIT DIVISION USING ARITHMETIC OPERATION OF 8086 MICROPROCESSOR

AIM:

To write an assembly language program to perform division of two 16 bit

numbers using 8086.

APPARATUS REQUIRED:

S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIT 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1

ALGORITHM:

16-bit division

Division of 16-bit numbers:

 Get the dividend and divisor.

 Initialize the quotient to 0.

 Dividend = dividend–divisor

 If the divisor is greater, store the quotient

 Go to step 3

 If dividend is greater, quotient = quotient+ repeat from step 4.



FLOECHART:

DIVISION:

EX. NO: 05

DATE :

LOGICAL OPERATIONS USING 8086 MICROCONTROLLER

AIM:

To move a data block without overlap

APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1

ALGORITHM:

 Initialize the memory location to the data pointer AL Register

 Increment B register.

 Increment accumulator by 1 and adjust it to decimal every time.

 Compare the given decimal number with accumulator value.

 Perform the given logical function value is in B register.

 Store the resultant in memory location.

PROGRAM FOR “ AND” LOGIC
ADDRESS OPCODE LABEL MNEMONICS COMMENT

8000 MOV AL,04 Move data 04 to AL register

8003 MOV BL,03 Move data 03 to BL register

8007 ANDI BL AND Operation

800D MOV #9000,BL Result store in 9000 address

800B HLT^ Stop the program

PROGRAM FOR “ OR” LOGIC
ADDRESS OPCODE LABEL MNEMONICS COMMENT

8000 MOV AL,05 Move data 05 to AL register

8003 MOV BL,04 Move data 04 to BL register

(^8007) ORI BL OR Operation

800D MOV #9000,BL Result store in 9000 address

800B HLT Stop the program

EX. NO: 06

DATE :

MOVE A DATA BLOCK WITHOUT OVERLAP

AIM:

To move a data block without overlap

APPARATUS REQUIRED:
S.NO ITEM SPECIFICATION QUANTITY
1. MICROPROCESSOR KIR 8086 KIT 1
2. POWER SUPPLY + 5 V DC 1
3. KEY BOARD - 1

ALGORITHM:

 Initialize the memory location to the data pointer.

 Increment B register.

 Increment accumulator by 1 and adjust it to decimal every time.

 Compare the given decimal number with accumulator value.

 When both match, the equivalent hexadecimal value is in B register.

 Store the resultant in memory location.



PROGRAM:
ADDRESS OPCODES PROGRAM COMMENTS

1000 MOV^ CL,^05 Get the Data range

1002 MOV^ SI,^1400 Get the first data.

1005 MOV^ DI,^1450 Get the second data.

1008 LD^ DSB^

Store the lower order product 1009 MOV [DI], AL Store the result

100B INC^ DI^ Increment the pointer.

100C DEC^1008 Dec Counter 0

1010 INT^3 Stop the program

OUTPUT:
INPUT OUTPUT

RESULT:

Thus the output for the Move a data block without overlap was executed

successfully.