Hi,
I test uart on tiva series launchpad and later we are using tm4c1231h6pm for our development. I am facing problem in uart1 . If i configure the uart 0 with out interrupt i can able to transmit the data. but if i configure the uart 0 as interrupt method i cant able to transmit the data as well i am not getting receive interrupt also.
case 1: configured as interrupt ( but transmit and receive interrupt is not happening)
Uart_init()
// Enable UART1
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART1);
// Enable PortC
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
// Configure the pin multiplexing
ROM_GPIOPinConfigure(GPIO_PC4_U1RX);
ROM_GPIOPinConfigure(GPIO_PC5_U1TX);
// Configure the type of the pins for UART Tx/Rx
ROM_GPIOPinTypeUART(GPIO_PORTC_BASE, GPIO_PIN_4|GPIO_PIN_5);
clck=ROM_SysCtlClockGet();
ROM_UARTConfigSetExpClk(UART1_BASE, ROM_SysCtlClockGet(), 9600,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |UART_CONFIG_PAR_NONE));
// Init the console
//UARTStdioInit(0);
UARTFIFODisable(UART1_BASE);
// Enable the UART1 interrupt handler
ROM_IntEnable(INT_UART1);
ROM_UARTIntEnable(UART1_BASE, UART_INT_RX|UART_INT_RT );
if i configure like this i cant able to transmit and receive interrupt is not happening.
---------------------------------------------------------------------------------------------------------------------------------------------------
case 2: without interrupt method ( transmit happening).
below code is configured without interrupt method, by this method i can able to transmit.
// Enable UART1
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART1);
// Enable PortC
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
// Configure the pin multiplexing
ROM_GPIOPinConfigure(GPIO_PC4_U1RX);
ROM_GPIOPinConfigure(GPIO_PC5_U1TX);
// Configure the type of the pins for UART Tx/Rx
ROM_GPIOPinTypeUART(GPIO_PORTC_BASE, GPIO_PIN_4|GPIO_PIN_5);
clck=ROM_SysCtlClockGet();
ROM_UARTConfigSetExpClk(UART1_BASE, ROM_SysCtlClockGet(), 9600,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |UART_CONFIG_PAR_NONE));
// Init the console
plz help me on resolveing this issue.
case 1 is working in evaluation board launchpad, but its not happening in my development board ( tm4c1231h6pm).
thanks in advance.