Part Number: EK-TM4C123GXL
Tool/software: Code Composer Studio
Hi
I am having a connection with uart (interrupt) to a GPS module and everything works fine except for I am getting a weird reading on the serial console.
I want to know how to get like a useful type of the coordinates sent by the GPS
here's the code for UART configuration
// uart0 configuration -> pc serial
void ConfigureUARTSerial(void) {
// uint32_t g_ui32SysClock = MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
// SYSCTL_OSC_MAIN | SYSCTL_USE_PLL |
// SYSCTL_CFG_VCO_480), 120000000);
// Enable the GPIO Peripheral used by the UART.
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
// Enable UART0
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);
// Configure GPIO Pins for UART mode.
ROM_GPIOPinConfigure(GPIO_PA0_U0RX);
ROM_GPIOPinConfigure(GPIO_PA1_U0TX);
ROM_GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
// Initialize the UART for console I/O.
UARTStdioConfig(0, 4800, 120000000);
}
and here's the code for ISR
//PP0 -> RX , PP1 -> TX
void GPSPosition(void)
{
uint32_t ui32Status;
ui32Status = UARTIntStatus(UART6_BASE, true); //get interrupt status
UARTIntClear(UART6_BASE, ui32Status); //clear the asserted interrupts
gucRxChar = UARTCharGet(UART6_BASE);
// printf("Coordinate : %c",gucRxChar);
// i want to print the content here to the serial console
UARTCharPutNonBlocking(UART0_BASE, gucRxChar);
}
here how the output looks like
thanks in advance