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.

CC2340R5-Q1: pulese width measure

Part Number: CC2340R5-Q1
Other Parts Discussed in Thread: CC2340R5

Tool/software:

Hi

We are considering measuring the bit rate of the external IC in UART communication and adjusting the bit rate of the CC2340R5 to match the measured rate for our communication specifications.

We are considering a bit rate equivalent to 2 microseconds as our measurement specification. Please let us know a good method using a driver.

We are using SDK version 7.40.

Regards.

  • Hello, 

    Are you looking for a driver that will measure the bit rate, then allow UART to adjust to the new bit rate or are you looking for a driver that can match a 2-microsecond bit rate? 

    The UART driver can achieve a maximum baud rate of 3Mbaud. For a bit rate equivalent to 2 microseconds, the baud rate will need to be approximately 0.5 MBaud. Please refer to the UART drivers API guide for more information. If I misinterpreted your question, please let me know!

    Thanks, 
    Isaac

  • Thank you for your reply.

    However, the way I asked my question was not clear, and the answer wasn't what I was looking for.

    What I want to know is how to communicate between CC2340 and another IC via UART, considering the clock tolerance drift of the other IC.

    Therefore, I am planning to output a dummy signal (e.g., 0xAA) from the other IC before data communication.

    I want to measure the pulse width of that dummy signal with the CC2340 and convert that to the UART bitrate.

    This is what I want to do. So, is there a method to measure the pulse width of a dummy signal (around 500kbps) with the CC2340?

    I think software might not be sufficient, so if there is a feature in hardware (such as timer capture) or a driver, please let me know how to implement it.

    Thank you.

  • Hello, 

    I am going to close this ticket since you moved to a new E2E thread. I will provide a response there. 

    Thanks, 
    Isaac