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

Status
Not open for further replies.

fawadbutt

Member level 3
Joined
Oct 29, 2010
Messages
61
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,288
Location
Lahore, Pakistan, Pakistan
Activity points
1,754
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.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…