Es FILE Final
Es FILE Final
Es FILE Final
PROGRAM SIGN
Program:
MOV A, #05H
MOV B, #03H
ADD A, B
MOV P1, A
Hex file:
:09000000740575F00325F0F5907C
:00000001FF
Output:
P1=08H
PROGRAM 2
Program:
MOV A, #05H
SUBB A, #02H
MOV P1, A
Hex file:
0000 7405
0002 9402
0004 F590
Output:
P1=03H
PROGRAM 3
Program:
MOV A, #01H
MOV B, #02H
MUL AB
MOV P1, A
Hex file:
0000 7401
0002 75F002
0005 A4
0006 F590
Output:
P1=02H
PROGRAM 4
Program:
MOV A, #02H
MOV B, #02H
DIV AB
MOV P1, A
Hex file:
0000 7402
0002 75F002
0005 84
0006 F590
Output:
P1=01H
PROGRAM 5
Program:
Hex file:
0000 758901
0003 758AFE
0006 758CFF
0009 B292
000B 110F
000D 80F4
000F 758810
0012 308DFD
0015 C28C
0017 C28D
0019 80E8
Output:
50% duty cycle wave is observed on P1.2
PROGRAM 6
Program:
Hex file:
0000 758901
0003 758AFE
0006 758CFF
0009 7455
000B F590
000D 1114
000F F4
0010 F590
0012 80EF
0014 758810
0017 308DFD
001A C28C
001C C28D
001E 22
Output:
PROGRAM 7
Program:
ORG 00H
RET
CALCULATIONS
278*19 = 5.29ms
Hex File:
:09000000740575F00325F0F5907C
:00000001FF
PROGRAM 8
Aim: To receive the data that has been sent in, in serial form and sends it out
to ports in parallel form. Use the data at RAM location 60H
Program:
ORG 0000H
MOV TMOD, #20H
MOV TH1, #30H
MOV SCON, # 50H
SET B TR1
CLR RI
MOV A, SBUF
MOV P0, A
MOV 60H, A
MOV P1, A
Hex File:
:100000007466F59003110980F97A647BFFDBFEDAF0
:02001000FA22D2
:00000001FF
PROGRAM 9
Program:
ORG 0000H
MOV A, #66H
BACK: MOV P1, A
RR A
ACALL DELAY
SJMP BACK
RET
HEX FILE :
:10000000800A1100800B1100800C11007480F591A2
:10001000227440F592227420F5922278FF79FF7ABB
:10002000FF7BFFDBFEDAFAD9F6D8D52279FFD9D0EB
:10003000D500CD80D7110080D8110080D91100746F
:1000400080F591227440F592227420F5922278FF77
:1000500079FF7AFF7BFFDBFEDAFAD9F6D8A22279A4
PROGRAM 10
Program:
ORG 0000H
SJMP RED
ACALL DELAY1
SJMP ORANGE
ACALL DELAY2
SJMP GREEN
ACALL DELAY1
HEX FILE:
:10000000800A111B800B112C800C111B7480F59140
:10001000227440F592227420F5922278FF79FF7ABB
:10002000FF7BFFDBFEDAFAD9F6D8F22278FF79FF00
:05003000D9FED8FA2200
:00000001FF