0% found this document useful (0 votes)
70 views17 pages

Lab Report

The document describes seven experiments involving microcontrollers: 1. Implementation of a decade counter using an AT89S52 microcontroller and 7447 IC. 2. Implementation of a "fastest finger first" game for quizzes using an AT89S52 microcontroller. 3. Implementation of a water level indicator using an AT89S52 microcontroller. 4. Implementation of a century counter using an AT89S52 microcontroller and 7447 IC. 5. Implementation of the game Ludo using an AT89S52 microcontroller and 7447 IC. 6. Implementation of multiplexing to display "HI" using an AT89S52 microcontroller and 7447 IC. 7

Uploaded by

SHAIK MUSTHAFA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views17 pages

Lab Report

The document describes seven experiments involving microcontrollers: 1. Implementation of a decade counter using an AT89S52 microcontroller and 7447 IC. 2. Implementation of a "fastest finger first" game for quizzes using an AT89S52 microcontroller. 3. Implementation of a water level indicator using an AT89S52 microcontroller. 4. Implementation of a century counter using an AT89S52 microcontroller and 7447 IC. 5. Implementation of the game Ludo using an AT89S52 microcontroller and 7447 IC. 6. Implementation of multiplexing to display "HI" using an AT89S52 microcontroller and 7447 IC. 7

Uploaded by

SHAIK MUSTHAFA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

1

EXPERIMENT-1

Aim:- Implementation of the Decade Counter.

Tools Used:- keil micro vision software, AT89S52 micro controller


consists mother board setup ,7447 IC and FND.

PIN Diagram:- AT89S52

Fig 1.1:- Pin Diagram of controller

Fig1.2:-Minimum Hardware connection of AT89S52 Controller.


2

Fig1.3:-Pin Diagram of 7447 IC

Fig 1.3:-Interfacing Diagram of Decade Counter

Program code:-
ORG 0H
UP:MOV R0,#09H
H1:MOV P0,R0
ACALL DELAY
DJNZ R0,H1
SJMP UP

DELAY: MOV R1,#250


AGAIN: MOV R2,#250
HERE:NOP
NOP
NOP
NOP
3

NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
DJNZ R2,HERE
DJNZ R1,AGAIN
RET
END
Result:- Decade Counter had been implemented.
4

EXPERIMENT-2

Aim:- Implementation of fastest finger first for quiz competition.

Tools Used:- keil micro vision software, AT89S52 micro controller


consists mother board setup and FND.

PIN Diagram:- AT89S52

Fig 2.1:-Pin Diagram of Controller

Fig 2.2:-Interfacing Diagram of Fastest Finger First.


5

Programe Code:- ORG 0H


REPEAT: JB P1.0, REPEAT
UP : JNB P1.1, HERE1
JNB P1.2, HERE2
JNB P1.3, HERE3
JNB P1.4, HERE4
SJMP UP
HERE1 : MOV P0, #11H
ACALL DELAY
MOV P0, #0FFH
SJMP REPEAT
HERE2 : MOV P0, #01H
ACALL DELAY
MOV P0, #0FFH
SJMP REPEAT
HERE3 : MOV P0, #63H
ACALL DELAY
MOV P0, #0FFH
SJMP REPEAT
HERE4 : MOV P0, #03H
ACALL DELAY
MOV P0, #0FFH
SJMP REPEAT
DELAY: MOV R1,#250
AGAIN: MOV R2,#250
HERE:NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
DJNZ R2,HERE
DJNZ R1,AGAIN
RET
END
Result:- Fastest finger first had been implemented.
6

EXPERIMENT-3

Aim :- Implementation of water level indicator.

Tools Used:- :- keil micro vision software, AT89S52 micro controller


consists mother board setup and FND

PIN Diagram:- AT89S52

Fig 3.1:- Pin Diagram of Controller

Fig 3.2:- Interfacing Diagram of Water level Indicator


7

Program Code:- ORG 0H


UP:JNB P1.0,HERE1
JNB P1.1,HERE2
JNB P1.2,HERE3
SJMP UP
HERE1 : MOV P0,63H
SJMP UP
HERE2 : MOV P0,91H
SJMP UP
HERE3 : MOV P0,71H
MOV P2.0,0H
SJMP UP
END

Result:- water level indicated had been implemented.


8

EXPERIMENT-4

Aim:-Implementaion of the century counter.

Tools Used:- :- keil micro vision software, AT89S52 micro controller


consists mother board setup , 7447 IC and FND.

PIN Diagram:- AT89S52

Fig 4.1:-Pin Diagram of Controller


7447 IC

Fig 4.2:-Pin Diagram of 7447IC


9

Fig 4.3:- Interfacing Diagram of Century Counter

Program Code:- ORG 0H


MOV R0,#09H
MOV R3,#09H
UP1:MOV P0,R3
UP2:MOV P1,R0
ACALL DELAY
DEC R0
CJNE R0,#00H,UP2
DEC R3
CJNE R3,#00H,UP1

DELAY: MOV R1,#250


AGAIN: MOV R2,#250
HERE:NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
10

NOP
NOP
NOP
NOP
DJNZ R2,HERE
DJNZ R1,AGAIN
RET
END

Result:- Century Counter had been implemented.


11

EXPERIMENT-5
Aim:-Implementation of the Ludo game.

Tools Used:- :- keil micro vision software, AT89S52 micro controller


consists mother board setup , 7447 IC and FND.

PIN Diagram:- AT89S52

Fig 5.1:- Pin Diagram of Controller

7447 IC

Fig 5.2:- Pin Diagram of 7447IC


12

Fig 5.3:- Interfacing Diagram of Ludo Game


Program Code:- ORG 0H
UP:MOV R0,#01H
X: JNB P1.0,S
INC R0
CJNE R0,#07H,X
SJMP UP
S:JB P1.0,S
MOV P0,R0
ACALL DELAY
SJMP X
DELAY: MOV R1,#250
AGAIN: MOV R2,#250
HERE:NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
DJNZ R2,HERE
DJNZ R1,AGAIN
RET
END
Result:- Ludo game had been implemented.
13

EXPERIMENT-6

Aim:- Implementation of multiplexing by displaying “HI”.

Tools Used:- keil micro vision software, AT89S52 micro controller


consists mother board setup , 7447 IC and FND.

PIN Diagram:- AT89S52

Fig 6.1:-Pin Diagram of Controller

7447 IC

Fig 6.2:-Pin Diagram of 7447IC


14

Fig 6.3:-Interfacing Diagram of Multiplexing of Display

Program Code:- ORG 0H


UP:MOV P0, #06FH
SETB P1.0
CLR P1.1
ACALL DELAY
MOV P0,#0F3H
SETB P1.1
CLR P1.0
ACALL DELAY
SJMP UP

DELAY:MOV TMOD,#01H
MOV TH0,#0FCH
MOV TL0,#67H
SETB TR0
HERE: JNB TF0,HERE
CLR TR0
CLR TF0
RET
END

Result:- “HI” had been Displayed by using multiplexing.


15

EXPERIMENT-7

Aim:- Implementation of the Digital watch Timer.

Tools Used:- :- keil micro vision software, AT89S52 micro controller


consists mother board setup ,7447 IC and FND

PIN Diagram:- AT89S52

Fig 7.1:- Pin Diagram of Controller


7447 IC

Fig 7.2:- Pin Diagram of 7447 IC


16

Fig 7.3:-Interfacing Diagram of Digital Watch

Program Code:- ORG 0H


UP:MOV R0,#00H
H2:MOV P0,R0
MOV A,#00H
H1:MOV P2,A
ACALL DELAY
ADD A,#01H
DA A
CJNE A,#60H,H1
MOV A,R0
ADD A,#01H
DA A
CJNE A,#24H,H2
SJMP UP

DELAY: MOV R1,#250


AGAIN: MOV R2,#250
HERE:NOP
NOP
NOP
NOP
NOP
NOP
17

NOP
NOP
NOP
NOP
NOP
NOP
NOP
DJNZ R2,HERE
DJNZ R1,
RET
END

Result:- Digital watch had been implemented.

You might also like