tony_lth
Advanced Member level 5
Hi, ALL,
I have a STM32 UART TTL signal, which is a 9pin signal, including DCD/RXD/TXD/DSR/DTR/CTS/RTS/RI/GND signlas.
Now I have two DB9 ports, which both can output the STM32 UART TTL signal.
And the 1st port have the high priority than the 2nd port.
I knew a design, that if detect the 1st port is inserted a effective cable, then switch the STM32 TTL signals to the 1st port.
If no connection on the 1st port, the 2nd port is used, and the STM32 signals are switched to the 2nd port.
But I don't know, how to detect the 1st port is connected or not?
Pls comment.
Thanks.
Tony Liu
- - - Updated - - -
Hi, ALL,
I have an idea, that is using the OR-gates to OR the 8 signals of the TTL signals.
If only one signal is high level, the OR gates will be high level signal, that will switch the SPDT IC to swicth the STM32 signals to the 1st port.
Is this idea ok?
Best,
Tony Liu
Attachments are the 4 input OR gates IC and 2 input OR IC for my idea.
I have a STM32 UART TTL signal, which is a 9pin signal, including DCD/RXD/TXD/DSR/DTR/CTS/RTS/RI/GND signlas.
Now I have two DB9 ports, which both can output the STM32 UART TTL signal.
And the 1st port have the high priority than the 2nd port.
I knew a design, that if detect the 1st port is inserted a effective cable, then switch the STM32 TTL signals to the 1st port.
If no connection on the 1st port, the 2nd port is used, and the STM32 signals are switched to the 2nd port.
But I don't know, how to detect the 1st port is connected or not?
Pls comment.
Thanks.
Tony Liu
- - - Updated - - -
Hi, ALL,
I have an idea, that is using the OR-gates to OR the 8 signals of the TTL signals.
If only one signal is high level, the OR gates will be high level signal, that will switch the SPDT IC to swicth the STM32 signals to the 1st port.
Is this idea ok?
Best,
Tony Liu
Attachments are the 4 input OR gates IC and 2 input OR IC for my idea.