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
not all the phone can use 9600 baud rate? got different?budhy said:Are your sure your cell phone running on 9600 Baud?
Use HyperTerminal to check the baudratehow can check it running on 9600 baud rate or not
the computer side, i am using other cell phone connect by usb to computer, then use vb to receive msg... i done this part already.budhy said:Use HyperTerminal to check the baudratehow can check it running on 9600 baud rate or not
MBUS is bi-direction Asynchro Serial BUS, multiplexed TX-RX linehow to understand f-bus and M-Bus.. i have NOKIA 1100
DELAY:
MOV R5,#0H
DL0:
MOV R7,#0H
DL1:
MOV R6,#0H
DJNZ R6,$
DJNZ R7,DL1
DJNZ R5,DL0
RET
This is not GSM modem vs 8051 speed problem, as they are communicate thru 9600 baud serial line.is that because GSM modem faster than 8051?
so i cant receive signal from GSM modem?
RECEIVE:
JNB RI,$
CLR RI
MOV A,SBUF
CJNE A,#'W',RECEIVE
;
MOV P2,A ;DISPLAY
MOV B,#07H ;DISPLAY
MOV P1,B ;DISPLAY
LOOP:
JMP LOOP
MOV R0,#30h
CLR A
Clear:
MOV @R0,A
INC R0
CJNE R0,#50h,Clear
MOV R0,#30h
RECEIVE:
JNB RI,$
CLR RI
MOV A,SBUF
MOV @R0,A
INC R0
CJNE R0,#50h,RECEIVE
;
MOV P2,A ;DISPLAY
MOV B,#07h ;DISPLAY
MOV P1,B ;DISPLAY
LOOP:
JMP LOOP
i am using Siemens MC35i GSM modem. i had test before using Hyperterminal with baud rate 9600. able to receive and send msg. is that means it was able communicate in baud rate 9600?1. Are you sure your Nokia operate at 9600 baud? There are a feature on Nokia to setup communicate baud rate. Check it
default setting in Siemens Mc35i GSM modem, AT+CMGF is set to '1'.2. Are you sure your Nokia operate on Text Mode SMS (not PDU mode)?
capital 'W', ascii code (57H)3. 'W' (capital W) is different from 'w', which one do you mean?
sorry, this is the main problem i had met.after that inspect content of internal RAM 30h .. 4Fh, and let me know
RECEIVE:
JNB RI,$
CLR RI
MOV A,SBUF
MOV P2,A ;DISPLAY
MOV B,#07H ;DISPLAY
MOV P1,B ;DISPLAY
LOOP:
JMP LOOP
Yes, I think you have to test it on the real 8951 platform, not on a simulatori dun know how to test UART in simulation program. i am using AVSIM51.
i need to burn into my 8951 to test it.
I never use simulator, especially AVSIM51.em, sorry about that. how can i test in software? thanks a lot.
is tat AVSIM51 possible to do that?
wcgan said:sorry about that, i dun know where should i post this topic..
i just wan do a simple thing ..
connect cell phone with microcontroller 8051 to send a msg ...
how can i connect it?
can... anyone answer me?
thanks a lot.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?