Wichit Sirichote, email@example.com
There're many, who built the Easy Programmer or C-52 EvaluationBoard, asking for the RS232C level converter chip, DS275. Many have changedto MAX232 instead, because of not available in his home. Here is anothersimple and cheap circuit using small signal transistor providing TTL toRS232C level converter.
A circuit diagram shown above was used two small signal transistor,NPN and PNP transistors. Dash line separate transmitter and receiver circuit.For those who need only transmitter circuit can use above circuit (andGND (5) signal ). Technically the RS232C is -3V to -12V for logic '1' and+3V to +12V for logic '0'. The transmitter circuit uses PNP transistor,BC557. While in mark state the TxD signal is logic '1', Q1 turns off. TxD(pin3) then provides -9V (depends on what converter chip being used forCOM1, say) to RxD (pin2). For space state, TxD control signal then becomeslogic '0', which turns on Q1, the approx. +5V is then fed to RxD (pin2).With this method, while sending data has being made, TxD (pin3) must stableat -9V, say.
Some applications not only need transmitter, but also for receivingdata. The circuit below dash line is a simple inverter circuit that convertsRS232C level back to TTL logic again. When PC sends data to TxD (pin3)pin, logic '1' is -9V, say, Q2 turns off, RxD (TTL) is approx. +5V. Thestart bit makes TxD (pin3) to approx. +9V, Q2 then turns on, RxD (TTL)then becomes approx. 0V.
The circuit above can be used for half duplex transmission. I have testedwith the Easy-Downloader both version and C-52 EVB to replace DS275 chip.It works fine. My student have made the circuit on a small PCB with 8-pinDIP socket. It can replace DS275 directly.
Of course for PIC, as shown in my page we can connect the PIC I/O pindirectly to the COM1 without the need of RS232C level converter chip, say.It's quite lucky for those who who use PIC chip. But with another microcontrollerthat need such converter, for hobbyists project, I thought above circuitwould be better.
2nd version RS232C level converterHere is the 2nd version level converter using two NPN transistors.Without the need of borrowing negative supply from TxD pin, we use a simpleinverter circuit as shown below. The RxD' pin now can switch between approx.0V (not -10V as above circuit) for logic high at pin 3 and approx.+5V for logic low. This is not RS232C standard, but most modern PC usethe converter chip that accepts such level. I have tested with 9600 baud,it works fine. For the receiver, the circuit is same as the 1st circuit.The pin number in ( ) is for DS275 8-pin DIP, so with these circuit, wecan replace the DS275 easily. Please try with your PC, either one. Anysmall signal transistors can be used as well. The one used in my prototypewas 2SC1740, small package. Resistors are 1/8 watt.
Date: Wed,4 Nov 1998 16:17:22 -0800
From: "asgharcharmin" <firstname.lastname@example.org>
I changed your hardware and it work good with my pc
I send files for you.
Asghar Charmin from Iran sent me modification for his PC's serial portshown below. I hope this would be useful for other.