Downuri
Newbie level 4
Hello,
i have a problem with the gsm and the pic , i want to send a sms with gsm + pic but it's doesn't work i have this code :
but it doesn't work , i have conected like this : **broken link removed**
i do the connection :
M95 towards pic16f877A
TX ==> RC7
RX ==> RC6
5V ==>5V
GND==>GND
Stat==>RB4
PWK==>RB5
I'm actually blocked but i don't know why , the program is correct ?
GND ==> GND
i have a problem with the gsm and the pic , i want to send a sms with gsm + pic but it's doesn't work i have this code :
Code:
#include <16F877A.h>
#fuses HS,NOWDT,NOPROTECT,PUT,NOBROWNOUT,NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600,xmit=PIN_C6,rcv=PIN_C7)
#include <LCDPICDEM2006.c>
void main()
{
SET_TRIS_A(0x0d);
printf("AT\r");
delay_ms(1000);
printf("AT+CSCS=\"GSM\"");
delay_ms(1000);
printf("AT+CMGF=1\r"); //texte mode
delay_ms(1000);
printf("AT+CMGS=+33665343539\r");
delay_ms(1000);
printf("teste");
delay_ms(1000);
putchar(0x1A);
while(TRUE);
}
i do the connection :
M95 towards pic16f877A
TX ==> RC7
RX ==> RC6
5V ==>5V
GND==>GND
Stat==>RB4
PWK==>RB5
I'm actually blocked but i don't know why , the program is correct ?
GND ==> GND