SIM340z and pic16f877a

Status
Not open for further replies.

bahaahathout

Newbie level 4
Joined
Jan 26, 2013
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,327
hello i need helpin my project that have AT commands
in fact my project is a little to wide but first of all iam learning is how to make a phone call by sending AT commands from my 16f877a pic to the GSM module then i will move on to send data i get from the pic to a specific URL to be analyzed anws iam using GSM340Z and Smart SIM340 from mikroE as a GSM BOARD and the 16f877a pic first of all i want you to help me establish a call from that module and i may continue the rest by my self this is the first code i wrote the blinking ports is just a notifier that the program is moving on nothin more

Code:
void main() {
trisB=0b00000000;
portB=0b00000000;
USART_Init(9600);
delay_ms(1000);
portB=~portB;
delay_ms(3000);
portB=~portB;
USART_Write("AT");
portB=~portB;
delay_ms(2000);
USART_Write("AT+GSN");
portB=~portB;
delay_ms(2000);
USART_Write("ATD71353153;");
portB=~portB;
delay_ms(2000);
while(1){
portB=~portB;
delay_ms(500);
}
}

nothing is happening when i turn on the pic
plz i really need your help thanks in advanced.
 

its not working code
write"at" like this

Code:
usart_write('a');
usart_write('t');
usart_write('\r');
usart_write('\n');
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…