Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

VIDYAVARDHINI’S COLLEGE OF ENGINEERING AND TECHNOLOGY

DEPARTMENT OF INSTRUMENTATION

NAME :- Dikshant Solanki

TE/INSTRU

ROLL NO :- 25

EXP NAME :-

D.O.P :- D.O.S :-

14/10/2021

SIGN :-
VIDYAVARDHINI’S COLLEGE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF INSTRUMENTATION

EXPERIMENT NO 5

AIM :- a. WAP to transfer letter “A” serially at 4800 baud rate continuously.

b. WAP to transfer word “INSTRUMENTATION ENGINEER” serially at 4800

baud rate continuously.

APPARATUS REQUIRED: Editor like Keil µvision version 4 or less

PROCEDURE:

1. Program is edited and is compiled with Keil compiler.

2. After successful compilation, debugging is started.

3. The memory window is accessed and the input data are entered and the output is seen as shown

in the result.

ALGORITHM:-

a. To transfer letter “A” serially:

1: START

2: Select Timer1, Mode 2

3: Select baud rate of 4800

4: Move 50H to SCON to operate 8 bit UART

5: Start Timer1

6: Store the transfer character in SBUF

7: Jump to Step7 until an interrupt is generated

8: Clear the interrupt


9: Go back to step 6
VIDYAVARDHINI’S COLLEGE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF INSTRUMENTATION

10:END

b. To transfer word “INSTRUMENTATION ENGINEER” serially

1. START

2. Select SCON 8 bit in Mode1 & Timer1

3. Move E8H in TH1 & start the Timer1

4. Move "MY DATA" to DPTR

5. CLR A

6. Move the contents of the memory location pointed by A+DPTR to the Accumulator &

jump back to STEP4

7. Store the transfer character in SBUF

8. Jump to Step 8 until an interrupt is generated

9. Clear the interrupt & Increment DPTR

10. Jump back to Step 5

11. STOP

PROGRAM:-

a. To transfer letter “A” serially.

ORG 0000H
MOV TMOD,#20H
MOV TH1,#-6
MOV SCON,#50H
SETB TR1
AGAIN: MOV SBUF,#"A"
HERE: JNB TI,HERE
CLR TI
SJMP AGAIN
END
VIDYAVARDHINI’S COLLEGE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF INSTRUMENTATION

b. To transfer word “INSTRUMENTATION ENGINEER” serially

ORG 0000H
MOV SCON,#50H
MOV TMOD,#20H
MOV TH1,#0E8H
SETB TR1
REPEAT: MOV DPTR,#MYDATA
LOOP:CLR A
MOVC A,@A+DPTR
JZ REPEAT
MOV SBUF,A
HERE:JNB TI,HERE
CLR TI
INC DPTR
SJMP LOOP

ORG 0050H
MYDATA:DB'....INSTRUMENTATION ENGINEERING',00H
END

RESULT:-

a. To transfer letter “A” serially.


VIDYAVARDHINI’S COLLEGE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF INSTRUMENTATION

b. To transfer word “INSTRUMENTATION ENGINEER” serially

CONCLUSION:- Thus we have successfully transferred letter “A” & Word


“INSTRUMENTATION ENGINEERING….” Serially.

You might also like