voltage selector for microcontroller

Thread Starter

mik3ca

Joined Feb 11, 2007
189
I want to make a programmer for my microcontroller (at89c2051) that can program the chip and verify the code that is on the chip. Until now, I made a basic programmer that does not verify data.

According to the docs, I will need three voltage levels on the reset pin to take advantage of everything. 0v, 5v and 12v.

I learned from this circuit:



that I can easily make an inverter from transistors, and I think the transistors can also switch between two voltage levels, But I want to be able to somehow switch between three voltage levels. Is there a simple circuit I can make with the transistors that can accept two digital inputs of about 5V (logic high) or 0V (logic low) that can produce an output of 0V, 5V or 12V that the microcontroller requires based on the input?

thanks.
 

eblc1388

Joined Nov 28, 2008
1,542
Is there a simple circuit I can make with the transistors that can accept two digital inputs of about 5V (logic high) or 0V (logic low) that can produce an output of 0V, 5V or 12V that the microcontroller requires based on the input?
You can get that by using two transistors.

 

Attachments

Top