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.

OMAP35X Application Processor UART1 in polling mode

Other Parts Discussed in Thread: TL16C750

Hi

I want to know the initialization of UART1 for polling tx/rx mode.

Awaiting for positive response.

initcode:

   UART_SYSC =0X02;

    while((UART_SYSS & 0X01) == 0X01);

    UART_IER = 0x00;
    UART_MDR1 = 0x7;    /* mode select reset TL16C750*/ /*Disable (default state)*/
    UART_LCR = UART_LCR_BKSE _A | UART_LCRVAL; 
    UART_DLL = 0;
    UART_DLH = 0;
    UART_LCR = UART_LCRVAL;   //0X03
    UART_MCR = UART_MCRVAL; //
    UART_FCR = UART_FCRVAL;  //0X01 | 0X02 | 0X03
    UART_LCR = UART_LCR_BKSE_A | UART_LCRVAL;
    UART_DLL = baud_divisor & 0xff;
    UART_DLH = (baud_divisor >> 8) & 0xff;
    UART_LCR = UART_LCRVAL;
    UART_MDR1 = 0;            /* /16 is proper to hit 115200 with 48MHz */

Please correct the initialization of code

Regards

Alex