SELVARAJ PROJECT PUBLLIC ADVERTISEMENT DISPLAY USING MULTIPLEXED 16 SEGMENT LED.doc

Post on 06-Nov-2015

2 views 0 download

Transcript of SELVARAJ PROJECT PUBLLIC ADVERTISEMENT DISPLAY USING MULTIPLEXED 16 SEGMENT LED.doc

Dear selvaraj sir,

Create the above hardware in proteus using the component 16SEG-MPX8CC-RED, resistor pack 8bit, copy and paste the program given below to the keil uvision you will get your name display with blinking.

Rest of the details project abstract, concept details I am under preparing. I will give that with in Wednesday.

Thanking you,

PROGRAM:org 0000h

return:

mov r7,#0ffh

mov r3,#0ah

mov p2,#00

mov p3,#00

mov p0,#0ffh

cpl p0.7

main:

cpl p0.7

mov p2,#0bbh

mov p3,#88h

cpl p0.0

acall delay

cpl p0.0

mov p2,#0f3h

mov p3,#88h

cpl p0.1

acall delay

cpl p0.1

mov p2,#0f0h

mov p3,#00h

cpl p0.2

acall delay

cpl p0.2

mov p2,#0c0h

mov p3,#44h

cpl p0.3

acall delay

cpl p0.3

mov p2,#0cfh

mov p3,#88h

cpl p0.4

acall delay

cpl p0.4

mov p2,#0c7h

mov p3,#98h

cpl p0.5

acall delay

cpl p0.5

mov p2,#0cfh

mov p3,#88h

cpl p0.6

acall delay

cpl p0.6

mov p2,#23h

mov p3,#22h

cpl p0.7

acall delay

djnz r7,main

djnz r3,main

mov p0,#0ffh

acall delay2

sjmp return

delay:

mov tmod,#02h

mov th0,#0ffh

setb tr0

back: jnb tf0,back

clr tr0

clr tf0

ret

delay2:

mov r6,#07

mov tmod,#10h

go1:

mov th1,#01

mov tl1,#08

setb tr1

back3:jnb tf1, back3

clr tr1

clr tf1

djnz r6,go1

ret

end