Code is now full workingfor people that want to do a sms controled......... thanks to all you that haved hellp me and care for starts as me.
Many thanks 2u
Code:@ Device HS_OSC ' High Speed Crystal define OSC 20 ' Check the spelling of OSC, must be in capital letter Include "modedefs.bas" ' Include serial modes ' Define LCD registers and bits Define LCD_DREG PORTB 'Lcd D 4-bit parallel register starts at PortB.4 to PortB.7 Define LCD_DBIT 4 Define LCD_RSREG PORTB Define LCD_RSBIT 2 Define LCD_EREG PORTB Define LCD_EBIT 3 Define LCD_COMMANDUS 2000 ' Command Delay (uS) Define LCD_DATAUS 50 ' Data Delay (uS) DEFINE OSC 20 'Define oscilator frequency DEFINE LCD_LINES 4 'Number lines on LCD DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1 DEFINE HSER_SPBRG 129 ' 9600 Baud @ 20MHz, 0.16% DEFINE HSER_CLROERR 1 ' Clear overflow automatically myarray var byte[62] TrisD.2=0 TrisC.6=0 TrisC.7=1 High portD.2 Pause 500 Low portD.2 Pause 500 High portD.2 Pause 500 Low portD.2 Pause 500 High portD.2 Pause 500 Low portD.2 Pause 500 LOOP: HSEROUT["AT+CPMS=",34,"SM",34,13] HSERIN 5000,LOOP,[WAIT("OK")] IP: HSEROUT["AT+CMGR=1",13,10] HSERIN 5000,IP,[WAIT("+CMGR: 1,,23"),skip 2, STR myarray\62] '079153 9 126010000240C915391663921010000807070819341400453FA1B0E IF myarray[6]="9" then goto success endif goto IP: success: High PortD.2 End


for people that want to do a sms controled......... thanks to all you that haved hellp me and care for starts as me.


Bookmarks