Electronic Circuits Schematics Projects




TTL signal levels using a serial port MAX232

Rating: 2.00/10 (102Votes cast)

Category: Computer Circuits / Computer Interface
This circuit is also crossed to: PC Circuits
Views: 3990
Rank: 0

A PC’s serial port provides signal lines that you can use to expand the number of input signals. With some additional circuitry tied to these lines, you can use the port to test digital TTL logic-level circuits. You just need to convert the TTL logic levels to RS-232 voltages and add a multiplexer to increase the number of signals that the serial port can sense. The schematic in Figure 1 (shown at the end of this article) uses a MAX232 IC to convert RS-232 voltage levels to TTL-logic levels. A 74HC4051 multiplexer lets you select any of four digital inputs and route them to the serial port. Software available from the online version of this article lets you control the RTS (ready to send) and DTR (data terminal ready) pins in the serial port that select the signal under test. The CTS (clear to send) pin then reads the signal under test into the PC.The four digital-input signals (A0A3) from your device under test connect to the first four inputs (X0X3) of the multiplexer. Only one of those signals can pass through to the X output (pin 3) at a time. By setting the appropriate binary code on the serial port’s RTS and DTR lines, you can select the signal to pass through the multiplexer. Table 1 describes the selection of inputs. The PC software, running on Windows XP, sequentially sets those binary combinations on the port’s RTS and DTR lines and reads the digital signal on the CTS line. When you click the Check status” button on the user interface, the software reads and displays the status of the selected bit. The code is written in Microsoft C# .NET 2008, but it will run on the 2005 version as well. To create the application, launch the project wizard and select the Windows Forms Application” from the C# .NET templates. Place the TextBox, Label, and Button components on the project’s main form and assign titles to them. You should place the SerialPort component on the design area of the project. Then, set the appropriate parameters for the SerialPort component (port number, baud rate, data bits, and parity and stop bits). When you build the circuit, follow all precautions in the manufacturers’ data sheets concerning the wiring of the MAX232 and 74HC4051. Remember to place bypass capacitors as close as possible to the IC’s power and ground. You can replace the MAX232 with a MAX225 or MAX233, neither of which requires external components. visit page.
TTL signal levels using a serial port MAX232



The four digital-input signals (A0A3) from your device under test connect to the first four inputs (X0X3) of the multiplexer. Only one of those signals can pass through to the X output (pin 3) at a time. By setting the appropriate binary code on the serial port’s RTS and DTR lines, you can select the signal to pass through the multiplexer. Table 1 describes the selection of inputs. The PC software, running on Windows XP, sequentially sets those binary combinations on the port’s RTS and DTR lines and reads the digital signal on the CTS line. When you click the Check status” button on the user interface, the software reads and displays the status of the selected bit. The code is written in Microsoft C# .NET 2008, but it will run on the 2005 version as well. To create the application, launch the project wizard and select the Windows Forms Application” from the C# .NET templates. Place the TextBox, Label, and Button components on the project’s main form and assign titles to them. You should place the SerialPort component on the design area of the project. Then, set the appropriate parameters for the SerialPort component (port number, baud rate, data bits, and parity and stop bits). When you build the circuit, follow all precautions in the manufacturers’ data sheets concerning the wiring of the MAX232 and 74HC4051. Remember to place bypass capacitors as close as possible to the IC’s power and ground. You can replace the MAX232 with a MAX225 or MAX233, neither of which requires external components. http://mobile.tmworld.com/article/323698-Test_Ideas_Serial_port_tests_digital_circuits.php

Related circuits

PC joystick interface circuits

NOTE: There is no guarantee as to the suitability of said circuits and information for any purpose whatsoever other than as a self-training aid. I.E. If it blows your equipments, trashes your hard disc, wipes your backup, burns your building down or just plain don`t work, IT ISN`T MY FAULT. In...



TTL signal levels using a serial port MAX232

A PC’s serial port provides signal lines that you can use to expand the number of input signals. With some additional circuitry tied to these lines, you can use the port to test digital TTL logic-level circuits. You just need to convert the TTL logic levels to RS-232 voltages and add a...



ISOLATED FULL DUPLEX RS232C INTERFACE

This self powered interface circuit electrically isolates the TxD and RxD lines from the PC serial port and protect the PC from direct connection to hazardous voltages. The isolator is intended to provide electrical isolation between a computer and the equipment connected to its serial port. This...



RS-232 surge protection

The following circuit are provded here to give your idea how the overvoltage protecton circuits really work and how you can easily add some protection to your circuits. To make theose circuit really effective need careful component choosing and good construction. For best performace I recommend...



High speed paper tape reader

When computer peripheral equipment is interfaced, it is convenient to work with logic signal levels. With a nominal 4 V at the output dropping to - 0.6 V on illumination, this circuit reflects the requirements of a high-speed, paper tape optical reader system. The circuit operates at rates of up...



PC Infrared Receiver

This is the latest version of the Improved Infrared Receiver with Status LED which can control any desktop PC with an ordinary remote control. The project comes along with a small PCB in order to save space. It connects to the serial port as stated in the schematic and uses the freeware Girder...



Microprocessor RS-232 Reset

This circuit allows a remote microprocessor to be reset by a controlling host over a remote RS-232 or similar protocol serial line. With the use of a program loader on the remote host, a program may be downloaded and run. This allows a target processor to run different code in RAM, thus getting...



LCD Interface using the PIC16C84 microcontroller

Alphanumeric LCD displays have become very popular for microcontroller applications because they can add a lot to a project in a variety of different ways. A text message giving the user instructions as well as feedback can make the application seem much more "professional" and easy to use. I...



Lite-on Key Extractor Tutorial [HowTo] Dre - Hologram feat. Chris Brown [Walk...

LiteOn Key Extractor Tutorial [Howto] Dump, Spoof & Swap device Lite-On DG-16...


Comments




 characters left

Captcha

captchaPlease input letters you see on the image.
Click on image to redraw.



Facebook Comments

Most searched
 
Accounts area
Username:
Password:
Forgot password? Register
Circuits