hi this is the code just for the first step, whitch is to get de gps and disply in the lcd.
char i;
unsigned short j;
char strGPS[16];
void main (){
Usart_Init(4800);
do{
LCD_init(&portB); //Init sinaliza a configuração 'default' (D7,D6,D5,D4,E,RS)
delay_ms(1000);
Lcd_Cmd(LCD_CLEAR);
Lcd_Cmd(Lcd_Cursor_Off);
if (Usart_Data_Ready())
{
for (j = 0; j < 15; j++)
{
i = Usart_Read();
Lcd_Out(1,2,i);
strGPS[j]=i;
Lcd_Out(2,1,strGPS);
}
Lcd_Cmd(Lcd_Clear);
Lcd_Cmd(Lcd_Cursor_Off);
}
}while(1);
}
---------- Post added at 12:13 ---------- Previous post was at 12:12 ----------
i'm organizing the circuit to post.