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.

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
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: 81

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top