AN INITIAL TRAINING APPARATUS FOR USE IN A TRANSMITTER AND RECEIVER APPARATUS

Abstract: An initial gain of an automatic equalizer is fixed to a predetermined value. Then, the most appropriate gain of the automatic equalizer is determined when a training signal is received by the automatic equalizer. An echo replica signal produced by an echo canceler is multiplied by the value obtained by dividing the most appropriate gain by the initial gain. Thus, the echo replica signal is corrected to cancel the echo signal included in the output of the automatic equalizer. The sampling rate of the A/D converter used in the transmitter and receiver is shifted by a predetermined value from the transmission line rate at an initial training stage. Thereafter, the sampling rate of the A/D converter is determined to be near that of the transmission line.

Description: SPECIFICATION Title of the Invention An Initial Training Apparatus for use in a Transmitter and Receiver Apparatus Field of the Invention The present invention relates to a transmitter and receiver apparatus (transceiver) and in particular relates to an initial training apparatus for use in an echo canceler transmission apparatus for correcting an echo signal in the best way by using the most appropriate gain of an automatic equalizer. Background Art Equipment for transmitting and receiving signals is used to take advantage of the recently introduced bidirectional digital transmission method. Fig. 1 shows a system structure based on digital subscriber line transmission. In Fig. 1 , 1 designates a terminal apparatus provided within a subscriber's premises and 2 a transmission apparatus (transmitter). The subscriber's premises are connected to other transmission apparatuses in a station by a subscriber line 3, which is a two-wire metallic cable. This cable is used for bidirectional digital transmission, and provides a data capacity of 160 kb/s. A structural view of a transmission apparatus for a subscriber's premises is shown in Figs. 2A and 2B. Generally, the transmission apparatus needs an automatic equalizer EQL to compensate for a waveform distortion on a transmission line. Further, some transmission apparatuses include an echo canceler for suppressing echo leaking f rom . a transmitted signal, and some do not. Fig.2A shows a structural view of a transmitting apparatus based on a ping-pong transmission method, which does not use an echo canceler, and Fig. 2B shows a structural view of a transmission apparatus based on an echo cancelling transmission method, which does use an echo canceler. At present, a ping-pong transmission system is used in Japan and an echo cancelling transmission system is used in Europe and North America. In the ping-pong transmission system, the data capacity for transmission is 160kb/s, but as bidirectional transmission is used in a time divisional manner, the data capacity on subscriber line 3 is doubled, to 320kb/s. Transmitting or receiving is switched by a transmitting and receiving switch S . Transmission data is coded by a coding circuit, (coder) COD, and are driven by a line driver DRV. At this time a transmission switch SW selects a transmission site to transmit a signal on a subscriber line 3. On the other hand, a received signal transmitted from subscriber line 3 is selected by a transmitting and receiving switch SW, and then enters line equalizer EQL. Line equalizer EQL includes If AGC (automatic gain control) and automatically controls gain lost in a transmission line of a subscriber to automatically correct a gain matched with a frequency. The output of line equalizer EQL is applied to decoder DEC, thereby providing received data. In this case, timing reproducing circuit TIM reproduces a clock signal, namely, a synchronizing signal from a received signal and decodes the received data by using the clock. This ping-pong transmission method uses bidirectional signals on a transmission line in a time divisional manner. Thus, when transmission data are transmitted outwardly, they do not leak into the receiving side. Therefore, this system does not need an echo canceler. On the other hand, the data capacity of the transmission line becomes double the demanded data capacity of 160kb/s, namely 320kb/s. Therefore, a smaller hardware is required, but the transmission rate is lowered, so that these is a trade-off relationship. Fig. 2B shows the structure of an echo canceler transmission system. Transmission data are coded by a coding circuit COD and are transmitted on subscriber line 3 through line driver DRV. In an echo canceler transmission system, data capacity of a transmission on subscriber line 3 is 160kb/s and it does not perform bidirectional time divisional multiplexing. Then, transmitted and received signals are multiplexed in an analog manner. A received signal is inputted to hybrid circuit HYB i.e. a 2-wire/4-wire conversion circuit, from subscriber line 3. Where a transmission signal is transmitted on subscriber line 3 through hybrid circuit HYB, a part of it leaks as an echo, and is turned into its own apparatus on the receiving side. Therefore, in order to cancel an echo signal, an echo canceler EC is added. Echo canceler EC has, for example, a transversal filter structure. A pseudo echo (echo replica) is artificially formed as an impulse response to a transmitted signal. Coefficients of the transversal filter are determined by the echo signal, thereby producing the echo replica. The echo replica is subtracted from the echo signal which leaks into the receiving side, thereby cancelling it. The received signal is thereby input into line equalizer EQL in which a gain for compensating a loss of a transmission line is automatically formed. The received signal is automatically multiplied by the gain, and the timing reproduction circuit extracts a synchronizing clock signal from it. A decoding circuit DEC decodes the received signal based on the synchronizing clock signal. This echo canceler transmission method needs an echo canceler and thus increases the volume of hardware. However, the transmission capacity of a subscriber line remains the same as that of the data capacitor, i.e. 160kb/s. Thus, a time division multiplexing is not necessary for transmission. The transmission apparatus of an echo canceler transmission method includes a line equalizer and an AGC circuit to compensate for a waveform distortion on the transmission line and an echo canceler for suppressing leaking echoes of the transmitted signal. Before starting a normal data transmission, and upon an initial training in which a synchronization is established between transmitting and receiving sides, the gain and the coefficient of an echo canceler apparatus are determined. In other words, the initial training of the transmission apparatus comprises a training by an echo canceler and a training by an AGC. The performance of the transmission apparatus depends on how the initial training is conducted. Fig. 3A shows the transmission apparatus which uses an echo canceler method. The apparatus includes the above automatic equalizer and echo canceler. The transmission apparatus comprises an echo canceler EC, automatic equalizer EQL, hybrid circuit HYB, subscriber line 3 and A/D converter A/D. The apparatus shown in Fig. 3A performs an echo cancellation before automatic equalizer EQL. The apparatus shown in Fig. 3B relates to a method of performing an echo cancellation after the automatic equalizer EQL. The apparatus shown in Fig. 3C relates to a method of performing an echo cancellation both before and after the automatic equalizer EQL. As shown in Fig. 3A, when an initial training is conducted, a pulse signal is transmitted from the own apparatus to a transmission line through hybrid circuit HYB. This pulse signal trains an echo canceler EC, and an echo formed by a transmission pulse through a hybrid circuit is input to a subtraction circuit after it is subjected to A/D conversion. The coefficients of the EC is changed such that the difference between the output from the EC and the echo signal included in it decreases, thereby forming an echo replica. After the echo is canceled in this manner, equalizer EQL amplifies the received signal by the gain lost through the transmission line. If echo canceler EC and automatic equalizer EQL are all formed by an analog circuit, their control becomes difficult. Thus, in this structure, an A/D converter is provided at the output of hybrid circuit HYB. Therefore, various digital processes are conducted in a digital manner, and thus, the A/D converter must have about 13-bit accuracy. Therefore, the load on the digital circuit increases. After training of the echo canceler is completed, signals transmitted from another apparatus via the same circuit through a transmission line is received by hybrid circuit HYB, thereby enabling automatic equalizer EQL to be trained for a line equalization. After a predetermined time period, training of the automatic equalizer is completed. This method follows a rule that a tra ini ng of echo canceler EC i s conducted prior to that of automatic equalizer EQL. On the other hand, when the apparatus shown in Fig. 3B is trained, an echo canceler i s pos itioned af ter the automatic equali zer. This apparatus is suitable for a rule in which a gain training is first conducted by an automatic equalizer in a way similar to that described above and thereafter an echo training is conducted by using the echo canceler. If this rule is followed , the amplitude of the echo signal is determ ined by the gain of the automatic equalizer, and this kind of echo canceler performs a better cancellation than that of the apparatus shown in Fig. 3A. However, this is not applied to a rule in which an echo canceler training is conducted prior to an automatic equalizer training. The apparatus shown in F . ig.3C performs echo cancel lation both before and after the automatic equali z er . In thi s cas e , the A/ D converter i s pos itioned after the automatic equalizer. Thus , conversion accuracy of the A/D converter can be decreased. Echo cancelling is conducted before j_he equalizer EQL through analog processing and about A/D converter of about 10 bit accuracy is sufficient, thereby decreasing the load on the digital circuit and facilitating manufacture of LSIs. The transmission apparatus shown in Fig. 4 comprises a master-side transmission unit 10 and an opposite slave-side transmission unit 11 , and respective units comprise source oscillators 12 and 13, whose oscillation frequencies are divided to determine the desired transmission speed. An automatic equalizer provided within a * transmission apparatus, as shown in Fig. 5, is known. The analog output of analog line equalizer 15, which produces a gain characteristic of a sufficient value upon receiving an input signal, is sampled and converted to a digital signal by A/D converter 16, thereby providing a sampled value X of the received signal. Power arithmetic operation circuit 17 performs an arithmetic operation to produce an average value E(Xn ) of the power of a digitally sampled value Xn output from A/D converter 16. AGC circuit 18 performs an arithmetic operation to determine the most appropriate gain. The sampling frequency applied to A/D converter 16 can be obtained by the dividing clock frequency f_. of source oscillators 12 and 13 (as shown in Fig. 4). Therefore, AGC circuit 18 can determine the most appropriate gain after training. The method shown in Fig. 3A is disadvantageous in that a residual echo, which cannot be canceled by echo canceler EC, is amplified by a filtering characteristic of the automatic equalizer EQL, so that it appears the received signal, if the accuracy of the A/D converter is decreased. Therefore, in order to avoid the above defect, it is necessary to increase the accuracy of the A/D converter. The methods disclosed in Figs. 3B and 3C can achieve an echo cancellation the output from the automatic equalizer EQL as the training of echoes is conducted after the training of equalizer EQL. However, in this method, the order of training is predetermined and if it is not satisfied, the most appropriate training cannot be conducted, under a rule that the training of equalizer EQL is conducted after the training of echoes. In Fig. 3C, the echo cancelers are provided before and after the equalizer EQL. However, the ehco canceler provided after the equalizer EQL cannot conduct the training of the echo canceler before that of the equalizer EQL. In other words, the echo canceler is used under a rule that the training of the equalizer is conducted prior to that of the echo canceler. Such initial training of an automatic equalizer is conducted at the beginning of the initial training of a transmission apparatus, and in most cases when timing (phase) data of a received signal has not yet been obtained. In order to perform AGC training during a period when timing data does not exist, it is necessary to perform an A/D conversion of a received signal at a sampling frequency Nxf s which is more than twice the received signal frequency f (transmission rate). The great barrier is that the automatic equalizer installed with the A/D converter has a high sampling frequency and is made of LSIs. This inhibits the development of an inexpensive, compact and highly reliable transmission apparatus. The transmission speed increases with the expansion in transmission capacity, as has been observed recently. This is a further difficulty. Disclosure of the Invention Therefore, the present invention is aimed at performing an initial training which is independent of the training of the transmission apparatus, or the communication apparatus, in which an echo canceler is positioned after the automatic equalizer and particularly aimed at conducting the most appropriate training even under a rule that the training of the ehco canceler is performed prior to that of the equalizer EQL. The present invention is aimed at providing an initial training method for an automatic equalizer > installed with an A/D converter having a low sampling speed, which is suitable for LSIs. An initial training apparatus for a communication apparatus of the present invention is shown in Fig. 6, and is explained by referring to the training sequence shown in Fig. 7. Fig. 6 shows the principle of the present invention. In the drawing, 21 is an echo canceler, 22 is an automatic equalizer, 23 is a gain correcting unit, 24 is a multiplier, and 25 is a subtractor. According to the present invention, first the output of a gain corrector 23, namely the gain, is set at the unity gain, or 1 , and the gain of the automatic equalizer is set at G j even under a rule that the echo canceler is provided after the equalizer and that the training of echo canceler is conducted prior to that of the equalizer. A pulsje is transmitted as a training signal to perform the training of echo canceler, the most appropriate gain G p of the returned received signal is obtained by an automatic equalizer, and G p is input to gain correcting circuit 23. Echo canceler 21 outputs an echo replica of the training signal. ' The output of the echo canceler 21 is multiplied by the unity gain "1" at the first training, and the echo canceler 21 performs a training such that the difference between the echo replica and leaking echo, i.e. the output from automatic equalizer 22, is decreased. The most appropriate gain G F is obtained by gain correcting circuit 23 by dividing G p by G j . For example, the echo replica is multiplied by G p /G j , thereby performing another echo cancellation. The present invention fixes an initial gain G- j - of automatic equalizer 22 and trains echo canceler 21 by using the transmitting training signal. It performs a training of automatic equalizer 22 by using the received training signal to produce the most appropriate gain Gp, and corrects the amplitude of echo replica ER from echo canceler 21 upon communication, by using results obtained by comparing the most appropriate gain Gp with the initial gain G- j -. Even if the echo canceler is provided after the equalizer, the present invention is suitable for a rule under the condition that the training of the echo canceler is conducted prior to that of the equalizer. It is also preferable that sampling frequency of an A/D converter installed in an automatic equalizer which is suitable for an LSI is about the transmission path rate. However, when the sampling frequency is equal to the transmission speed, it is not determined at which point in period T a sampling is performed. Thus, the result of an arithmetic operation of a power is either close to 0 or large. Therefore, according to the initial training method using the automatic equalizer of the present invention, the sampling frequency of the A/D converter is made to correspond with the transmission speed, or the communication frequency, f , and the initial training is set to the frequency f_. + _■ , obtained by changing frequency f_, by a predetermined value ±Δ and on completion of a training, the sampling (transmission) frequency is used. By transmitting a training signal to a transmission line, a training of echo canceler 21 is performed, where echo canceler is trained before the equalizer, even if the echo canceler is provided after the equalizer. In this case, automatic equalizer 22 is positioned before echo canceler 21, and thus the gain of automatic equalizer 22 is fixed at an initial gain G . When a training of echo canceler 22 is completed as explained above, a training of automatic equalizer 22 is performed by using a training signal received from another apparatus. Thereafter, the transmission apparatus moves to an ordinary communication operation, and at this time, a echo replica ER, produced by echo canceler 21 to perform an echo cancellation, is corrected by the result obtained by comparing the most appropriate gain G p with the initial gain G j , namely, the value obtained by dividing Gp by G j . As described above, echo canceler 21 performs a training using an initial gain GI. Even if automatic equalizer 22 is positioned before echo canceler 21 , a training can be conducted in the order of cancellation of echo canceler 21 and then equalization of automatic equalizer 22. When a training is conducted in the order of equalization of automatic equalizer 22 and then cancellation of echo canceler 21 in the same manner as in the prior art, it can be done in the same manner as in the apparatus shown in Fig. 3B, thereby utilizing no initial gain correction of the echo replica. Therefore, an initial training of a transmission apparatus can be realized regardless of the training sequence. According to another feature of the present invention, the sampling frequency is intentionally shifted by a predetermined value Δ" to provide a frequency fg +Δ and this sampling clock is made to run by a timing reproduction circuit in the following stage, thereby scanning a received signal and enabling an AGC to be applied. Brief Description of the Drawings Fig. 1 is a block diagram showing the digital subscriber line transmission. Figs. 2A to 2B show methods of transmitting signals. Figs. 3A to 3C show prior art transmission apparatuses using echo cancelers. Fig. 4 shows a schematic diagram of the transmitting system, Fig. 5 is a block diagram of a conventional transmission apparatus, Fig. 6 is a block diagram showing the principle of the present invention. Fig. 7 shows the operational sequence of the present invention. Fig.8 shows a block diagram of an embodiment of the present invention. Fig. 9 is a block diagram of the automatic gain controller shown in Fig. 8, according to an embodiment of the present invention. Fig. 10 shows a characteristic graph of a subscriber line showing the relationship between line loss and frequency. Fig. 11 shows frequency characteristics of the gain of the Jf AGC equalizer. Fig. 12A shows a circuit construction of the Jf equalizer. Figs. 12B and 12C show basic diagrams of the amplifiers used in the Jf equalizer shown in Fig. 12A. Fig. 13 is a concrete diagram of the line equalizer. Fig. 14 is a circuit diagram of a fine plane gain amplifier. Fig. 15 is a circuit diagram of the gain setting unit,in Fig. 12A, Fig. 16 shows a flow chart of an operation of a Fig. 17A is a flow chart of a JFAGC and Fig. 17B is a table referred to by the Jf " AGC shown in Fig. 17A, Fig. 18A is a block diagram of a transversal type echo canceler. Figs. 18B is a timing chart for explaining an operation of the echo canceler. Fig. 19 is a block diagram of a table reference type echo canceler, Figs. 20A to 20C are schematic drawings for explaining a correction of an error of an echo replica together with waveforms of a received signal and transmitting signal. Fig. 21 is a diagram explaining a waveforming conducted by a Jf AGC equalizer, Fig. 22 is a circuit diagram of a hybrid circuit, Fig. 23 shows a timing chart for explaining an initial training of the transmission apparatus for a switching timing of switches in Fig. 8, Fig. 24 shows a timing chart for explaining an initial training of the transmission operation for a switch in Fig. 8, Fig. 25 shows a timing chart for explaining an initial training of the transmission apparatus for a switch in Fig. 8, Figs. 26A and 26B are timing charts of sampling operation of the prior art and the present invention respectively, Fig. 27 shows the principle of the embodiment shown in Fig. 26B, Figs. 28 to 30 show embodiments for determining an appropriate sampling rate. Preferred Embodiment An embodiment of the present invention will be explained by referring to the attached drawings. Fig. 8 shows an embodiment of an initial training apparatus for use in a communication - 20 - apparatus. 21 represents an echo canceler; 26 is an automatic equalizer comprising a line equalizer 22, AGC circuit 27 and A/D converter 28; 29 is a hybrid circuit; 30 is a switch for switching the fixed initial gain G j and the most appropriate gain G obtained by an arithmetic operation by AGC circuit 27; 23 is a gain correcting circuit for obtaining a ratio of the most appropriate gain Gp to initial gain G- j -; 31 is a switch for selecting either of the outputs from the gain correcting circuit or gain "1"; 24 is a multiplier for multiplying an echo replica ER produced by echo canceler 21 by switch 31; and 25 is a subtractor. Automatic equalizer 26 receives a received signal, converts it to a digital signal, calculates the power of the digital signal, calculates the most appropriate gain of AGC circuit 27 based on this power, and amplifies the received signal by using the gain of line equalizer 22. As described above, in the present invention, the echo canceler is provided after the equalizer to decrease the number of bits of the A/D converter, performing the most appropriate initial training under a rule that the training of the echo canceler is conducted prior to that of the - 21 - equalizer. An operation of this embodiment is explained. 1. At first, switch 30 is switched to the side of initial gain G j for a training of echo canceler 21, and switch 31 for correcting an echo replica ER is switched to the non-correction side ( 1 ). Thus, the gain of line equalizer 22 is fixed at G . 2. An echo replica ER produced by echo canceler 21 is arithmetically operated on by a training signal which is transmitted from the home or originating apparatus, and a tap coefficient (not shown) for producing the most appropriate echo replica is held within echo canceler 21. This completes a preliminary training of echo canceler 21. 3. Next, switch 30 is switched to the side of AGC circuit 27. Therefore, AGC circuit 27 performs an AGC operation to obtain the most appropriate gain. 4. AGC circuit 27 arithmetically determines the most appropriate gain G p within a predetermined training period. By using a training signal received from another apparatus. AGC circuit provides line equalizer 22 with the most appropriate gain G p and maintains the most appropriate gain G p . Thus, a training of AGC circuit 27 is completed. 5. The most appropriate gain Gp held in AGC circuit 27, and initial gain G r , are transmitted to gain correcting circuit 23, and the ratio Gp/G j is calculated. 6. Finally, switch 31 is switched back to the side of gain correcting circuit 23 to prepare it for correcting an echo replica ER produced by echo canceler 21. 7. As described above, when training is completed, the system enters the communication state. Multiplying unit 24 multiplies an echo replica ER output from echo canceler 21 by the ratio output from gain correcting unit 23, thereby correcting echo replica ER output from echo canceler 21, and completing a preliminary training. If G j > G p , echo replica ER is decreased. Switching of switch 30 is conducted upon completion of a training of echo canceler 21 and a switching of switch 31 is conducted upon completion of a training of AGC circuit 27. These switches 30 and 31 are operated automatically. Fig. 9 shows the structure of automatic equalizer 26. 261 shows a coarse amplifier, 262 a fine amplifier, 263 an A/D converter, 264 a power computation unit and 265 a gain correcting unit. Line equalizer 22 compensates for line loss in a subscriber line of a received signal and performs a waveforming i.e. equalization of the received signal. Fig. 10 shows a line characteristic of a subscriber line. As shown, when frequency increa.es, line loss increases in proportion to Jf~. For example, at 100KHz line loss is 50dB. Thus, if the opposite apparatus transmits a signal of 100KHz, there is a loss of 50dB at the receiving end, which deteriorates the waveform. In order to compensate for this deterioration and to perform a waveforming on the received signal it is necessary to amplify the received signal by 50dB at lOOKHz. This is conducted by coarse amplifier 261 and fine amplifier 262 in the line equalizer shown in Fig. 9. Coarse amplifier 261 shows slope gain characteristics and flat gain characteristics, and fine amplifier 262 shows flat gain characteristics. In order to determine the gain of respective amplifiers 261 and 262, the power of the received signal is calculated. Therefore, when the signal is received, it is input to A/D converter 263 through amplifiers 261 and 262, and a power calculation is conducted by digital power computation unit 264. Gain setting unit 264 determines the gain based on the power calculation. Namely, an automatic gain control circuit, i.e. AGC circuit 27, controls the gain automatically by using power computation unit 264 and gain setting unit 265. Gain setting unit 265 contains a table representing a relationship between the power values and control signals used for switching of the switch which automatically select a gain corresponding to the power. Coarse amplifier 261 has a slope gain characteristic in which gain varies with frequency, and a flat gain characteristic in which gain is independent of frequency. First, coarse amplifier 261 performs a coarse control of the input signal. Then fine amplifier 262, which has a flat gain characteristic, performs a precise adjustment. A frequency characteristic, i.e. Jf " AGC equalizer gain frequency characteristic, which is obtained by these amplifiers 261 and 262, is shown in Fig. 10. Equalization gain curves , expressed in units of dB, are plotted against frequency in Fig. 11. The frequency characteristic shown in Fig. 11 has a form in which the subscriber line characteristic shown in Fig. 10, i.e. a line loss increased in proportion to { r is compensated for. Namely, J AGC equalizer gain frequency characteristic shown in Fig. 11 is provided to compensate for line loss. If a loss of 520dB occurs in a 1 OOKHz-signal as shown in Fig. 10, an equalization gain of about 50dB is provided as shown in Fig. 11. In other words, the frequency characteristic of Fig. 10 is opposite to that of Fig. 11. To enable the most appropriate frequency characteristic to be selected, 16 equalization gain characteristic curves from 0 to 15 are provided. The most appropriate curve is selected from the result of an AGC circuit. Fig. 12A shows a circuit diagram of the Jf equalizer. 2611 is a slope gain amplifier, 2612 is a flat gain amplifier for a coarse control, 2621 is a flat gain amplifier for fine control, 266 is a low pass filter, and 265 is a gain determining unit (decoder). Slope gain amplifier 2611 is a positive phase amplifier for receiving a received signal when switch 269 in parallel with capacitor 267 is turned off. The amplifier 2611 then becomes a high- pass filter because of the influence of capacitor 268. Fig. 12B shows a high-pass filter portion extracted from slope gain amplifier 2611. 2613 is a differential amplifier which is ideally controlled such that the input signals applied to plus and minus terminals are controlled to have the same voltage value. The input impedance of the differential amplifier 2613 is infinite. If the input is V- j - and the output is V Q , the voltage at the minus terminal is obtained as follows. V 0 x (R2 + 1/SC) / (R1 + R2 + 1 /SC) = V-r- (1) Therefore , V 0 = (R1 + R2 + 1/SC) x V j /(R2 + 1 /SC) (2) Laplace parameter S corresponds to frequency, and when frequency increases, the output V Q becomes (R1 + R2) x V- J -/R2. When frequency is 0, namely, when direct current flows, V Q = V-r-, and the circuit becomes a unity gain amplifier. As (R1 + R2) / R2 is larger than 1, the gain of the transmission function varies from 1 to (R1 + R2 ) / R2, thereby providing a positive slope gain. Selection of a slope designating a gain characteristic, as shown in Fig. 11, is controlled by gain setting unit 265, by changing the value of feed-back resistor R1 in Fig. 12A. If the frequency characteristic has zero slope, namely, it is flat, switch 269 connected in parallel with a capacitor 268 is turned on, thereby enabling a slope gain amplifier 2611 to operate as a positive amplifier. Coarse plane gain amplifier 2612 is a amplifier for providing a coarse gain. This amplifier has a type of reversed phase and the input signal is multiplied by the value (feed-back resistance/input resistance) and is reversed, thereby providing the output. The gain control of a coarse gain code is conducted by gain setting unit 265. In this case, change in the number of multiplications is determined by a coarse control, and the gain can be changed in 3dB steps. A flat characteristic of a fine amplifier 2621 is structurally similar to that of a coarse amplifier 2612, and gain can be changed in 0.2dB steps, thereby providing a fine gain characteristic. Fig. 12C shows the principle of the flat gain amplifier. If differential amplifier 2614 is ideal, the current flowing through resistor R1 is the same as that through resistor R2 and the voltage at the minus terminal is equal to that at the plus terminal and thus, at the minus terminal it is imaginary zero. Therefore, the current flowing through resistor R1 is VJ/R1 for input voltage V j . This is equal to the current flowing through R2, namely, the current obtained by dividing minus VO by R2. Therefore, the output VO is expressed as follows: V 0 = - (R2/R1 ) V χ (3) The value of the input side resistor R1 and feed-back resistor R2 is selected by gain setting unit 265. Thus, it is possible to obtain a flat gain. Fig. 13 shows a circuit diagram of a *f equalizer and a gain setting unit. In the drawing, 2611 is a coarse slope gain amplifier and 2612 is a coarse flat gain amplifier. SWO to SW10 indicate switches, whose on and off positions are controlled by a gain setting unit. SW4 is for controlling whether or not the slope of the coarse slope gain amplifier 2611 should be provided, and switches SWO to SW3 select a feed-back register in Fig. 12B. If switch SWO is turned on, and switches SW1 , SW2 and SW3 are turned off, then three resistors are connected in series to be fed back, thereby providing a large feed¬ back resistance. If only switch SW1 is turned on, the feed-back resistance comprises the value of two serial resistors. On the other hand, coarse flat gain amplifier has switches SW5, SW6 and SW7 to select the value of input side resistance R1 in Fig. 12C, and switches SW8, SW9 and SW10 to select feed-back resistance R2. If switch SW5 is turned on, and SW6 and SW7 are turned off, the two resistors on the left side are connected in series to an imaginary ground. If switch SW10 is turned on and SW9 and SW8 are off, a feed-back resistor is connected to the output end minus terminal, namely imaginary ground, such that the three resistors on the right side are connected in series. These switches are selected by a code. If the coarse gain code is 8, switches SW1 , SW4, SW6 and SW9 are turned on and the others are turned off. Fig. 14 shows a circuit diagram of a fine flat gain amplifier 2621 and an embodiment including a gain-setting unit. Its structure is the same as that of the coarse average gain adjustment amplifier. This drawing is similar to Fig. 12C and input side resistance R1 and feed-back resistance R2 are selected by a switch. Switches SW11 to SW16 determine the input side resistance and switches SW17 to SW22 determine the output side resistance. If, for example, the fine gain code is 8, switches SW12 and SW18 are turned on and the others are turned off. Therefore, the input side resistance comprises 5 fixed resistors connected in series, and the feed-back resistance comprises two resistors connected in series . Fig. 15 is a block diagram of a gain setting unit and a power computing unit 264. When the output from a coarse amplifier and fine amplifier are subjected to an A/D conversion, the power computing unit computes the power of the input signal. The value of the power sets the gain of the coarse amplifier and the fine amplifier, thereby providing a coarse gain setting decoder 2615 and a fine gain setting decoder 2622 (both composed of ROM). The number of coarse gain codes is 16, namely, 0 to 15, and the number of fine gain codes is 32, namely, 0 to 31. The output of the power computing unit 264 selects one of the coarse gain codes to obtain the result of a power computation, and selects one of the 32 fine gain codes by using a control signal for switching contol corresponding to a given coarse gain code stored in ROM. For example, when the coarse gain code is 8, switches SW1 , SW4, SW6 and SW9 corresponding to coarse amplifiers are turned on and the others are turned off, and these switching operations are controlled by ROM. When a switch is on, it is deemed "1" and when it is off it is deemed "0". ROM sends appropriate 0/1 switch control signals to the coarse slope gain amplifier shown in Fig. 13, thus controlling on and off switching of the switches. Similarly, a fine gain setting decoder outputs a switching pattern corresponding to a fine gain code. For example, for a coarse gain code of 8, switches SW12 and SW18 are turned on and a control signal corresponding to switches SW12 and SW18 are turned to "1" and the other switches are turned to "0". These signals constitute a switch control signal for the fine flat gain amplifier shown in Fig. 14. Fig. 16 shows a flow chart for an automatic gain control circuit for setting a gain. GC is a coarse gain code, GF is a fine gain code, and Pc is a target power. When the automatic gain control flow starts, the initial values are set at GC=8 and GF=15, and the power calculation is started in accordance with equation (4) in Fig. 16. Power is obtained by averaging the square of the signal output from the A/D converter for one period. The ratio of the result of the power computation P to the target power Pc is also obtained. This ratio is expressed in decibels to provide a value which is divided by 3. The integer portion of this value is subtracted from 8 to provide GC in accordance with equation (4). Coarse gain code GC is then output. A similar power calculation is conducted to provide fine gain codes in accordance with equation (5) in Fig. 16. When a fine gain code is produced, the result of the power computation is divided by a target power Pc and converted to decibels. This value is divided by 0.2 and the integer portion of the divided result is subtracted from 15. Thus, the AGC is completed. In order to set an initial gain of Jf ~ AGC, for example, GC=8 and GF=15, a power calculation is conducted. The difference between the obtained power P and the target power Pc is calculated in decibels and converted to a coarse amplifier code which can be varied in 3dB steps, or a fine amplifier code which can be varied in 0.2dB steps. Calculations such as (4) and (5) are conducted by a so-called DSP (Data Signal Processor) but it is difficult to perform a processing in real time. Therefore, a following counter-measure is considered. For example, in order to obtain a coarse amplifier code, the following values should be included in the table in accordance with the following equation, P R (I) = P c -10 (31 ~ 1 * 5) , where I = -7 to 8. Figs. 17 and 18 show a flow chart for obtaining the code Gc and a table obtained from the above equation, respectively. For example, a power computation P is changed from 16p/pc to -18db with regard to a target power PC, and then a separation condition is determined at I=-6. If the condition is YES, Gc=14 is set. The computed power of a non- distorted waveform is set as a target power. A waveform power distorted by line loss is computed and compared with the target power, and a gain correction is conducted, resulting in an error. However, according to this invention, a most suitable Jf equalizer characteristic is constituted by a coarse amplifier with a J characteristic, and the waveform power is again computed to obtain a state such that the original waveform is reinstated, thereby setting the gain of a fine amplifier and suppressing the error to a minimum. As described above, in the present invention, as shown in the structure of Fig. 8, namely, that in which an echo canceler is provided after the equalizer, and in which echo canceler training precedes AGC training, switch 30 is switched to the initial gain side G- j -, and switch 31 for correcting an echo replica ER is switched to the non-correction side, namely, the x1 side. Therefore, line equalizer gain is fixed at GI. The training signal transmitted from the home apparatus performs an arithmetic operation to enable an echo replica to be obtained by an echo canceler 21. Echo canceler 21 has tap coefficients (described later) for producing a most appropriate echo replica. Therefore, echo canceler 21 completes a preliminary training., Next, the switch 30 is turned to the side of the AGC circuit 27, causing it to perform an AGC operation to obtain the most appropriate gain. The AGC circuit performs an arithmetic operation to obtain the most appropriate gain G p within a constant training period by a training signal received from the opposite apparatus, thereby providing the most appropriate gain to a line equalizer, and maintaining it. Then, training of the AGC circuit is completed. Utilizing the most appropriate gain G p and initial gain G j , the gain correction unit calculates the ratio G p /G j . A multiplying unit within the echo canceler multiplies the echo replica by the ratio obtained from the gain correcting unit so that a correction of tap coefficients is conducted to cancel an echo. Namely, a tap coefficient is stored corresponding to the most appropriate gain. When all the tap coefficients are corrected, switch 31 is switched to its normal position and initial training is completed. Thus, the system is now in a communication state. Next, the case in which tap coefficients are rewritten according to the most appropriate gain within the echo canceler is explained. Fig. 18A shows a circuit structure of an echo canceler EC i.e. an echo canceler of the transversal type. The blocks T are delay circuits for delaying an input signal, namely, a transmitted signal. The outputs of the delay circuits are entered into one of the multiplier inputs. The other input of the multiplier 35 is supplied by tap coefficient control circuits 36. The output of all the multipliers is given to the adder circuit, thereby forming a transversal filter. The outputs of the delay circuit are input to the tap coefficient control circuit. The output of the transversal filter is input to one input of the subtractor as an echo replica signal. The transmitted signal is transmitted to a subscriber line through a hybrid circuit, and is input to the other input of the subtractor as an echo signal in the home apparatus through a hybrid circuit. The result of the subtraction of an echo replica from the signal is output as a remaining signal constituting an error signal. This error signal is fed back to the tap coefficient control circuit and the most appropriate value from C1 to Cn is determined. This value is a tap coefficient. Namely, when an impulse is provided to the transmitted signal through a training process, an echo signal is input to a subtractor. If the tap coefficient is determined at an appropriate value, the output of the transversal filter is not an echo signal of the input. Therefore, the error signal is not 0 and the tap coefficient control circuit changes the tap coefficient in a direction in which the error is decreased. The square or the error signal is considered as an energy function and the tap coefficient is selected such that the energy function is a minimum. The repeating process is concentrated and a echo replica similar to the echo signal of the training pulse ' is output from the transversal filter. As a result, the error signal of the remaining echo becomes 0. Namely, the transmitted signal is input to the apparatus, and is controlled such that the output of the transversal filter becomes the same as the echo signal . Therefore , the tap coef f icient determines a quasi-impulse response. Fig. 1 8B is a conceptional view for explaining the process of cancelling an echo. The output of echo canceler 21 is cons idered as an echo replica to be expressed as a symbol ED and a transmitted pulse is expressed as SP. An echo signal for transmitting a pulse which leaks through a hybrid circuit is EA, and the signal which digi ti zes the echo signal is ED. The remaining echo, namely, ER - ED, i s RE. These waveforms are shown in Fig. 1 8B. The transmitting pulse , an extremely narrow width pulse, is given as a questionable impulse signal, and then echo signal EA is output as a gently-sloping waveform signal from the hybrid circuit. The output is subj ected to A/D conversion. The A/D converter is sampled by a sampling clock and quanti zed at a * r i s ing point of the sampl i ng c lock. The quant i z ed output becomes ED, and is output. On the other hand, transm itted pul se SP control s the echo cance ler so that its output is equal to echo signal ED, and the result is output as echo replica ER. When the echo canceler selects an appropriate coefficient, almost the same waveform as echo ED is output as ER, as shown in Fig. 18B. However, as echo replica ER is not equal to a complete echo signal ED, the output of the subtractor, namely the remaining echo, is expressed as RE, equal to ED - ER. If the signal of echo replica ER equals echo signal ED, the residual echo RE, as shown in Fig. 18B, is almost 0. Fig. 19 is a structural view of a table reference type digital echo canceler. 37 shows a shift register and 38 shows a RAM. A transmission pattern corresponding to the transmitted signal is supplied to the shift register 37 as 01 pattern in a bit serial manner, and the transmitted pattern is applied as the address of a memory. An echo replica signal is read out from the memory and entered into one of the inputs of subtractor 39. The other input of the subtractor 39 receives an echo signal formed by a transmission pattern through a hybrid circuit. The output of the subtractor is the remaining echo. An echo replica signal corresponding to the transmission pattern is stored in a memory, and the inter¬ relationship between the transmission pulse and the echo replica signal corresponding to the transmission pulse is stored in the memory to perform an echo cancelling operation. In order to produce the most suitable echo replica signal, the memory content is dynamically rewritten through a data line a. Figs. 20A, 20B and 21 show a method of correcting the echo replica by using a waveform forming and the most appropriate gain. Fig. 21 is a conceptional diagram showing how a waveform is formed by Jf AGC. Fig. 21 is a conceptional view showing how an echo replica is formed by using a transmitted and received waveform and G j /Gp. Fig. 20A shows a training of an echo canceler and when the transmission pulse is transmitted from the apparatus to the transmission line, echo is transmitted from the hybrid circuit to the home apparatus, namely, on the receiving path. According to this invention, even if an echo canceler is provided after the automatic gain equalizer in order to decrease the bit number upon the conversion of the input, echo training of echo cancellation is conducted before the training of the automatic equalizer. The gain of the equalizer concerning the received signal is fixed at G j and the echo signal is thus amplified by this initial gain. On the other hand, the echo canceler is subjected to a training such that the echo canceler can produce an echo replica signal by multiplying the echo signal by G- j -. An echo replica signal obtained by an echo canceler is a pseudo signal of the actual echo and the gain G j is not the most appropriate G j . Thus, the echo replica does not have the same waveform as the echo, as the difference between them, i.e. the remaining echo is not 0. As shown in Figs. 20B and 20C the difference between an echo and an echo replica is not expressed by a subtraction but by a sum. When the training signal of the transmitting pulse is received from an opposite apparatus, the received signal is attenuated in accordance with a *f characteristic of loss. During the training of AGC, the power of the received signal is calculated and the most appropriate gain G p is selected to reproduce the original transmission pulse based on the power calculation. Namely, because of the training of the AGC, a distorted received signal is amplified, thereby providing the reproduction of the original transmission pulse in respect of its waveform. As shown in Fig. 21 , a waveform formed by JF AGC equalizer provides a pulse width larger than the pulse width T of the transmission pulse if the length of the transmission line is much longer than the pulse width T, thereby producing a waveform signal of a large waveform distortion. This is reproduced by a coarse amplifier to provide an original transmission pulse of 3db-step accuracy. As it is a coarse control, a rough pulse is reproduced. Therefore, by using a fine amplifier, the pulse is further corrected to 0.2db step accuracy, thereby reproducing the same pulse as the transmission pulse. If the transmission pulse length is very short, the pulse width T of the received signal is similar to the pulse width T of the transmitted pulse, thereby producing a less distorted received signal. In Fig. 21B, the received signal is obtained by multiplying the transmitted pulse by G p and thereby reproducing the original pulse. In this instance, the most appropriate G p is determined by the AGC. When the echo is multiplied by G j , an echo replica signal of the same value as the original transmission signal is obtained. For Gp, the echo replica signal is multiplied by Gp/G j where the received signal is obtained by multiplying the echo by Gp. The difference between the actual echo and the corrected echo replica signal is almost 0. As stated above, even if the echo canceler is provided after the equalizer, the echo canceler can train the echo. Fig. 22 is a circuit diagram of an embodiment of a hybrid circuit. The voltage of the transmitted signal is divided by Z s and Z e and is transmitted to a transmission path through a hybrid transformer HYB. In this case, the reference voltage within an apparatus is grounded and the reference voltage of the transmission pulse is one terminal of the secondary side of the transformer. The difference voltage on the primary side of the transformer is transmitted to the transmission path, as the voltage is floating from the earth. The voltage of the transmitted signal divided by Z_. and Z j _, is supplied to a minus terminal of a differential amplifier 39. Therefore, when a signal is transmitted and Z j _. is determined to be equal to the impedance Z e which is obtained by viewing the transmission path, the received signal becomes 0. But Z j _ cannot generally be made * equal to Z e . Therefore, the echo signal leaks into the receiving side. The received signal is converted to a voltage through the transformer input to the plus side of the differential amplifier. .In this case, the minus terminal of the differential amplifier 39 is 0 volts. The voltage corresponding to the input voltage of the transmitted pulse appears as the output of the differential amplifier. Fig. 23 shows a timing chart of an initial training of the transmission apparatus according to this invention. Even if the. echo canceler is provided after the equalizer, an echo training can be conducted before the training of the quantizer. The on periods of switches 30 and 31 in Fig. 8 are respectively ti and t j i and are determined by a timer. It takes time for the echo canceler to form an echo replica signal to cancel echo produced by the transmitted pulse and this is called the training time of the echo canceler. As shown in Fig. 23, training of the echo canceler is completed t- j after it starts. When it is completed, AGC training is started. Therefore, a total time of (t + t2> passes before the transmitted pulse is received from another apparatus and the power of the received signal is calculated to obtain the most appropriate gain from the calculated value. Training of the AGC is completed time t2 after it starts. According to the present invention the switch is controlled to perform a training of the echo canceler and the AGC twice. When switch 30 in Fig. 8 is turned to the G- j - side, and the switch 31 is turned to the fixed value 1 side, the training of the echo canceler is conducted with respect to the gain G j . The multiplicataion factor of the replica of the echo canceler is set to 1 by switch 31. From start to end of AGC training, the switch 30 is turned to the Gp side, and switch 31 is controlled to select G p /G- j -. Namely, the gain G p of the equalizer is selected by the automatic gain controller and Gp/G- j - is calculated by the gain correcting unit, and the switch 31 is turned on such that the output achieves an amplification factor of an echo replica. Fig. 24 is a timing chart showing the initial training method of the Jf equalizer shown in Fig. 13. t is the time from start to end of AGC training. A coarse power computation taking time t^ is first conducted. When this is completed the output of the coarse gain setting decoder is determined and a coarse gain code is set. Then a fine power computation taking time tr is conducted. The fine power computation ends after a total time t, and the fine gain setting decoder of Fig. 15 sets the fine gain code. That is, time corresponds to the time from start to end of AGC training and this training time is determined by the frequency shift sampling. After AGC training is completed, the device reverts to normal switching status. Thus, a normal frequency sampling is performed. Fig. 25 shows a second example of a timing chart for switching of switches 30 and 31 during training of the AGC and echo canceler. tg is the time from start to end of echo canceler training. In this case, switch 30 is turned to the G i side and switch 31 is turned to a fixed value "1" side. Equalizer gain is fixed at the value G j and the gain of the echo replica is 1. When echo canceler training is completed, AGC training starts, and switch 30 is turned on to the Gp side and switch 31 is turned to the side from which G p /G j is output. AGC training is completed after time tη and then the most appropriate Gp is obtained. This G p is used to calculate G p /G j . To correct the remaining echo, echo canceler training starts again within the echo canceler after AGC training is completed, thereby initiating a correction of the tap coefficients. The correction of tap coefficients and initial training is completed after time tg. At this point, switch 31 is turned to the gain "1" side to enter the device into a communication status. According to the present invention, if the echo canceler is located after the equalizer, the initial training of the transmission apparatus can be conducted without relying on the training order. Even under the rule that echo canceler training be conducted prior to AGC training, the most appropriate training is conducted. Even if echo canceler training is conducted after automatic quantizer training initial training of the transmission apparatus is realized. In the above embodiment shown in Fig. 8, .A/D converter 28 is placed after line equalizer 22 but it may be placed before line equalizer 22, thereby enabling line equalizer 21 to perform a digital processing. Further, even where a correction of a replica signal is not sufficient, the echo canceler can suppress the echoes to maintain adaptive operation during a communication. If the training of the transmission apparatus is conducted in the order of automatic equalizer and then echo canceler as is similar to the prior part, switches 30 and 31 may be set at the position shown in Fig. 8. As described above, according to the initial training method of the present transmission apparatus, an automatic equalizer is, at first, fixed to an initial gain to perform a training of an echo canceler, and thereafter the most appropriate gain of an automatic equalizer is obtained. Then the ratio of the most appropriate gain to the initial gain is obtained to correct a replica signal during a communication. Therefore, even if the echo canceler is provided after the automatic equalizer, an initial training can be realized independently of the order of training. The design of the apparatus is thereby made more flexible and the cost is reduced. As generally described, the transmission apparatus has an automatic equalizer to compensate for deterioration of signals passing through the transmission path, and the automatic equalizer adopts a method of A/D converting a received signal to perform an arithmetic operation thereon. In order to establish mutual synchronization between transmitted and received signals before the start of a normal data transmission, an AGC and an echo canceler training can be conducted as an initial training. In the initial training of an automatic equalizer equipped with an A/D converter, there is a problem of how to determine the sampling rate for sampling the converter. The sampling frequency of the A/D converter corresponds to the transmission rate. The initial training is determined to be a value shifted a predetermined amount from the sampling frequency. The appropriate frequency is determined after the training is completed. This new method will be explained later. Figs. 26A and 26B respectively shown an operation of the sampling method of the prior art and the sampling method of the present invention. Generally speaking, training of the automatic equalizer is conducted during an initial training period of the transmission apparatus. After the correct received signal is reproduced, timing information of clock signals can be achieved by PLL. Therefore, upon initial training, a timing, namely, phase information of the received signal, is not obtained. Therefore, in order to perform an AGC training during a period of no timing information, as shown in Fig. 26A, the received signal must be subjected to an A/D conversion at a sampling frequency N x fs: more than twice that of the received signal rate or transmission path rate fs. Namely, 40 is a received signal and T is a period, and the inverse of T is transmission path rate, namely, frequency fs. The sampling frequency for A/D conversion is shown as being sampled at a position designated by the arrows in the lower side of Fig. 26A. The period is T/N. Therefore, when an automatic equalizer equipped with an A/D converter having such a high speed sampling frequency is integrated, it is difficult to achieve economy, miniaturization and high reliability in the transmission apparatus. Further, as has recently been observed, transmission path speed increases with the expansion of transmission capacity. This causes a great problem. Therefore an object of the present embodiment is to provide an automatic gain controller equipped with an A/D converter whose sampling rate is low. In order to provide a method of performing a sampling upon an initial training of the automatic gain controller, a frequency shifted a predetermined amount from the transmission path rate fs is used as a sampling frequency and thereafter the sampling rate is set to the transmission path speed, that is, a baud rate. Fig. 27 is a conceptional view of an A/D converter 41 of this embodiment and Fig. 26B an operation diagram of a sampling of this invention. In an initial training of a sampling frequency, an initial training method of the automatic equalizer shown in Fig. 27, the sampling frequency for the initial training is determined as fs +Δ with regard to baud rate f s , and when the training is completed the sampling frequency is returned to fs. The sampling phase of the A/D converter 41 within a transmission apparatus before the timing information of the received signal is obtained, performs a free- running between the master and slave source oscillators at a rate determined by the frequency error (normally 0 to several hundred ' s of ppm) with regard to the received signal phase. As shown in Fig. 26B, the present invention intentionally sets the sampling frequency to a value shifted a predetermined amount ± Δ from the transmission path rate fs, thereby providing a sampling frequency of f s ± Δ . The analog waveform in the Fig. 26B is the output of a line equalizer. If the sampling frequency is set to f s - Δ , the sampling position is determined to be a period T + t with regard to the period T of the transmission path. In this case a more stable power can be obtained than that with a sampling frequency fs, namely, with a period T. If this shifted sampling is conducted by shifting the period T by t, namely, the sampling frequency is -determined as fs - Δ, the initial sampling point is the same as the baud rate sampling point designated by a mark on the analog waveform of the output waveform from the line equalizer. However, the following sampling point occurs after time T + t, the following one after time 2(T + t) and the next after time 3(T + t). Therefore, the first point is shifted by t from the period T of the sampling frequency, the second by 2t, and the third by 3t. This means that the waveform of the output signal from the equalizer is scanned when the waveform is observed for a long period. Therefore, the power computation can be conducted almost correctly. Namely, the correct power computation result is obtained and the training is conducted. After the training is completed, the sampling frequency is switched to the transmission path rate fs and the sampling frequency of the A/D converter is decreased until it reaches near the transmission rate. According to the initial training system of the automatic equalizer shown in Fig. 28 , the embodiment comprises analog line equalizer 42, A/D converter 43, power calculation circuit 44, AGC circuit 45, and frequency divider 46, as is similar to Fig. 8. Source oscillator 47 of oscillation frequency f m ι and source oscillator 48 for an oscillation frequency f m 2 for an initial training are provided and they.are switched by a switch 49. Therefore, the dividing ratio of the frequency divider 46, may be determined as a value to change an oscillation frequency f m ι to the transmission path rate fs. In this case, the oscillation frequency f m 2 is divided to a frequency fs -Δ( fs + Δ may be used). As the predetermined value ±Δ r for example, a value of 20% fs may be used. In this case, fs- =0.8fs and the period t shown in Fig. 26B is 0.2T. The operation of the embodiment shown in Fig. 28 is explained here. The switch 49 is first switched to the pos ition shown in Fig. 28 and the oscillation frequency f m 2 is frequency-divided by frequency divider 46 and the sampl ing f requ ency o f 0 .8 f s is provided to A / D converter 43. A/D converter 43 performs a sampling of a received signal which is equalized by a line equalizer 42. Thus, a random sampling value X n is obtained. Power computation unit 44 obtains an average power E (X n 2 ) based on sampling value Xn. The result obtained by this arithmetic operation is fed back to AGC circuit 45, which scans the received signal to provide the most appropriate gain. When the most appropriate gain is obtained, AGC circuit 45 transmits a signal to switch 49 indicating completion of training, and switching it to the side of source oscillator 47. Then, a sampling frequency equal to the transmission path rate fs is supplied to A/D converter 43 from the frequency divider 46. Thereafter, sampling is performed in accordance with the transmission path rate to conduct an automatic equalizing operation when the system is in communication. The present invention may be applied to digital subscriber lines (cables) and so on. After the training is completed, analog waves need not be reproduced and sampling is conducted in accordance with the transmission path rate. The embodiment shown in Fig. 28 realizes line equalizer 42 in an analog signal area but it may be provided after A/D converter 43. Then, after the received signal is converted to a digital signal, a line equalization may be conducted. The embodiments shown in Fig. 28 and 29 use two oscillators, but only one oscillator 50 is used in the embodiment shown in Fig. 30. The oscillation frequency of the source oscillator 50 is applied to frequency dividers 51 and 52 which have respective ratios of frequency division of 1 /f m l and 2/f_-2. Frequency dividers 51 and 52 produce respective sampling frequencies fs and fs-Δ, and the switch 53 is changed in accordance with a training completion signal from AGC circuit 45. It is possible to provide a switching function in a sampling frequency in the A/D converter. As described above, the sampling method of the present invention enables the transmission rate to be shifted by a predetermined period upon training, to perform a sampling of the A/D converter equipped with the transmission apparatus. When the sampling is completed, the sampling frequency of the A/D converter is switched to the baud rate, namely, the transmission pat rate. Therefore, the present invention meets the demand for operational speed of the A/D converter and enables it to be easily integrated in an LSI , thereby decreasing the cost of the apparatus.

Claims: What is claimed is: 1. An initial training apparatus for training a communication apparatus comprising an echo canceler and an automatic equalizer comprising; > means for setting a gain of an automatic equalizer to an initial gain, means for transmitting a transmission training signal and training said echo canceler to produce an echo replica in accordance with said transmission training signal, means for training said automatic equalizer to respond in accordance with a received training signal to produce an appropriate gain, and means for comparing said appropriate gain with said initial gain, and correcting said replica echo signal from said echo canceler. 2. The initial training apparatus according to claim 1 wherein said echo canceler is provided after said automatic equalizer. 3. An initial training apparatus for training a communication apparatus comprising an echo canceler and an automatic equalizer, the echo canceler being provided after said equalizer comprising: means for setting a gain of an automatic equalizer to an initial gain, so that said initial gain is fixed, means for transmitting a transmission training signal and training said echo canceler to produce an echo replica in accordance with said transmission training signal, means for training said automatic equalizer to respond in accordance with a received training signal to produce the most appropriate gain, and means for dividing said most appropriate gain by said initial gain, multiplying said echo replica signal by the result obtained by said division to correct said echo replica signal during communication. 4. The initial training apparatus according to claim 3 wherein said fixed gain of the echo canceler is "1". 5. An initial training apparatus for training the communication apparatus comprising; a hybrid circuit means for transmitting a transmission signal through a transmission line and receiving a signal from another station, an automatic equalizing means for receiving a signal leaking on a receiving signal line of said hybrid circuit means when a pulse is transmitted to another apparatus, or a signal from another apparatus through said hybrid circuit means, obtaining a gain of said received signal from the power of the received signal, and equalizing the gain of the received signal to obtain the most appropriate gain, an echo cancelling means for producing an echo replica signal to minimize a residual echo signal, said echo replica signal being output after said apparatus has received a transmission pulse, said echo cancelling means being provided after said automatic equalizing means, a gain correcting means for correcting a gain of an echo replica signal output from said echo canceler means , using said most appropriate gain and a subtracting means for forming an echo residual by obtaining the difference between an echo replica signal after said gain correction is applied to said echo replica signal and the output signal from said automatic equalizing means. 6. The initial training apparatus of the communication apparatus according to claim 5, wherein said gain correcting means comprises means for determining an initial gain to be 1 before correcting the gain. means for obtaining a relation between the most appropriate gain and said initial gain, and means for applying a relation between said most appropriate gain and said initial gain to the output of said echo cancelling means. 7. The initial training apparatus of the communication apparatus according to claim 6, wherein said relation is obtained by dividing the most appropriate gain by said initial gain. 8. The apparatus of operating the communication apparatus according to claim 5, wherein said automatic equalizing means comprises line equalizer means for receiving an input from said hybrid circuit to multiply said input by a variable gain, said A/D converter connected to said line equalizing means, said automatic gain control means connected to said A/D converter means to compute the power of the output signal of said A/D converter, and to control said variable gain of the line equalizing means based on the computed value, and a switching means for selecting said initial gain or said most appropriate gain. 9. The apparatus according to claim 5 wherein the echo cancelling means comprises a transversal filter. 10. The initial training apparatus for operating a communication apparatus according to claim 8, wherein said line equalizer comprises a coarse amplifier and a fine amplifier for producing a gain to S compensate for a line loss in a transmission line. 11. The initial training apparatus in a communication apparatus according to claim 8, wherein said automatic gain control circuit comprises a power computing unit and a gain setting means for 0 outputting a control signal to select a connection status of switching elements for setting a gain of said line equalizer means according to the result of a power calculation. 12. The initial training apparatus for operating a communication apparatus according to claim 5, wherein said echo cancelling means comprises a shift register means for setting a pattern of the transmission signal, and a memory means for outputting an echo replica signal in accordance with an address designated by the pattern obtained from the shift register, thereby forming a table reference type echo canceler. 13. The initial training apparatus for operating a communication apparatus according to claim 11 , wherein said gain setting means comprises; a first decoder for producing a coarse control code for setting a gain of said coarse amplifier based on the power calculation result, and a second decoder for producing a fine control code to set said fine control amplifier gain from the result of the power calculation. 14. The initial training apparatus in the communication apparatus according to claim 13, wherein said first and second decoder comprises a ROM. 15. The initial training apparatus in a communication apparatus according to claim 8 wherein a gain of said automatic gain control has a table for providing the decibel value representing the difference between the target power and the power obtained by the power computation of the input'signal. 16. An initial training apparatus having an automatic equalizer equipped with an A/D converter comprising; means for performing an initial training for the A/D converter by using a sampling frequency (fs+Δ ) which is obtained by enabling a predetermined amount to be shifted from a frequency fs, corresponding to a transmission rate, and means for setting the frequency fs as a sampling frequency after said training operation is completed. 17. An initial training apparatus according to claim 16 wherein said frequency fs is equal to the transmission baud rate. 18. The initial training apparatus of the automatic equalizer according to claim 16, wherein means for selecting a first frequency or a second frequency, means for dividing the frequency determined by said selection means and means for producing a sampling frequency of an A/D converter based on the output from said frequency means are provided . 19. The initial training method of an automatic equalizer according to claim 16, wherein said line equalizing means is an equalizer connected to the output of said A/D converter and said equalizing means performs a line equalization operation in digital form after a received signal is converted to a digital signal by said A/D converter. 20. An initial training system of an automatic equalizer including an A/D converter wherein a sampling frequency of the A/D converter corresponds to a transmission speed (fs), an initial training is conducted by setting a frequency (f s ± Δ ) which is shifted by a predetermined value from said sampling frequency and when the initial training is completed, said sampling frequency is set as a sampling frequency.

Inventors: AWATA YUTAKA, FUKUDA MISAO, MARUYAMA KAZUYOSHI, MIYOSHI SEIJI, OHTA SHINJI, YAMATO SEIICHI, AWATA, YUTAKA, FUKUDA, MISAO, MARUYAMA, KAZUYOSHI, MIYOSHI, SEIJI, OHTA, SHINJI, YAMATO, SEIICHI
Applicants: FUJITSU LTD, FUJITSU LIMITED
Application year: 1989
Main classification: H04B3
IPC codes: H04B3