Tool/software:
Dear Sir/Madam,
I try to run uart on this controller.
I have two packages One is 28 Pin and second one is 48 Pin.
In both controller uart 3 is running properly, but uart 0 and uart 1 not running properly.
I just try to run echo program on every uart but there is some problem in configuration setting so program not running properly.
I attach the terminal photo in which we try to echo character 'a' but we are not getting return 'a'.

We are using external Crystal of 16MHz. We have already run other peripherals like LED, alphanumeric Display and other stuff.
Also we share a code for reference which we use to try to run the uart.
void uart_init(UART_Regs *uart, uint32_t baud)
{
uart->CLKSEL = DL_UART_CLOCK_BUSCLK;
DL_UART_disable(uart);
uart->CTL0 = (DL_UART_DIRECTION_TX_RX);
uart->LCRH = (DL_UART_WORD_LENGTH_8_BITS);
uart->CTL0 |= DL_UART_OVERSAMPLING_RATE_16X;
uart->IBRD = 26;
uart->FBRD = 3;
set_baud_rate(uart, baud);
/* Configure Interrupts */
uart->CPU_INT.IMASK = DL_UART_INTERRUPT_RX;
DL_UART_Main_enable(uart);
if(uart == UART3)
{
NVIC_ClearPendingIRQ(UART3_INT_IRQn);
NVIC_EnableIRQ(UART3_INT_IRQn);
}
else if (uart == UART0)
{
NVIC_ClearPendingIRQ(UART0_INT_IRQn);
NVIC_EnableIRQ(UART0_INT_IRQn);
}
}
This is code we use to test uart.
When we pass uart 3 in this fuction then uart 3 runs properly but when we use any other uart (Ex uart 0 and uart 1).
It is not working properly.
We also just try to transmit the string but there we also get garbage value on terminal.
Please help to rectify the issue.
