You are on page 1of 15

Page |1

Chittagong University of Engineering &Technology

Department of Mechatronics & Industrial Engineering.

Course No.: MIE 312

Course Title: Micro-controller and Interfacing for Mechatronic systems Sessional

EXPERIMENT NO.: 6

NAME OF THE EXPERIMENT:

Introduction of interfacing with 7 segment display and showing hexadecimal


numerals on the display on Edsim51

Remarks Name: Shakline Habib

Student No: 1709020

Date of Performance: 19.09.2021

Date of Submission: 26.09.2021


Page |2

Experiment No: 06
Experiment Name: Introduction of interfacing with 7 segment display and showing
hexadecimal numerals on the display on Edsim51.
Problem 1:
Display hexadecimal numerals on Edsim51.
Solution:
Display 0 :
Code :
CLR P1.7;
MOV P1,#01000000;#displaying 0
Output:

Display 1:
Page |3

Code :
CLR P1.7;
MOV P1,#11111001B;#displaying 1
Output:
Page |4

Display 2:
Code :
CLR P1.7;
MOV P1,#10100100B;#displaying 2
Output:

Display 3:
Page |5

Code :
CLR P1.7;
MOV P1,#10110000B;#displaying 3
Output:
Page |6

Display 4 :
Code :
CLR P1.7;
MOV P1,#10011001B;#displaying 4
Output:

Display 5:
Page |7

Code :
CLR P1.7;
MOV P1,#10010010B;#displaying 5
Output:

Display 6:
Code :
CLR P1.7;
MOV P1,#10000010B;#displaying 6
Output:
Page |8

Display 7:
Code :
CLR P1.7;
MOV P1,#11111000B;#displaying 7
Output:

Display 8:
Code :
CLR P1.7;
MOV P1,#00000000B;#displaying 8
Page |9

Output:

Display 9:
Code :
CLR P1.7;
MOV P1,# #10010000B;#displaying 9
P a g e | 10

Output:

Display A:
Code :
CLR P1.7;
MOV P1,#10001000B;
Output:
P a g e | 11

Display b:
Code :
CLR P1.7;
MOV P1,#10000011B;
Output:

Display c:
Code :
CLR P1.7;
MOV P1,#11000110B;
P a g e | 12

Output:

Display d:
Code :
CLR P1.7;
MOV P1,#10100001B;
Output:
P a g e | 13

Display E:
Code :
CLR P1.7;
MOV P1,#10000110B;
Output:

Display F:
Code :
CLR P1.7;
MOV P1,#10001110B;
P a g e | 14

Output:
P a g e | 15

You might also like