About 5 months back, Tibbo discontinued their EM202 NetModule. They promised a drop-in replacement by July 1 but it has yet to materialize so I am redesigning to use the Lantronix XPort.
All of the XPort pins are +5V tolerant (-03 model only) but the RS232 output is only 2.4V for logic high so I need to shift the level. I am modifying an existing design and have minimal space available to fit both a 3.3V regulator, caps and a level shifter. Since I am interfacing with the ZX-40a UART, I need a non-inverting level shifter. I will likely use a single OpAmp but it might be helpful if AN213 included a non-inverting transistor switch circuit.
AN213 suggestion
Re: AN213 suggestion
It does. See Figure 15 on page 11. The circuit that converts low voltage output to 5-volt output is reproduced below.dlh wrote:t might be helpful if AN213 included a non-inverting transistor switch circuit.
- Attachments
-
- Non-inverting level converter.
- non-inverting level converter.jpg (13.98 KiB) Viewed 5601 times
- Don Kinzer
Wow, this just shows how little my instincts are worth.
I would have supposed that when the 3.3v device set its pin to "high" or tristate, it would see something close to the 5 V due to the 5v pull up on the opther side. Granted, the transistor is switched off because there will be no base current, but I would have thought that the floating voltage at the pin on the 3.3v device would approach 5v.
Just goes to show that sometimes you need to try things out before assuming that good (or bad) things will happen!
-Tony
I would have supposed that when the 3.3v device set its pin to "high" or tristate, it would see something close to the 5 V due to the 5v pull up on the opther side. Granted, the transistor is switched off because there will be no base current, but I would have thought that the floating voltage at the pin on the 3.3v device would approach 5v.
Just goes to show that sometimes you need to try things out before assuming that good (or bad) things will happen!
-Tony
With no base current, the collector-emitter path is a very high resistance. If the low-voltage output is, in fact, in a tri-state condition, you're right that it will tend toward 5 volts. On the other hand, if it is being driven high (i.e. to 3.3V) then it will absorb the small amount of current flowing through the transistor without changing the output level.spamiam wrote:I would have supposed that when the 3.3v device set its pin to "high" or tristate, it would see something close to the 5 V due to the 5v pull up on the opther side.
- Don Kinzer