How to determine who drives the clock ?

I have come to this problem where I wanted to go with synchronous UART between 2 peers for reliable communication.

The problem is how to determine who drives the clock ?

I mean it's a bi-directional communication. so for peer1, it will try to sync the clock to its TX line, and for peer2 it will try to do the same for its TX line. which results in a conflict for whom to drive the clock.
@Middleware & OS
Solution
In a synchronous UART setup where reliable bi-directional communication is required, the clock source needs to be clearly defined to avoid conflicts.
Was this page helpful?