Hello everyone,
I am building a single NPN BJT (MMBT2222A:
http://www.diodes.com/_files/datasheets/ds30041.pdf) level shifter between two circuits of different operating voltages, specifically for the UART interface. The design is based on an old work in which the module's UART operated at 2.8V, but the new one's UART operates at 1.8V typically with 2.1V maximum. (See attached block diagram)
In order to verify that the shifting will occur with new change in the module's UART voltage level, I connected the shifting circuit, as shown in the attachements, and did a physical test first.
Using an oscilloscope to display the output, I found that the signal switches from 0V to 2.44V contrary to the expected value of ~1.8V. When the circuit is tested the other way around (shifting from 1.8V to 3.3V), it works fine.
I increased the supply voltage (going from 1.8V to 2.8V) at the module side and I noticed that the output signal and the supply starts to converge, hence why the old design (2.8V) worked fine. The next step was to simulate the circuit in Spice. I downloaded a spice model of the aforementioned transistor from the manufacturer's website and simulated the circuit. At the output, it showed a transition from 0V to 2.34V, almost close to the actual result of 2.44V. I started playing with the value of R1 and I noticed that while it decreases, the output starts to converge down to 1.8V.
In this situation, I'm agnostic in respect to why the output of the circuit behaves in this way. Could it be because at a supply of 1.8V and with a 4.7K pull-up resistor (R1), the transistor will work in the active region when there's a 3.3V pulse at the emitter? I expect that it should be working in the cutoff region at this condition.
I hope you point me at which parameters I have to look at. I don't have much experience reading BJT's datasheets and I always worked according to rule of thumbs and trial and error.