This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

lm4f132h5qd irda not working properly

hello,

i am using lm4f132h5qd.

in my design ir module transceiver is connected to the uart 2 of microcontroller.i have wriiten the codes for ir section but it is not working on the tx pin of microcontroller there is no output instead uart0 is working fine,my codes are:

void InitHardware(void)
{

// Set the clocking to 50 mhz.
SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ);

// Initialize UART2 as irda at 9600 8-N-1.
//Enable UART Peripheral
SysCtlPeripheralEnable(SYSCTL_PERIPH_UART2);

//Enable GPIO-Port
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);

// Set GPIO D6 as UART pins (nur Receive-Pin)
GPIOPinConfigure(GPIO_PD6_U2RX);
GPIOPinConfigure(GPIO_PD7_U2TX);

GPIOPinTypeUART(GPIO_PORTD_BASE, GPIO_PIN_6);
GPIOPinTypeUART(GPIO_PORTD_BASE, GPIO_PIN_7);


//UART irDA mode enable
UARTEnableSIR(UART2_BASE, 0);


UARTConfigSetExpClk(UART2_BASE, SysCtlClockGet(), 9600,(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE));
UARTDisable(UART2_BASE);
UARTEnable(UART2_BASE);

}

//main

while(1)

{

UARTCharPut(UART2_BASE, 'a');

but controller is not transmitting the value and the tx pin is always 0.