FvM, you mean it inverts in software the data sent from pin 18 of the microcontroller (post#1), which then drives the RxD pin in the D-sub9 connector, right?The AVR circuit in post #1 is apparently inverting RxD in software, it uses pin 18 instead of dedicated UART pin 14. At least AM7910 would need an external inversion, the modem chip has no option to provide it.
Ok, so in the modem circuit, I think, after your suggestions, I got it right this time.Hi,
The signal flow is:
from D-SUB --> R1 --> Microcontroller_pin15 (SW-RxD)
There is no hardware inverter. Thus the inversion needs to be done in SW.
Microcontroller_pin15 is not the dedicated UART_RxD. Thus one can assume that the UART is implemented in software.
(Not the internal HW periferal). Thus the polarity is not the typical UART polarity.
For the SW-UART the inversion is no big deal.
Klaus
Hi,
I see some issues:
* I think you mixed Tx and Rx. See my signal flow from post#22. The signal goes to RxD, but yours go to TxD
* The BJT 2N2907 needs a base resistor
* SCL as well as SDA need pull up resistors.
While you can route the incoming signal to many RxDs (inputs to microcontroller, USB_UART) .. you can´t do the same with several TxD =output signals. Combining multiple outputs create short circuit currents. Better use AND gate to combine them.
Didn´t go deeper..
Klaus
Hi,
OK. Maybe a misunderstanding from my side....
So Modem_RD is an output. It should go to
* RS232_output (according my understanding this is UART_Tx, but you named it Rx)
* and USB_UART_URx (which is an input)
.. so far the wiring is correct
Modem_TD is an input. it should get it´s data from
* RS232_input (according my understanding this is UART_Rx, but you named it Tx)
* and USB_UART_UTx (which is an output)
Here I see a problem. Two "sender" should go to one receiver.
I said you should use an AND to combine both signals.
I see you used a diode (next to USB_UART_UTx).
The way it is oriented it rather generates a WIRED_OR than an AND.
--> You have to rotate it.
--> you need to add a diode from RS232_input to the MODEM_TD node
--> and you need to add a Pull_up at the MODEM_TD node to prevent the signal from floating.
Mind: UART signals are idle HIGH.
I don´t know what´s the use of the BAT85 next to the text "TXD (UART)"
Klaus
But then you need another chip, don't you?The purpose of the RS232 connector is unclear. Presently the jumpers aren't fitted, so no problem. The modem can work with USB-to-UART bridge.
this "you are thinking" sounds like "guessing". But I just follow your schematic.Regarding the opposite markings of the UART pins you are thinking that the Utx of the USB chip goes to the RX of the UART.
All right I see what you mean now. Because the idle state is 5v...Hi,
this "you are thinking" sounds like "guessing". But I just follow your schematic.
USB_UART_UTx is connected (somehow) to th RS232_Rx.
* without the diodes the USB_UART overrides all informations coming from RS232. --> The RS232_Rx never can send data to the modem.
* with the diode installed (the way you did in your schematic), forces the modem_Td node to be HIGH. No change for the RS232_RX to work. Only if the USB_UART_UTx is LOW (which usually not is) the RS232_Rx can work.
AND gate: 2 inputs, 1 output
* Each sender sends it´s signal to the AND_inputs individually.
* the AND_output sends it´s signal to the receiver (what I guess the modem_TD is).
Klaus
Thanks for this response. Please do the same if you are not sure next time."You are thinking" I did not mean to be rude,
As many contributors stated since the thread start, the input from RS-232 jack has to be inverted.But then you need another chip, don't you?
I see what you mean, the receive pin.As many contributors stated since the thread start, the input from RS-232 jack has to be inverted.
If I omit this clamp diode, 5v will pass directly to the NPN base.It should work fine. The clamp diode to +5V can be omitted, because the transistor BE-diode is already limiting the voltage to 0.7 V. I would also increase input series resistor to 10k.
UPDATE:If I omit this clamp diode, 5v will pass directly to the NPN base.
And the NPN will be permanently ON.
Are you sure?
Thanks, I havent's thought that. Ok I re-inserted the negative clamp diode and changed the NPN base resistor to 10k.You should better follow my previous suggestions. -12V RS-232 level exceeds BE negative voltage rating and at least degrades transistor current gain or even damages the transistor.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?