Hey,
So im trying to read data from a magnetic card reader. I have the reader hooked up to a ftdi board from arduino.
I only have the RX, TX and power pins connected. So i need to have any other pins connected?
im just trying to read the data first to make sure the uart is configured properly. I'm using PC4 and PC5 for RX and TX. I'm just trying to have uart demo echo back the data it receives.
I have re-configured the uart7 port as so
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART7);
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
//
// Enable processor interrupts.
//
ROM_IntMasterEnable();
//
// Set GPIO A0 and A1 as UART pins.
//
GPIOPinConfigure(GPIO_PC4_U7RX); //receiving from mag card reader
ROM_GPIOPinTypeUART(GPIO_PORTC_BASE, GPIO_PIN_4)//
// Configure the UART for 9600,
//
ROM_UARTConfigSetExpClk(UART7_BASE, g_ui32SysClock, 9600,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));
//
// Enable the UART interrupt.
//
ROM_IntEnable(INT_UART7);
ROM_UARTIntEnable(UART7_BASE, UART_INT_RX | UART_INT_RT);
The UART0 is also configured for portA TX as the demo already had for the terminal.
Thank you