shafqatkhan
Newbie level 2
a1018s at
i am trying to send sms using microcontroller i wan to connect my erricsson A1018s with microcontroller i send simple "AT" command to get "OK" i am unable to get any response my code is given below
org 0h
mov TMOD,#20h
mov TH1,#-3
mov SCON,#50h
mecome:
CLR TI
CLR RI
LCALL SYCRONIZE
SETB TR1
mov SBUF,#"A"
here: JNB TI,here
CLR TI
mov SBUF,#"T"
again: JNB TI,again
CLR TI
mov SBUF,#0Dh
last: JNB TI,last
CLR TI
LCALL DELAY
wait: JNB RI,wait
mov A,SBUF
mov R1,A
mov P1,R1
CLR RI
wait2: JNB RI,wait2
mov A,SBUF
mov R2,A
mov P1,R2
CLR RI
LJMP mecome
SYCRONIZE: mov R3,#128
SETB TR1
loop:
mov SBUF,#55H
sabar: JNB TI,sabar
CLR TI
djnz R3,loop
RET
DELAY:
mov R4,#0FFH
for: djnz R4,for
RET
end
plz tell me what i do to solve my problem
anybody who has done this project please contact me
my email is
shafqat.ullah@hotmail.com
i am trying to send sms using microcontroller i wan to connect my erricsson A1018s with microcontroller i send simple "AT" command to get "OK" i am unable to get any response my code is given below
org 0h
mov TMOD,#20h
mov TH1,#-3
mov SCON,#50h
mecome:
CLR TI
CLR RI
LCALL SYCRONIZE
SETB TR1
mov SBUF,#"A"
here: JNB TI,here
CLR TI
mov SBUF,#"T"
again: JNB TI,again
CLR TI
mov SBUF,#0Dh
last: JNB TI,last
CLR TI
LCALL DELAY
wait: JNB RI,wait
mov A,SBUF
mov R1,A
mov P1,R1
CLR RI
wait2: JNB RI,wait2
mov A,SBUF
mov R2,A
mov P1,R2
CLR RI
LJMP mecome
SYCRONIZE: mov R3,#128
SETB TR1
loop:
mov SBUF,#55H
sabar: JNB TI,sabar
CLR TI
djnz R3,loop
RET
DELAY:
mov R4,#0FFH
for: djnz R4,for
RET
end
plz tell me what i do to solve my problem
anybody who has done this project please contact me
my email is
shafqat.ullah@hotmail.com