Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

GSM,,,Sim 900,,,msg receiving problem

Status
Not open for further replies.

fawadbutt

Member level 2
Joined
Oct 29, 2010
Messages
52
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,288
Location
Lahore, Pakistan, Pakistan
Activity points
1,627
hy:
i m reading the GSM sim900 data on interupt after
AT+CMGR=1
but Garbage come on my lcd ,,,can any one chack my receiving code,,
uC 16f877A,,,,Compiler Hitech.
HTML:
//////////////Serial Interrupt Setting/////////////////////
//////////////////Rx Interupt////////////////////////////
void interrupt receive(void)
{	
	if(RCIE && RCIF)
	{
		unsigned int temp=RCREG;
		if(temp!=0x0D){Rx_Buff[Rx_Data]=temp;Rx_Data++;}
		else{Rx_Buff[Rx_Data]='\0';Rx_Data=0;String_C=1;}
		RCIF=0;		
	}
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top