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.

AM180x: UART timing for receiving

Genius 5785 points
Other Parts Discussed in Thread: OMAPL138

Hello,

I'd like to know the details about timing behavior for recieving data on AM180x UART module because our system is like noisy condition. My understanding is below. Is it correct? Please give me some advice.

BCLK has been driving and RX data is high level. Then RX data is changed state from high to low. The falling edge of BCLK which is immediately after changing state of RX detects low level. This BCLK cycle is the 1st for sampling. If RX data at falling edge of the 8th BCLK is low, the module detects a start bit (MDR.OSM_ SEL==0, 16x mode). If RX data from the 1st to the 15th BCLK are low, but RX data at the 16th BCLK is high, the module can recognize a start bit correctly, can't it? The D0 bit which is next a start bit is sampled at falling edge of the 24th BCLK? (24=16+8 in 16x mode)

Regards,
Kazu

  • Hi Kazu,


    I'd like to know the details about timing behavior for recieving data on AM180x UART module because our system is like noisy condition. My understanding is below. Is it correct? Please give me some advice.


    What type of OS are you working ?
    Starterware (bare code) or Linux ?

    If it is linux, have you tried to test it in starterware ?

    processors.wiki.ti.com/.../StarterWare
    software-dl.ti.com/.../index_FDS.html

    Which UART are you seeing this noisy behavior ?
    UART0, UART1, UART2 ?

    Have you tested other UARTs for this behavior ?
  • Hello Titus,

    Thank you for your reply. I have a development achievements for AM180x with RTOS and original drivers. I'm starting to simulate that AM180x is in like noisy environment for next development. Would it be possible for you to give me an advice like below?
    e2e.ti.com/.../1413916

    Regards,
    Kazu

  • Hi Kazu,

    In AM180x and OMAPL138, the ARM cores are the same. So you can refer to the uart example code ( given in the starterware package ) and its configuration and compare it with your code.

    You can download the starterware package from this website ( http://www.ti.com/tool/starterware-dsparm ) and after installation you will find the source code at C:\ti\OMAPL138_StarterWare_1_10_04_01\examples\lcdkOMAPL138\uart.

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hi Kazu,

    In AM180x and OMAPL138, the ARM cores are the same. So you can refer to the uart example code ( given in the starterware package ) and its configuration and compare it with your code.

    You can download the starterware package from this website ( http://www.ti.com/tool/starterware-dsparm ) and after installation you will find the source code at C:\ti\OMAPL138_StarterWare_1_10_04_01\examples\lcdkOMAPL138\uart.

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hello Shankari,

    Thank you for your reply, but I think I'm familiar with StarterWare. My concern about UART module is not its control method but its internal operation. Could you give me information about it?

    Regards,
    Kazu

  • Hello,

    Is there anyone who can help me about the internal operation of UART module?

    Regards,
    Kazu

  • Hi Kazu,


    I have a development achievements for AM180x with RTOS and original drivers.


    Could you direct me the page where you got this RTOS example code for UART.
    I don't think, we have RTOS example code for ARM.
  • Hello Titus,

    I'm sorry, but I can't tell you the detail about our RTOS. This RTOS as light scheduler is free and isn't made from TI. I hope this answers your question.

    Regards,
    Kazu

  • Hi Kazu,

    Thanks for your support.

    We may not able to support RTOS UART custom code other than TI. If possible, please share the code. As per our knowledge, we do not have any RTOS UART example code for ARM.

    Thanks for your understanding,

    Regards,
    Sivaraj K