Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Pic16f877a and SIM340Z

Status
Not open for further replies.

bahaahathout

Newbie level 4
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:
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.
 

yes that is the board for this program i used mikroC for pic but i also have MikroC pro for pic but it always give me errors for UART
 

mikro C for pic is 8.1.0.0
mikro C Pro for pic is 1.65
and the sample code was a little bit hard for me couldnt understand it since iam a beginner in UART and AT commands more over there is no diagram to connect the parts
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top