AN213 suggestion

This forum is for posts that might be considered off-topic but that may be useful or interesting to members. Examples include posts about electronics or programming in general, other microcontrollers or interesting devices, useful websites, etc.
Post Reply
dlh
Posts: 395
Joined: 15 December 2006, 12:12 PM
Location: ~Cincinnati

AN213 suggestion

Post by dlh »

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.
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: AN213 suggestion

Post by dkinzer »

dlh wrote:t might be helpful if AN213 included a non-inverting transistor switch circuit.
It does. See Figure 15 on page 11. The circuit that converts low voltage output to 5-volt output is reproduced below.
Attachments
Non-inverting level converter.
Non-inverting level converter.
non-inverting level converter.jpg (13.98 KiB) Viewed 5600 times
- Don Kinzer
dlh
Posts: 395
Joined: 15 December 2006, 12:12 PM
Location: ~Cincinnati

Post by dlh »

Ahhh! I just didn't read far enough - quitting after seeing the inverting switch on p6 but no non-inverting version of it. Thanks.
spamiam
Posts: 739
Joined: 13 November 2005, 6:39 AM

Post by spamiam »

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
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

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.
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.
- Don Kinzer
Post Reply