Pin switch control pin when sharing multiple drivers

Hello

In my board I am using an ic as a switch to control the routing of the TX and RX pins of the UART, due to the fact that the nRF9160 does not have more than 4 peripherals available.
For each of the external ic's I have created custom device drivers. Since the drivers are talking to the same UART I am looking for a solution on how I can control the external switch depending on which driver is accessing the UART at each time.

The following picture is a simple block diagram in order to demonstrate the overall connections.

Using this connections I am trying to solve the problem with the limited resources. Is this something feasible? if yes how would I control the control pin of the external switch?

Thank you

Parents
  • Hi,

    We do not have anything ready made for this, but as long as you know when you are using which of the external devices, you should be able to manage this and toggle a GPIO for he control pin. If you have enough pins on the nRF to connect both on separate pins, an alternative could be to re-configure the peripheral to use different pins when you need oto communicate with device A or B.

Reply
  • Hi,

    We do not have anything ready made for this, but as long as you know when you are using which of the external devices, you should be able to manage this and toggle a GPIO for he control pin. If you have enough pins on the nRF to connect both on separate pins, an alternative could be to re-configure the peripheral to use different pins when you need oto communicate with device A or B.

Children
No Data
Related