VTech Alphabert s Magic Readport User Manual Page 31

  • Download
  • Add to my manuals
  • Print
  • Page
    / 80
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 30
BM Dept., Govt. Engg. College, Gandhinagar Page 31
EXPERIMENT NO. 8
Aim: Interface seven segment display with Port P1. Write program to display number 0 to 9 on
the seven segment display. Use delay between two counts.
Program 1: Display Count value on seven segment display.
Circuit diagram:
Program:
ORG 00h
AJMP start
ORG 03h
RETI
start:
MOV P1,#00h ;Configure port 1 as output port
again: MOV DPTR,#CODE ;Initialize DPTR as a base address for code
next: CLR A
MOVC A,@A+DPTR ; Get seven segment code
JZ AGAIN
MOV P1,A ;Display count value
ACALL DELAY
Page view 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 79 80

Comments to this Manuals

No comments