Here’s an RS232 port that can used for PC signal generator circuit, we can generate square wave oscillation when transmitting data, and this can be “misused” as signal generator (square wave generator). This is a PC Signal generator produce a square wave in audible frequency range. This circuit utilize a transmission of a “U” character from ASCII character set. This character has binary value of 01010101, making it suitable for square wave generation. Based on RS232 protocol, this circuit transmit any data (ASCII character in this case) starting from least to most significant bits, and then add start bit 0 (zero) then followed by stop bit 1, producing the final result 1010101010. This pattern will generate square wave, with frequency of half the baud rate. The frequency that can be delivered by computer are 4800, 2400, 1200, 600, 300, 150, and 55 Hz. This is the figure of the circuit;
The circuit is very simple, it has a resistor R1 for loading the source, followed by a DC blocking capacitor C1, and a limiter R2, and a volume control 10 K potentiometer (audio taper). The limiter resistor convert 24 V peak-to-peak range into to 2V peak-to-peak before further adjusted by the potentiometer. Please note that the square wave is filtered by a capacitor, means that the shape of the waveform will turn into a ramped slope, not really a square anymore.