TIPE Project

25,210

TIPE Project
TIPE Project

A simple non-commercial grade multiplexer compatible with telephones. It will support four telephone lines and will multiplex over one cable. The topic was free of choice but had to be oriented around the theme of "PrG©vision" (prediction). As anticipated, the topic chosen is "Multiplexing." The aim is to gain knowledge in the field, despite limited experience in electronics. The design involves modulating voices using Pulse Code Modulation (PCM), sampling 8-bit audio at 8000 samples per second. The system will utilize a 65C02 processor to apply A/µ law dynamic range compression when not sampling or transmitting data to the multiplexer, with operational frequencies of 2 or 4 MHz to ensure timely data processing. Understanding telephone lines and impedance is crucial for implementing echo cancellation and interfacing Digital-to-Analog Converters (DACs) and Analog-to-Digital Converters (ADCs) with telephones. Telephone lines consist of a long pair of copper wires, often twisted to minimize interference, and their response varies with length, gauge, and size, affecting impedance. Telephone lines are designed to operate within a frequency range of 300 Hz to 3.3 kHz, with an impedance of 600 Ohms on both ends. Isolation between the telephone line and digital/analog circuitry is essential for safety, typically achieved using a specially designed transformer. Matching impedance is necessary to prevent signal reflection and excessive current draw from the telephone exchange. When the line is open, minimal current flows, with approximately 48V across the line. Ringing occurs when a 30-90V AC signal is pulsed at 20-50 Hz. Unhooking a phone creates a dipole with an impedance of about 600 Ohms, causing the voltage to drop to about 9V as current is drawn. The focus will be on echo cancellation by balancing the load when the phone is unhooked, maintaining a background DC voltage, and using operational amplifiers to transmit and receive audio signals at suitable voltage levels. The ADC will convert the incoming signal into an 8-bit number, with the signal range between -10 and 0.

The proposed multiplexer circuit integrates four telephone lines into a single cable infrastructure, allowing for efficient communication without the need for multiple physical lines. The design utilizes a 65C02 microprocessor, which is capable of real-time audio processing. The processor operates at a frequency of either 2 MHz or 4 MHz, ensuring that it can handle the sampling rate of 8000 samples per second required for PCM modulation.

The system's architecture incorporates Analog-to-Digital Converters (ADCs) and Digital-to-Analog Converters (DACs) to facilitate the conversion between analog audio signals and digital data. The ADC will sample the audio input, converting it into an 8-bit digital representation, while the DAC will reconstruct the audio signal for output. The implementation of A/µ law compression allows for efficient dynamic range management, which is critical in telecommunication applications to maintain audio clarity and reduce noise.

To address echo cancellation, the circuit design must consider the impedance characteristics of the telephone lines. The 600 Ohm impedance is critical for ensuring signal integrity and minimizing reflections. The use of a transformer for isolation between the telephone lines and the digital circuitry is a standard practice to protect sensitive components from high voltages present on the lines. This isolation also prevents potential damage due to mismatched impedances, which can lead to signal degradation or equipment failure.

The operational amplifiers (op-amps) in the design will serve to amplify and condition the audio signals, ensuring that they are within the appropriate voltage levels for transmission. The circuit should also include feedback mechanisms to monitor and adjust the load on the line when phones are unhooked, maintaining a stable DC voltage to keep the system operational.

In summary, the multiplexer design aims to effectively manage multiple telephone lines through a single cable while ensuring audio quality and system safety. Key considerations include impedance matching, echo cancellation, and efficient audio signal processing, all of which are essential for a reliable telecommunications system.A simple non-commercial grade multiplexer compatbile with telephones. It will supports 4 telephone lines, and will multiplex over one cable. The topic was free of choice, but had to be oriented aroudn the theme of "PrG©vision" (prediction). As you may have guessed, I chose "Multiplexing" as my topic subject. I`m hoping to learn a lot on my way, since I``m not very experienced in the field of electronics (I once tried to design a 65C02 based computer, but never got past the design stage. ), not in the field of teaching, so this page may come across as confusing in some places. I`d go with a 65C816, but I feel that for this project, something simple, and quick will do, even if I do have to pay more somewhere else for this "mistake". I`ll be modulating the voices with PCM, which means I`ll be sampling 8 bit audio at 8000 samples/second.

The 65C02 will be able to apply the A/ µ law (dynamic range compression codec ) while it`s not sampling or resending data to the multiplexer. I`m hoping to run the CPU at 2 or 4 Mhz in order to be able to sample and retransmit information in a timely fashion and to be able to apply the "compression".

I need to learn more about phone lines and impedance in order to fully understand what echo cancellation is, what wet transformers are and so forth, as this will be essential in determining how I am going to be interfacing DAC/ADCs to the phones. As anyone may know, a telephone line is composed of a long pair of copper wires (also called a twisted pair under some cases, when they are twisted around each other to avoid interference).

Depending on the length, gauge and size of these wires, they respond differently to signals: impedance. In this case, we have to take into account complex impedance modelized as (resistance, Res; and reactance, Rea): Z = Res + jRea, where j is the "imaginary" number.

In the case of telephone lines and telephones, they have been designed to operate in the 300 Hz to 3. 3 kHz band with an impedance of 600 Ohms on both ends of the line (|Z| = 600). For safety considerations (phone lines can operate at up to 130 V, non RMS), it is usually best to isolate the telephone line and the digital/analog circuitry using a 2-coil purposedly designed transformer, and to match the impedance of the line to avoid destroying equipment or to avoid echoes: this is because, if both ends of the line have unequal impedances, then the signal that is sent over the phone line will "ripple" back and forth across the phone line, or too much current will be drawn from the telephone exchange (I need a more rigrourous demonstration here.

). When "open" (all phones down), a phone line is supposed to have a very small, if not null current passing through it (in µAs), and have 48V running across the two "edges" of the line (usually -48V and ground, so that if ever the copper lines get wet, they corrode "backwards"). Ringing is supposed to occur when a 30-90V AC signal is pulsed anywhere from 20-50 Hz across the line (depends on the telephone models and countries), on top of the 48V already present.

When you unhook your phone, you create a dipole between the two edges of the line that has an impedance of about 600 Ohms, the the voltage across the line drops to about 9V as current is drawn by the telephone (this is also how the phone company knows you`re "off-hook", as in "you`ve lifted your phone") In the interests of time, since I`m only going to be hooking phones up to my multiplexer, and not hooking anything up to an actual telephone exchange, all I have to worry about it echo cancellation by balancing the load on the line when the phone is unhooked, keeping a background DC voltage to keep the phone running, and using amp-ops to receive and send voices at appropriate voltage levels over the phone lines. First the signal will be read in by the ADC and turned into an 8 bit number. The signal converted will be between -10 and 0 🔗 External reference