GSM Modem Interfacing with PIC18F4550 Microcontroller

Status
Not open for further replies.

teosuchin

Newbie level 3
Joined
Feb 21, 2014
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
24
Dear all:-D

I am currently doing a final year project. I am going to use the GSM modem to interface with the pic18f4550 without using rs232 and max232 by using TTL outputs of the modem. could you please help and send me about the code in MP Lab (C compiler) that can send and receive SMS dan calling with GSM module. Thanks in advance :razz:
 

Dude first try to use GSM Modem Interfaced with PC via UART to USB Board,
Use Hyperterminal or Tera Term to write/send AT Commands to GSM and check for first send SMS then receive and Call
Like I am posting how to send SMS
Code:
AT   //Followed by CR & LF The response should come" OK " 
AT+CMGF = 1 //Followed by CR & LF 
//This configures in TEXT Mode
AT+CMGS = "phone number"  //Follwed by CR & LF
//now response will come like this char "">""
//If this comes type any text message and Press ( ctrl+Z )
// Message will be sent
Then do same thing with using PIC Mcu like sending the AT Command using Tx Pin of PIC to Rx of GSM and check then step by step go ahead ,
 
thx...now i have programming in pic16f887, how can i convert it to pic18f4550...which language i need to change...
 

Attachments

  • gsm in pic16.txt
    7.4 KB · Views: 119

Code:
void pic_init(void)
{
TRISA=0b00101111;
TRISC=0b10000000;
ANSEL=0b00000000;  //WHY THIS HAS BEEN USED  ?????
ANSELH=0b00000000;	  //SAME Arg
OPTION_REG=0b00000000;					//Internal instruction clock
INTCON=0b11100000;					//Enable Global, TMR0 Interrupt
PIE1=0b00100000;						//Enable RX interrupt	
PORTA=0b00010000;
PORTC=0b00000000;

}
 

that is language for GSM in pic16...i dint know very well about those language
 

In MP lab C18 Compiler First make functions for UART Initialization,and Receive characters and Transmit Characters then interface GSM with the same
like send_string("AT\r");

But I have not done up with the MULTIPLE Receiving of Characters via UART in PIC ,
In AVR I know that
So first you make those functions or else there is a LIBRARY also there in C18 Compiler named as "uart" you can use that also
 

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