How to invert signal voltage

Thread Starter

engr_david_ee

Joined Mar 10, 2023
358
I have a status and monitoring signal defined with two voltage levels -5 V and 0 V. I need to convert these voltage levels into 0 V and 3.3 V such that they are readable by MCU. The signal level -5 V should be transform to 0 V and the 0 V should be transform to 3.3 V. Which device should I use ?
 

MisterBill2

Joined Jan 23, 2018
27,159
There have been level shifting ICs around for many years. I am not sure which, if any, can handle a negative input voltage, though. The selection will depend on if the data input can sink current or source current in either the hi or low modes.
It will be a non-inverting level shifter. If the signal can sink current , then a grounded common base PNP transistor can do it with only a pull-up to 3.3 volts thru a collector resistor. When the emitter is low, base current can flow and so the collector is pulled down. when the emitter is hi the transistor is cut off and the collector is pulled high.
 

MrChips

Joined Oct 2, 2009
34,626
I have a status and monitoring signal defined with two voltage levels -5 V and 0 V. I need to convert these voltage levels into 0 V and 3.3 V such that they are readable by MCU. The signal level -5 V should be transform to 0 V and the 0 V should be transform to 3.3 V. Which device should I use ?
Show us the circuit that is generating -5 V. That is unusual today.
 

MisterBill2

Joined Jan 23, 2018
27,159
OK, Danko got it right!! Not sure why I suggested a PNP transistor, it must have been too late in the evening. BUT that is exactly the circuit to use.
 

0ri0n

Joined Jan 7, 2025
160
Another option would be a N-Channel JFET in common source configuration with a drain pullup resistor to 3.3V. It is inverting but the status/monitor output doesn't have to sink (or source) current.
 
Top