Note : Pin connection should be in according to code below. if any confusion then ask in comments below...
This is Original List file data
A51 MACRO ASSEMBLER AUTOMATIC_DOOR_OPENING_SYSTEM 11/10/2014 22:59:44 PAGE 1
MACRO ASSEMBLER A51 V8.02b
OBJECT MODULE PLACED IN automatic door opening system.OBJ
ASSEMBLER INVOKED BY: C:KeilC51BINA51.EXE automatic door opening system.asm SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
1 ;##################################################################
2 ;############project:gsm based LOCK with LDR key input#############
3 ;##################################################################
4 ;R6,R7 FOR 1mS DELAY
5 ;R3,R4,R5 FOR 1S DELAY
6 ;---------------------------relays
00A0 7 MOTOR11 BIT P2.0
00A1 8 MOTOR12 BIT P2.1
9 ;---------------------------wire sensors
0090 10 IR1 BIT P1.0
0091 11 OPEN_STATUS BIT P1.1
0092 12 CLOSE_STATUS BIT P1.2
13 ;---------------------------BUZZER OUPUTS
00A6 14 BUZZER BIT P2.6
00A5 15 LED_RED BIT P2.5
00A7 16 LED_GREEN BIT P2.7
17 ;===============================
0000 18 ORG 0
0000 020030 19 LJMP MAIN ;RESET
20
0030 21 ORG 30H
0030 22 MAIN:
23 ;================================INITIAL SETTINGS
0030 758000 24 MOV P0,#0
0033 7590FF 25 MOV P1,#0FFH
0036 75A000 26 MOV P2,#0
0039 75B000 27 MOV P3,#0
28 ;************************************************************
29 ;************************************************************
003C C2A5 30 CLR LED_RED
003E C2A7 31 CLR LED_GREEN
0040 C2A6 32 CLR BUZZER
0042 C2A5 33 CLR LED_RED
0044 C2A0 34 CLR MOTOR11
0046 C2A1 35 CLR MOTOR12
36
37
38
39
0048 40 PROGRAM:
0048 C2A6 41 CLR BUZZER
004A 20900E 42 JB IR1,CLOSE
43
004D 44 OPEN:
004D 3091F8 45 JNB OPEN_STATUS,PROGRAM
0050 D2A0 46 SETB MOTOR11
0052 C2A1 47 CLR MOTOR12
0054 D2A7 48 SETB LED_GREEN
0056 C2A5 49 CLR LED_RED
0058 02004D 50 LJMP OPEN
51
005B 52 CLOSE:
005B 3092EA 53 JNB CLOSE_STATUS,PROGRAM
005E C2A0 54 CLR MOTOR11
0060 D2A1 55 SETB MOTOR12
0062 C2A7 56 CLR LED_GREEN
0064 D2A5 57 SETB LED_RED
0066 D2A6 58 SETB BUZZER
A51 MACRO ASSEMBLER AUTOMATIC_DOOR_OPENING_SYSTEM 11/10/2014 22:59:44 PAGE 2
0068 02005B 59 LJMP CLOSE
006B 020048 60 LJMP PROGRAM
61 ;*************************************************************
62 ;*************************************************************
63 ;=======================DELAY 1 SEC ================DELAY_1S
006E 7F01 64 DELAY_1S:MOV r7,#1 ;Value of R7=no. 0f Second delay for 12Mhz(1.0003S ACCURATE)
0070 7EFF 65 D1S0: MOV r6,#0ffh
0072 7DF5 66 D1S1: MOV r5,#245
0074 00 67 D1S2: NOP
0075 00 68 NOP
0076 00 69 NOP
0077 00 70 NOP
0078 00 71 NOP
0079 00 72 NOP
007A 00 73 NOP
007B 00 74 NOP
007C 00 75 NOP
007D 00 76 NOP
007E 00 77 NOP
007F 00 78 NOP
0080 00 79 NOP
0081 00 80 NOP
0082 DDF0 81 DJNZ r5,D1S2
0084 DEEC 82 DJNZ r6,D1S1
0086 DFE8 83 DJNZ r7,D1S0
0088 22 84 RET
85 ;=====================================================DELAY_XXXmS
0089 7F01 86 DELAY_1mS:MOV R7,#1 ;Value of R7=no. 0f mSecond delay for 12Mhz(1.000mS% ACCURATE)
008B 7EF8 87 D0: MOV R6,#248
008D 00 88 D1: NOP
008E 00 89 NOP
008F DEFC 90 DJNZ R6,D1
0091 DFF8 91 D2: DJNZ R7,D0
0093 22 92 D3: RET
93
0094 7FFA 94 DELAY_250mS:MOV R7,#250;Value of R7=no. 0f mSecond delay for 12Mhz(1.000mS% ACCURATE)
0096 7EF8 95 D250mS0: MOV R6,#248
0098 00 96 D250mS1: NOP
0099 00 97 NOP
009A DEFC 98 DJNZ R6,D250mS1
009C DFF8 99 D250mS2: DJNZ R7,D250mS0
009E 22 100 D250mS3: RET
101 ;===============================================INTERRUPT0
009F 102 OK:
103 END
A51 MACRO ASSEMBLER AUTOMATIC_DOOR_OPENING_SYSTEM 11/10/2014 22:59:44 PAGE 3
SYMBOL TABLE LISTING
------ ----- -------
N A M E T Y P E V A L U E ATTRIBUTES
BUZZER . . . . . . B ADDR 00A0H.6 A
CLOSE. . . . . . . C ADDR 005BH A
CLOSE_STATUS . . . B ADDR 0090H.2 A
D0 . . . . . . . . C ADDR 008BH A
D1 . . . . . . . . C ADDR 008DH A
D1S0 . . . . . . . C ADDR 0070H A
D1S1 . . . . . . . C ADDR 0072H A
D1S2 . . . . . . . C ADDR 0074H A
D2 . . . . . . . . C ADDR 0091H A
D250MS0. . . . . . C ADDR 0096H A
D250MS1. . . . . . C ADDR 0098H A
D250MS2. . . . . . C ADDR 009CH A
D250MS3. . . . . . C ADDR 009EH A
D3 . . . . . . . . C ADDR 0093H A
DELAY_1MS. . . . . C ADDR 0089H A
DELAY_1S . . . . . C ADDR 006EH A
DELAY_250MS. . . . C ADDR 0094H A
IR1. . . . . . . . B ADDR 0090H.0 A
LED_GREEN. . . . . B ADDR 00A0H.7 A
LED_RED. . . . . . B ADDR 00A0H.5 A
MAIN . . . . . . . C ADDR 0030H A
MOTOR11. . . . . . B ADDR 00A0H.0 A
MOTOR12. . . . . . B ADDR 00A0H.1 A
OK . . . . . . . . C ADDR 009FH A
OPEN . . . . . . . C ADDR 004DH A
OPEN_STATUS. . . . B ADDR 0090H.1 A
P0 . . . . . . . . D ADDR 0080H A
P1 . . . . . . . . D ADDR 0090H A
P2 . . . . . . . . D ADDR 00A0H A
P3 . . . . . . . . D ADDR 00B0H A
PROGRAM. . . . . . C ADDR 0048H A
REGISTER BANK(S) USED: 0
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)
This is HEX file data, Download file from below link
For any query, feel free to comment below.....
Posted By :
Mahesh Nigam
(Scientist)
2020-05-13 16:38
See Author's other Published Topics
Peoples
Peoples
Comments...
:
can u change your name from unique to ediat
Mahesh Nigam(Scientist):
#Dear Sumesh
Thanks for your advice but this is beyond the current topics. And its "IDIOT" not "ediat"...
ayya: is there any hexa value in this program ?
Mahesh Nigam(Scientist): it's a very old program, so let me check is it available in my computer.
ayya: thankyouu so much,
Jeorge Ban: not work, i put it in visual express 2010 it gives like more than 90 errors :( please help me or send me the fixed code.. thanks
Mahesh Nigam(Scientist): Don't used assembly code, it may arise lots of error due to dependent codes that was includes with this source code. Use hex code. It is used by many people and working correctly.
Jeorge Ban: Mr. Mahesh i need your help sir!!! actually i need and assembly code for automatic door opener as example and i need it to be worked in visual c++ 2010 express, if u can provide me one or at least give me any resources that may be helpful for my project, because we don't do it in actual, we just need one example for our semester project to provide an assembly code from visual c++ express 2010... THANKS!
Mahesh Nigam(Scientist): This code was coded on keil software directly in assembly language. I don't have any visual c++ code of it
Rohit: Sir, it`s showing error in proteus 8.11 and it`s not running :(
Rohit: what does IR1 means in the code?? please soon :(
Mahesh Nigam(Scientist): infra red sensor 1
Mahesh Nigam(Scientist): IR1=Infrared sensor 1, i never run it on proteus. This code development form my many previous codes, that's why there be some naming who's actual meaning may different
Gayathri: Can I get the circuit diagram corresponding to this code
Mahesh Nigam(Scientist): i Don't have its circuit diagram... but you can design it just by go through code and find the input-output port-pins
Write Your Comment