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.

AM335x UART Pulse duration requirement



The pulse duration requirement depends on the programmed baud rate.

 

To receive, does a bit that is out of the pulse duration requirement fail?

Table 19-6 on TRM (SPRUH73L) describes "Over sampling". If the over sampling is used, the pulse duration requirement should be looser. Do I misunderstand it?

 

Best regards,

Daisuke

 

  • Hi,

    Please check section 4.4.4.2.1 from the AM335X TRM Rev. L. It says:

    "When the UART is receiving, the bit is sampled in the 8th BCLK cycle for 16× over sampling mode and on the 6th BCLK cycle for 13× oversampling mode."

    Therefore oversampling does not mean the bit timing should be looser. Furthermore if the receiver character has all bits distorted in the same direction this would mean a total distortion of 4%*9=36%, respectively 5%*9=45% for the whole character (start bit + 8 data bits), and this is quite a loose tolerance.

  • Hi Biser-san,

    Thank you for your reply.

    The description that you showed explains UART in PRU. Can it be applied to general UART?

    Is the pulse duration requirement (0.96U-1.05U) the tolerance to correctly receive the whole character (start bit + 8 data bits)? When parity bit and stop bits are used, is it same?

    Best regards,

    Daisuke

     

  • Daisuke Maeda said:
    The description that you showed explains UART in PRU. Can it be applied to general UART?

    Yes, UARTs are the same.

    Daisuke Maeda said:
    Is the pulse duration requirement (0.96U-1.05U) the tolerance to correctly receive the whole character (start bit + 8 data bits)? When parity bit and stop bits are used, is it same?

    Yes, this tolerance is the same for each bit received. By the way my previous calculations are not correct. The same tolerance applies for the whole character (start + data + parity + stop bits) - allowed distortion is from -4% to +5%.

  • Hi Biser-san,

    Thank you for your reply.

    To sample the bit in the 8th BCLK cycle for 16× or the 6th BCLK cycle for 13×, does counting the sampling cycles in BCLK start after the falling edge of BCLK to the start bit was detected?

    I am concerned that the sampling cycle comes in first BCLK cycle or last BCLK cycle in the start bit.

    Best regards,

    Daisuke

     

  • Yes, the oversampling counter starts after the falling edge of the start bit has been detected.
  • Hi Biser-san,

    Thank you for your reply.

    Best regards,

    Daisuke