I need to interface to two different devices using a single wire bi directional serial interface.
As far as the communication goes both of these devices utilise the same protocol so they respond to the same commands in the same way - obviously when addressed!
However one device signals at 0 and 5V whilst the other signals at 0 and 12V. Whilst in practice this does work it only does so intermittently.
I should point out that both these devices are designed to work on a bus with up to 128 similar devices, and that the 12V device will see anything over about 2V as a mark so it does not need a 12V input signal!
When no communications are in place these devices pull the serial line up so one device will pull it up to 12V and the other to 5V. The 12V device is able to pull the line low when required however the 5V device struggle to pull the line low as it is being held up at 12V.
So what I need to do is somehow clamp the serial line to the 12V device so it only pulls the bus up to 5volts but whilst still allowing the other devices to pull it down and also allowing the signal the other side of the clamp to be pulled down by the host controller.
Any ideas muchly appreciated.
As far as the communication goes both of these devices utilise the same protocol so they respond to the same commands in the same way - obviously when addressed!
However one device signals at 0 and 5V whilst the other signals at 0 and 12V. Whilst in practice this does work it only does so intermittently.
I should point out that both these devices are designed to work on a bus with up to 128 similar devices, and that the 12V device will see anything over about 2V as a mark so it does not need a 12V input signal!
When no communications are in place these devices pull the serial line up so one device will pull it up to 12V and the other to 5V. The 12V device is able to pull the line low when required however the 5V device struggle to pull the line low as it is being held up at 12V.
So what I need to do is somehow clamp the serial line to the 12V device so it only pulls the bus up to 5volts but whilst still allowing the other devices to pull it down and also allowing the signal the other side of the clamp to be pulled down by the host controller.
Any ideas muchly appreciated.