help for sending sms from mcu

Status
Not open for further replies.

cllunlu

Member level 4
Joined
Nov 21, 2006
Messages
76
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,900
hi firends.I have tried send sms by hyper terminal from siemens c55 cellphone and I wanna do it by pic16f876.I have writed this code.but it havent send sms yet.is it right?and my shematic is here

( https://obrazki.elektroda.pl/72_1182775382.jpg)

is it right too?
plz help me








#include <16f876.h>
#fuses HS,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD
#use delay (clock=20000000)

#use rs232 (baud=9600, xmit=pin_C6, rcv=pin_C7, parity=N, stop=1)

unsigned char mesaj_gonder[] = "AT+CMGS=19";
unsigned char mesaj[] = "0011000C910945447198660000AA05E8329BFD06";



void main ( )
{
setup_spi(FALSE);
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_ccp1(ccp_off);
setup_ccp2(ccp_off);

set_tris_c(0x80);



puts(mesaj_gonder); //AT+CMGS=19
putchar(0x0D);
delay_ms(3000);
puts(mesaj);
putchar(0x1A);
putchar(0x0D);
}

[/img]\]
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…