21. Seven Segment Display Interface

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View 21. Seven Segment Display Interface as PDF for free.

More details

  • Words: 402
  • Pages: 3
Adam’s Engineering College, Paloncha ECE Department –MPI LAB Experiment No.: 21 Page 1 of 3

Year : III/IV B.Tech II Semester

SEVEN SEGMENT DISPLAY INTERFACE

; assume the interface is connected to J2 of the trainer ; the trainer can be in keyboard mode or serial mode SEG STRING ADDER 8000 8003 8005 8007 8008 800B 800D 800F 8011 8012 8013 8014 8015 8016 8018 8019 801B 801D 801E 801F

EQU EQU

OPCODE 75 A0 68 78 03 74 80 F2 90 80 46 7B 05 79 04 7A 08 E4 93 A3 23 FC 78 01 F2 74 01 78 02 F2 14 F2

Lab in-charge

LABEL START:

LOOP4: LOOP3: LOOP2:

LOOP1:

0E8H 8048H MNEMONICS MOV P2 # SEG MOV R0, #03 MOV A, #80 MOV X, @R0, A MOV DPTR, #STRING MOV R3, #05H MOV R1, #4 MOV R2, #80H CLR A MOV A, @A+DPTR INC DPTR MOV R1, A MOV R4, A MOV R0, #1 MOV X @R0, A MOV A, #01H MOV R0, #02 MOV X @R0, A DEC A MOV X @R0,A HOD, ECE

Adam’s Engineering College, Paloncha ECE Department –MPI LAB Experiment No.: 21 Page 2 of 3

8020 8021 8022 8025 8026 8029 802C 802F 8030 8033 8035 8037 8039 803C

EC 1A BA 00 EF 19 B9 00 E6 12 80 35 12 80 35 1B BB 00 DA 80 D3 C0 83 C0 82 90 00 00 A3

803D 803F 8041 8043 8045 8047 8048

E5 83 45 82 70 F9 D0 82 D0 83 22 FF FF FF FF

804C

C6 86 C7 86

8050

BF C0 DE 87

8054

BF 92 91 92

8058

92 C8 86 87

805C Lab in-charge

Year : III/IV B.Tech II Semester

MOV A,R2 DEC R2 CJNE R2, #0, LOOP1 DEC R1 CJNE R1, #0, LOOP2 LCALL DELAY LCALL DELAY DEC R3 CJNE R3, #0, LOOP3 SJMP LOOP4 DELAY: PUSH DPH PUSH DPL MOV DPTR, #0 DELAY1 INC DPTR : MOV A, DPH ORL A, DPL JNZ DELAY1 POP DPL POP DPH RET DB 0FFH, 0FFH, 0FFH, 0FFH DB 0C6H, 86H, 0C7H, 86H DB 0BFH, 0C0H, 0DEH, 87H DB 0BFH, 92H, 91H, 92H DB 92H, 0C8H, 86H,87H END HOD, ECE

Adam’s Engineering College, Paloncha ECE Department –MPI LAB Experiment No.: 21 Page 3 of 3

Year : III/IV B.Tech II Semester

Result: Thus seven segment display is interfaced with micro controller 8051.

Lab in-charge

HOD, ECE

Related Documents