Tool/software:
Hi, TI-Team.
Regarding cc2340R5-Q1,
I would like to communicate with UART in half-duplex mode, which seems feasible since DIO20 covers TXD and RXD functions.
How should I configure the port settings?
API: If I execute UART2_read() and UART2_write(), will the port setting be done by itself? If it is done by the user, when and how should the setting be done?
Best regards.
Hello,
I would recommend following the E2E thread linked. Please let me know if you run into any issues or need further assistance.
Additionally, see the UART2 Dynamic Pin Switching section of the user's guide. The section is focused on full-duplex, but may be helpful for half-duplex pin muxing.
Let me know if you have any problems.
Thanks,
Isaac
Hi, Isaac.
Thanks for the reply.
There is one thing I don't understand.
In the explanation within the document linked that you provided, the API: GPIO_setMux() is used,
but this API does not exist in SDK7.40.
What is the corresponding API?
Regards.
Hello,
For GPIO_setMux() on SDK 7.40, use the GPIO_setConfigandMux function.
The main difference between the two function GPIO_setConfigandMux sets the pin configuration as well. The pin configuration macros are listed within the GPIO Drivers API Guide.
Let me know if you have any questions!
Thanks,
Isaac