budhy
Advanced Member level 3
Code:
ORG 00H
JMP START
ORG 050H
START:
MOV P1,#01H
CALL SETTING_UART
MOV DPTR,#TABLE
CALL TX_STR
MOV P1,#81H
LOOP:
JMP LOOP
PrintChar:
CALL TX_CHAR
INC DPTR
TX_STR:
CLR A
MOVC A,@A+DPTR
JNZ PrintChar
RET
TX_CHAR:
JNB TI,$
CLR TI
MOV SBUF,A
RET
SETTING_UART:
MOV SCON,#50H
MOV TMOD,#20H
MOV TH1,#0FDH
SETB TR1
RET
; ORG 0A0H
TABLE:
DB "AT+CMGD=1",0DH,0AH,00H
END
Basically your code is right, I just make some improvement.
Are your sure your cell phone running on 9600 Baud?