This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GPS SERIAL DATA PROBLEM 8051

hi, i am doing gps tracking device prject but i am unable to receive any data from my EM-506 Module, i am using to the following piece of code to capture data:
void Serial_Init()
{ TMOD = 0x20; TH1 =0xF4; SCON = 0x50; TR1 = 1;
}

rx_data(void)
{ char x; while(RI==0); x=SBUF RI = 0; //lcd("2"); return x;
}

i noticed that the programm is stuck because RI never changes his state but when i measure the the voltage of p3.0 (RX pin of 8051) it changes ("0" and "1") so the cpu receives data from the gps.

thanks in advance.

Parents Reply Children