V.22 Call S etup with the CMX867 2 Application Note
¤
¤¤
¤2001 MX-COM, Inc. www.mxcom.com tel: 800 638 5577 336 744 5050 fax: 336 744 5054 Doc. # 20830147.001
4800 Bethania Station Road, Winston-Salem , NC 27105-1201 USA All Trademarks and service marks are held by their res pec t ive companies.
• Figures 2 and 3 are intended to give general guidance on the use of registers. They do not show
software timeout features that avoid lockup on certain loops. The treatment of interrupts (enabling,
servicing & disabling) is not fully shown since these are options that may be implemented for a
particular design. Guard tones are also not included.
• On the Public Switched Telephone Network (PSTN), the calling modem should transmit on the low
band and receive in the high band.
• Error handling has not been included since this aspect is implementation dependent.
• The detection of in-band energy is indicated by b10 of the Status register ($E6). It is advisable to
check this bit in both call setup and data modes where signals are due to be received since it is
possible for noise to occasionally give false indication of bit patterns on a line which does not in fact
have a true signal.
• The following bits in the Transmit Mode ($E1) and Receive Mode ($E2) registers need to be set
according to the circuit and function requirement:
Tx Mode b11…b9 = Tx gain
Tx Mode b8,b7 = 550Hz/1800Hz Guard Tone enabling
Tx Mode b4…b0 = USART mode and format
Rx Mode b11…b9 = Rx gain
Rx Mode b5…b0 = USART mode and format
• Some points are shown on the drawing in Fig. 1 that relate to circuit switching on the host external
port. For example, the point labeled “Detect 32 consecutive ONES at 2400b/s” is a point at which
the data channel received line signal detector (i.e. Data Carrier Detect pin on RS-232 port, also
referred to as “circuit 109” in the V.22 standard) can be switched.
• Register bit states on the flow charts assume a General Reset ($01) has been issued and the
normal start-up procedure has been followed prior to entering the Calling and the Answering
procedures. Each state during these two procedures lists only the register bit changes that are
required to move from the previous state.
1.1.1 For both Calling and Answering modems:
Power up the modem:
Issue a General Reset Command – C-BUS address = $01 (no data)
If the modems need to be set to auto-answer mode:
Write to the General Control ($E0) register:
b6 = 1 (enable /IRQ output)
b5 = 1 (unmask ring detect IRQ)
The modem is now in powersave mode, but programmed to interrupt the controlling microcontroller
when ringing is detected.
1.1.2 For the Calling modem when ready to dial out:
Take the modem out of powersave mode:
Write to the General Control ($E0) register:
b8, b7 = 11 (power up and reset registers)
Wait 20ms
Write to General Control ($E0) register:
b7 = 0 (remove reset condition)
Proceed as shown in the flow charts for Calling Modem