thx for the code....can you have a look at this ...
DEFINE OSC 8
DEFINE HSER_TXSTA 24h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD 9600
DEFINE HSER_SPBRG 129
DEFINE HSER_CLROERR 1
sms:
HSEROUT ["AT" ,13,10]
hserin 5000,sms,[WAIT("OK")]
HSEROUT ["AT+CMGF=1" ,13,10]
hserin 5000,sms,[WAIT("OK")]
HSEROUT ["AT+CMGS=",34,"my number ",34,13,10]
hserin 5000,sms,[WAIT(">")]
HSEROUT ["BUTTON HAS BEEN",26,13,10]
pause 5000
end
it doesn't work (canot send sms ) ..but if i just use hserout and use pause instead of hserin .it work perfectly ...so...the problem must be at the hserin .
i try using 4 Mhz and lower baud rate ..also canot work ..
is there any problem in my code ??? thzzzz





Bookmarks