Epabx Trainer
Epabx Trainer
Epabx Trainer
MODEL: EPABX 01
OBJECTIVE:
MATERIALS REQUIRED:
Ω TELEPHONE INSTRUMENTS
Ω C.R.O.
Ω D.M.M.
INTRODUCTION:
THEORY:
In this EPABX trainer kit, we demonstrate the 4 line telephone systems with full
signaling and switching functions similar to those of the central office systems. Dial tone,
busy tone, and ring tone are provided during call progress. Ringing is generated at the
receiving end of the phone being called. Switching employs integrated circuit (IC) matrix
switches on four buses. Thus, this system is expandable to 8 lines (4 pairs) if more
hardware is added. This system is switching on the Dual Tone Multi Frequency (DTMF)
dialing signal and does not work with pulse dialing signal founded in some older phones.
The telephone systems we built consist of the phone line interface circuits and the MCU
on the STK500 development board.
The four phones share a common ringer; for all the other components, each phone has its
own individual. This is primarily due to the wattage rating of the ICs, we use.
The MCU on the STK500 is the central brain of the systems, whose embedded software
provides the control functions to each of the phone line interface circuits connected to it.
PORT-A is used as the address bus, which, via decoding logic, provides the enabling
signal to appropriate functional units. PORT-C is used as the data bus that read and/or
write data to those units. PORT-D is reserved for UART. Initially, it is used for debugging
during systems start-up. It can be modified to provide the central monitoring function for
the entire systems.
All communication to the functional units via the PORT is asynchronous and level enable.
Hardware Design
The main circuit for this project is “Phone Line Circuit”. The Phone Line Circuit(s) are
connected to Micro Controller, Decoder, Ring Generator and Telephone. Micro Controller
sends or receives data via Share Data Bus by PORT-C and sends address to the decoder
by PORT-A. The decoder receives the address, decodes the address and sends the control
signal (Control Enable and Control Latch) to each Phone Line Circuit as shown in overall
system diagram. The Phone Line Circuit(s) communicate with MCU by sending or
receiving data via Shared Data Bus. MCU uses time sharing protocol to control each
Phone Line Circuit by sending the address of the Phone Line Circuit to the decoder and
sending control data to Phone Line Circuit via Data Bus.
Each Phone Line Circuit is connected to one telephone line. In this project, there are 4
Shared Audio Bus so we can expand the switching up to 8 lines.
The Phone Line Circuit supplies DC voltage to telephone. It receives signal from
telephone, check the number by DTMF receiver and send the number to MCU when
requested. Tri-State buffers are used to multiplex data from DTMF receiver and Off-hook
detection relay of each Phone Line Circuit to Shared Data Bus. Tri-State buffer passes
through the data when it receives Control Enable signal from Decoder. Because we use
time sharing method the control signals sent from MCU to each Phone Line Circuit will be
latched when the Phone Line Circuit receives Control Latch signal from Decoder. There
are 3 sets of control signals from MCU to the Phone Line Circuit: 1. Tone Selection, select
tone presented to telephone when off-hook (Dial Tone, Busy Tone, and Ring Tone), 2.
Audio Switch Control, control audio switch to connected phone line together for speaking,
and 3. Ring Control, control relay switch ring signal to telephone line.
The Audio Bus is used to link each phone line together when there is calling. Coil and
capacitors are used to separate analog signal from DC Supply voltage. There is one off-
hook detection 2-contact relay in each Phone Line Circuit. When telephone off hook the
relay will close and pull the off-hook detection output down to GND and switch the audio
channel from ringing mode to audio mode.
DTMF CIRCUIT:
Explanation of Events
A) Tone bursts detected, tone duration invalid, outputs not
updated.
B) Tone #n detected, tone duration valid, tone decoded
and latched in outputs.
C) End of tone #n detected, tone absent duration valid,
outputs remain latched until next valid tone.
D) Outputs switched to high impedance state.
E) Tone #n + 1 detected, tone duration valid, tone decoded
and latched in outputs (currently high impedance).
F) Acceptable dropout of tone #n + 1, tone absent duration
invalid, outputs remain latched.
G) End of tone #n + 1 detected, tone absent duration valid,
outputs remain latched until next valid tone.
Explanation of Symbols
VIN DTMF composite input signal.
ESt Early Steering Output. Indicates detection
of valid tone frequencies.
St/GT Steering input/guard time output. Drives
external RC timing circuit.
Q1-Q4 4-bit decoded tone output.
StD Delayed Steering Output. Indicates that
Valid frequencies have been present/absent
for the required guard time, thus constituting
a valid signal.
TOE Tone Output Enable (input). A low level
Shifts Q1-Q4 to its high impedance state.
tREC Maximum DTMF signal duration not
detected as valid.
tREC Minimum DTMF signal duration required
for valid recognition.
tID Minimum time between valid DTMF signals.
tDO Maximum allowable drop-out during valid
DTMF signal.
tDP Time to detect the presence of valid
DTMF signals.
tDA Time to detect the absence of valid
DTMF signals.
tGTP Guard time, tone present.
tGTA Guard time, tone absent.
TRUTH TABLE:
Switch Matrix
The switch matrix only has input, output, and multiplexer select pins. You
can connect all 16 inputs to the multiplexer of each output, allowing you
to independently connect any output to any input and any input to any or
all outputs. Figure 3 shows the basic circuit of each output cell.
You can always add features to the output cell (e.g., adding
Another tri-sate buffer or register at the output of the
Multiplexer).
Address Decoders
You can use an address decoder to decode the output address so that only
one output cell is enabled for configuration. Table 2 shows the output of
the decoder and the enabled output cells for a 16 X 16 cross point switch.
4 Altera Corporations
The name of the address decoder reference design file is
decoder.v. The QuartusII software synthesizes the decoder,
Allowing you to use the product-term logic in the MAX 3000A
Device or in the look-up table (LUT) in the MAX II device to
Combine the decoding with other functions.
Configuration
Configuration is the main feature in a cross point switch. As shown in
Figure 1 on page 2, the configuration module consists of a double row
register architecture, which allows reconfiguration of input to output
connections during operation. Activation of the new configuration occurs
with a single configuration pulse.
The switch matrix circuit is controlled by data in two sets of 16, 4-bit
registers — the LOAD REGISTERS and CONFIGURATION REGISTERS.
You can use the four bits of each register to store the input address that
identifies the input that you can connect to a particular output. Table 3
shows the connection of an input to a particular output when you select a
different input address.
You can select one of the 16, 4-bit registers in the first set of LOAD
REGISTERS by placing a 4-bit word on the output address bus You can place data that is
written into the load
register on the input address bus. The load register contains the 4-bit
address of the input that connects to that output. The load register stores
input data at the low-to-high transition of the load input pin with the
chip-select (cs) signal set to high. The contents of the load registers are
then transferred to the second set of CONFIGURATION REGISTERS at the
low-to-high transition of the cnfg input signal with the cs signal set to
high. This transition sets the state of the entire switch matrix to the chosen
configuration.
Reset mode is also supported in this 16 X 16 crosspoint switch. When you
assert the reset (res) signal (with cs set to high), the entire crosspoint
switch is in its initial state where all outputs are connected to input0.
LOGIC DIAGRAM:
PROCEDURE:
USER FEATURES
FAULT SWITHES:
HOOK UP RINGER:
Disable the incoming volume tone and all other ringer function for the extension
terminal no.3
HOOK UP DIALER:
Disable the dialing tone and outgoing facility to the extension no.3, [to activate the
fault make the fault switch in fault position and reset the unit, this fault switch has no
effect once the call has been connected.]
POWER FAULT:
Total EPABX feature is activated, [i.e EPABX is dead] only the extension terminal
no.3 is act as a individual telephonic instrument.
This fault will disable all the switching transfer function of the EPABX such as call
transfer, intercom calls etc..
DTMF FAULT:
This fault will disable the dialing facility and will deactivate the main DTMF
telephonic unit.
CONTROLLER FAULT:
This fault is similar to DTFM and CROSS POINT SWITCHNING fault, this fault will
make the total EPABX unit inactive.