You are on page 1of 12

Nagar Yuwak Shikshan Sansthas

Yeshwantrao Chavan College of Engineering


(An Autonomous Institution affiliated to Rashtrasant Tukadoji Maharaj Nagpur University)
Hingna Road, Wanadongri, Nagpur - 441 110

Department of Electronics Engineering


Advanced Microprocessor & Microcontroller
Manual


AUTHOR
Prof. S.V.Rathkantiwar
Mr. Y. A. Suryawanshi
Mr. A.R.Zade


YCCE,Nagpur.
Department of Electronics Engnneering
Session : 2012-2013 Semester VIII Section A& B
Laboratory: PG VLSI DESIGN LAB
Ex. No. Name of Experiment
1. Study Architecture of 8086.
2. Perform Basic Arithmetic Operation using 8086.
3. Transfer 10 data bytes of data from source Memory to destination
Memory.
4. Count odd and Even data bytes from a block of 10 data bytes.
5. Find smallest number from a block of 10 data bytes.
6. Find largest number from a block of 10 data bytes.
7. Transfer 05 data bytes using string instruction.
8. Study architecture of 8051.
9. Count positive and negative data bytes from a block of five data bytes.
10. Convert Hex number to its ascii equivalent number.
11. Transfer 05 data bytes from internal memory to external memory using
8051.
Experiment Beyond Syllabus
12. 16 2 LCD INTERFACING & PROGRAMMING WITH 8051
13. DC MOTOR INTERFACING USING 8051










Experiment No:2
Aim : Perform basic Arithmetic operation of 8086
TOOLS REQUIRED : 8086 Emulator Software
Assembly Code :
ADDITION :
MOV AX,0005h
MOV BX,1000H
ADD CX,BX
INT 3
SUBTRACTION:
MOV BX,1000H
MOV CX,2000H
SUB CX,BX
INT 3
MULTIPLICATION:
MOV AL,03H
MOV BL,02H
MUL BL
INT 3
DIVISION:
MOV AL,05H
MOV BL,02H
DIV BL
INT 3
Result :
Experiment No:3

Aim : Transfer A block of 10 data bytes present in memory from location
5500:9900h to 5500:8800h
TOOLS REQUIRED : 8086 Emulator Software
Assembly Code :
MOV AX, 5500h
MOV DS, AX
MOV CL,0AH
MOV SI, 9900H
MOV DI, 8800H
L2: MOV AL,[SI]
MOV [DI],AL
INC SI
INC DI
DEC CL
JNZ L2
INT 3


Result :






Experiment No:4

Aim : Count even and odd data bytes from a block of 10 data bytes
TOOLS REQUIRED : 8086 Emulator Software

Assembly Code :
MOV AX, 5500h
MOV DS, AX
MOV BX ,0000H
MOV CL,0AH
MOV SI, 9900H
L2: MOV AL,[SI]
ROR AL,1
JC L1
INC BH
JMP L3
L1: INC BL
L3: INC SI
DEC CL
JNZ L2
INT 3


Result :


Experiment No:5

Aim : Find the smallest data bytes from a block of 10 data bytes
TOOLS REQUIRED : 8086 Emulator Software

Assembly Code :
MOV AX, 5500h
MOV DS, AX
MOV CL,0AH
MOV SI, 9900H
L2: MOV AL,[SI]
L2: INC SI
CMP AL,[SI]
JC L1
MOV AL,[SI]
L1: DEC CL
JNZ L2
INC SI
MOV [SI],AL
INT 3


Result :



Experiment No:6

Aim : Find the Largest data bytes from a block of 10 data bytes
TOOLS REQUIRED : 8086 Emulator Software

Assembly Code :
MOV AX, 5500h
MOV DS, AX
MOV CL,0AH
MOV SI, 9900H
L2: MOV AL,[SI]
L2: INC SI
CMP AL,[SI]
JNC L1
MOV AL,[SI]
L1: DEC CL
JNZ L2
INC SI
MOV [SI],AL
INT 3


Result :



EXPERIMENT : 07
Aim: Transfer 05 data bytes using string instruction
TOOLS REQUIRED : 8086 Emulator Software
Assembly Code :
MOV AX, 5500h
MOV DS, AX
MOV AX,4400H
MOV ES,AX
MOV CL,0AH
MOV SI, 9900H
MOV DI, 8800H
CLD
REP MOVSB
INT 3


RESULT :










EXPERIMENT NO :09
Aim : Count positive and negative data bytes from a block of five data bytes
TOOLS REQUIRED : Ride Software
Assembly Code :
MOV R0,#40H
MOV R4, #05H
L2: MOV A,@R0
RLC A
JC L1
INC R6
SJMP L3
L1: INC R4
L3:INC R0
DEC R5
CJNE R5,#00H,L2
END



RESULT:





EXPERIMENT NO : 10
Aim : Convert Hex number to its ascii equivalent number
TOOLS REQUIRED : Ride Software
Assembly Code :
MOV R1, #40H
MOV A,#27H
MOV R0,A
ANI A,#0FH
ADD A,#30H
MOV @R1,A
MOV A,R0
ANI A,#0F0H
RR
RR
RR
RR
ADD A,#30H
INC R1
MOV @R1,A
SJMP $
END


Result :


EXPERIMENT NO : 11
Aim : Transfer A block of 10 data bytes present in internal memory to external
memory
TOOLS REQUIRED : Ride Software
Assembly Code :
MOV RO, #40H
MOV DPTR,#0003H
MOV R4,#0AH
L1:MOV A,@R0
MOVX @DPTR,A
INC R0
INC DPTR
DEC R4
CJNE R4,#00H,L1
SJMP $
END




Result :

You might also like