ERROR SIGNAL GENERATOR

Abstract: An error signal generator for generating a plurality of error signals for various control values, comprises a time controller for sequentially and periodically generating time division signals of the number corresponding to that of the control values. A read-out signal generator receives the corresponding number of trigger signals for generating a read-out signal in response to the trigger signal selected by the time division signal. There is provided a preset memory storing the corresponding number of preset digital values for the control values and responsive to the read-out signal so as to output to a bus the preset digital value designated by the time division signal. A count memory responds to the time division signal so as to read out the data to the bus from a memory area designated by the time division signal and then to write the data on the bus into the same memory area. An adder operates to periodically subtract value "1" from the data on the bus and returning the result of the subtraction to the bus. An error memory responds the corresponding number of detection signals so as to write the data on the bus into the memory area designated by the time division signal. The respective memory area provides the data stored therein as the error signals.

Description: The present invention relates to an error signal generator, and more specifically to an error signal generator of producing on the basis of digital data processing a plurality of error signals which can be used to control frequencies and/or phases of various periodical operations. Conventionally, various types devices have been used for generating an error signal which is used to control a control value to a target or desired value. Recently, such error signal generating devices tend to be digitized and assembled in the form of an integrated circuit for increased performance and no adjustment. At present, on the other hand, such error signal generating devices are widely used in video tape recorders for control of the phase and the revolution speed of associated motors. In general, the video tape recorder comprises a so-called cylinder motor for driving a rotary head and a so-called capstan motor for tage transport. The phase and revolution speed of these motors have to be controlled at various values determined in accordance with selected operation modes of the video tape recorder. For example, the phase of the capstan motor is controlled on the basis of the 1/2 frequency-divided pulse of the vertical synchronizing pulse in the time of reproduction, and in the recording condition on the basis of the vertical synchronizing pulse obtained by frequency division of the color subcarrier. In brief, to detect the phase and the revolution speed, ordinarily, each motor is associated with a pulse generator adapted to generate one pulse per each rotation for detection of revolution speed and another pulse generator adapted to generate a pulse when the motor assumes a predetermined phase. The period of the speed detection pulse thus obtained is compared in a digital manner with a target period determined by the selected operation mode so as to produce a speed error signal. The phase detection pulse is compared with a phase reference pulse, and the phase difference is also compared in a digital manner with a target phase difference given in accordance with the selected operation mode. As mentioned above, the video tape recorder is required to produce the phase error signal and the speed error signal for each of the cylinder motor and the capstan motor. Therefore, the video tape recorder has to provide four error signal generation functions. In conventional recorders, the four error signal generation functions have been performed by four discrete digital units in parallel processing manner. However, the provision of the four error signal generation units will make a overall circuit large, which means that a large chip area is required when it is assembled in a large scaled integrated circuit. This problem is significant in a handy type video tape recorder. From EP-A-0 104 931 a digital capstan servo circuit is known which is constructed to detect the speed and phase errors in a capstan control system in parallel by corresponding individual means. In particular, a number of error signals is generated, each corresponding to one control value, the magnitude of which being determined by the time difference between the occurance of a trigger signal and a detection signal. For each control value the error signal is obtained by starting a counter at a preset value by a trigger signal, gradually changing its content using a clock signal having a relatively high frequency, and reading the content of the counter upon occurance of the respective detection signal. The counter is used in common for all control values. It is an object of the present invention to provide an error signal generator which needs only relatively small circuit scale, and which can be assembled at a relatively small chip area in the case of being installed in an integrated circuit. A further object of the present invention is to provide an error signal generator which can generate at least four error signals and which can be effectively incorporated in a handy type video tape recorder. These objects are achieved by an error signal generator as it is defined in claim 1; the dependent claims are related to further developments of the invention. With the arrangement mentioned above, various circuit elements are provided in common to all the control values, and necessary memory means are combined as one unit at respective processing stages. Therefore, the number of required circuit elements such as subtraction means is greatly decreased, and the input/output interfaces for the data storage means such as the preset value storing means, the count memory and the error memory can be simplified. Therefore, the number of the circuit elements required for such interfaces can be also greatly decreased. Thus, the error signal generator can be assembled in a large scaled integrated circuit with a relatively small required chip area. Furthermore, a gate circuit is provided between the bus and the error memory so as to allow passage of the data on the bus to the error memory only when the data on the bus fulfils a given condition. Further, a count detector is coupled to the bus and is set with at least first and second given threshold values. This count detector operates to put the gate circuit in an open condition when the data on the bus is not greater than the first threshold values but not less than the second threshold value. The count detector can also be set with a third threshold value smaller than the second threshold value. In this case, the count detector is operative to produce a supplementary trigger signal to the read-out signal generating means when the data on the bus becomes less than the third threshold value, so that the read-out signal generating means will generate the read-out signal in response to the supplementary trigger signal even at no occurrence of the trigger signal. In addition, the count detector can be adapted to stop the operation of the subtraction means when the data on the data is less than the second threshold value. The above and other objects, features and advantages of the present invention will be apparent from the following description of the preferred embodiment of the invention with reference to the accompanying drawings. Brief Description of the Drawings Figure 1 is a block diagram of a typical example of a motor servo control system which can be applied with the error signal generator in accordance with the present invention; Figure 2 is a block diagram of one embodiment of the error signal generator in accordance with the present invention; and Figures 3 and 4 are time charts respectively illustrating the phase error signal generation operation and the frequency error signal generation operation of the generator shown in Figure 2. Description of the Preferred Embodiment Referring to Figure 1, there is shown a basic circuit of a D.C. motor controller which can be used to control a cylinder motor and/or a capstan motor in video tape recorder. The shown controller includes a phase error generator 10 which produces a phase error signal on the basis of for example a phase detection pulse generated by a pulse generator (not shown) at every time a D.C. motor M to be controlled assumes a predetermined phase. The controller also includes a frequency error generator 12 which produces a frequency error signal on the basis of a frequency detection signal such as a frequency detection pulse generated by a pulse generator (not shown) at each revolution of the motor M. Therefore, the frequency error generator 12 acts as a speed error generator. The phase and frequency error signals are applied to an adder 14 where a difference is derived and outputted to a phase compensator 16. The output of this phase compensator 16 is amplified by a D.C. amplifier 18 and then supplied to the motor M. Turning to Figure 2, there is shown a block diagram of the error signal generator is accordance with the present invention, which can be used in place of the phase error generator 10 and the frequency error generator 12 shown in Figure 1. Specifically, the shown generator is adapted to be capable of generating two pairs of phase error signals and frequency error signals for controlling a cylinder motor (not shown) and a capstan motor (not shown) in a video tape recorder. Therefore, the shown generator receives first and second frequency detection pulses FG1 and FG2 respectively generated for example at each revolution of the cylinder motor and the capstan motor, and first and second phase detection pulses PG1 and PG2 respectively generated for example at the moment the cylinder motor and the capstan motor assume the respective predetermined phase positions. The shown generator also receives a pair of phase reference pulses SG1 and SG2 for the cylinder motor and the capstan motor, respectively. As mentioned hereinbefore, the desired phases for the motors are different in accordance with the operation modes of the video tape recorder. Therefore, a mode selection signal MS is applied to the shown generator. Furthermore, the shown generator is supplied with a clock pulse CL having a pulse repetition frequency greatly higher than those of the phase detection pulse and the frequency detection pulse. On the basis of the input signals mentioned above, the shown generator consequentially produces a pair of phase error signals PE1 and PE2 and a pair of frequency error signals FE1 and FE2. Incidentally, in Figure 2, various parenthesized numerical values represent the bit number of respective buses. The clock pulse CL is inputted to a time controller 20 which in turn generates a time division signal 101. This time division signal 101 is constituted of two bits, and so, can assume four different condition: "00", "01", "10" and "11", which are called hereinafter the status P1, P2, F1 and F2, respectively. These status P1, P2, F1 and F2 are used for the phase error detection of the cylinder motor, the phase error detection of the capstan motor, the frequency error detection of the cylinder motor and the frequency error detection of the capstan motor, respectively. The time division signal 101 is supplied to a read-out signal generator 22 which receives the phase reference pulses SG1 and SG2 and the frequency detection signal FG1 and FG2. When one of these pulses SG1, SG2, FG1 and FG2 is applied to the generator 22, it generates a read-out signal 102 in response to the corresponding one of the time division signals P1, P2, F1 and F2. The read-out signal 102 is supplied to a preset value memory 24 which stores preset value sets of the number corresponding to that of the operation modes of the video tape recorder. Each preset value set includes four preset digital values which make it possible to control the respective phases and speeds of the cylinder and capstan motors to desired values required in the corresponding operation mode. This preset value memory 24 is associated with an address decoder 26 which receives the mode selection signal MS and the time division signal 101. Thus, when the read-out signal 102 is inputted to the preset value memory 24, one set of preset values is selected by the address decoder 26 in accordance with the mode selection signal MS, and one preset value is designated from the selected set of preset values by the address decoder 26 in accordance with the time division signal 101, so that the designated preset value is outputted to a bus 28 of 16 bits. To this bus 28 is connected a count memory 30 which includes four memory areas and is associated with an address decoder 32 receiving the time division signal 101. This count memory 30 is adapted such that at each time any one memory area is selected in accordance with the time division signal 101 by the associated address decoder 32, the data stored in the selected memory area is read out to the bus 28 and then the data on the bus 28 is rewritten to the same memory area. Namely, each memory area can be updated at each four time division signals. When the data is read out to the bus 28 from the count memory 30, the data is inputted to a half adder 34 controlled by an associated clock input circuit 36, which receives the clock pulse CL and the time division signal 101. This half adder 34 operates to subtract "1" from the data on the bus 28 in synchronism with the clock pulse CL and to output the result of the subtraction back to the bus 28. Therefore, the read and write timings of the count memory 30 and the input and output timing of the half adder 34 are so adjusted that the memory 30 and the adder 34 constitute one down counter which decrements by "1" the data stored in each memory area of the memory 30 at each four clock pulses. Alternatively, a full adder can be used in place of the half adder 30. In this case, "0" can be inputted to one of two inputs of the full adder. Also to the bus 28 is coupled a count detector unit 38, which comprises three count detector sections GH, GL and GR. The section GH includes four count detectors GH (P1), GH (P2), GH (P1) and GH (F2) which have inherent reference values HP1, HP2, HF1 and HF2, respectively. The section GL also includes four count detectors GL (P1), GL (P2), GL (F1) and GL (F2) which also have inherent reference values LP1, LP2, LF1 and LF2, respectively. Further, the section GR includes two count detectors GR (P1) and GR (P2) which have inherent reference values RP1 and RP2. Each count detector of the section GH generates a one-bit signal of "1" when the inherent reference value is not less than the data on the bus 28, and otherwise, each detector generates a one bit signal of "0". On the other hand, each count detector of the sections GL and GR generates a one-bit signal of "0" when the inherent reference value is not greater than the data on the bus 28, and otherwise, each detector generates a one-bit signal of "1". Therefore, the sections GH and GL output four-bit signals, respectively, to a selector 40 which also receives the time division signal 101. Further, the section GL outputs the signal to the clock input circuit 36 for the purpose explained hereinafter, and the section GR outputs a two-bit signal to the read-out signal generator 22 for the purpose also explained hereinafter. The selector 40 operates to select one bit from the output signal of the section GH in accordance with the time division signal 101, and also to select one bit from the section GL output signal in accordance with the time division signal 101. The two-bit output of the selector is applied to a gate circuit 42 provided between the bus 28 and an error memory 44. The gate circuit 42 is opened to couple the bus 28 to the error signal memory 44 when each of the output bits of the selector 40 is "1". The error signal memory 44 has four memory areas and is controlled by an associated address decoder 46 and a write signal generator 48 which both receive the time division signal 101. The write signal generator 48 also receives the phase detection pulses PG1 and PG2 and the frequency detection pulses FG1 and FG2, and operates, when one of these detection pulses is inputted, to generate a write signal 103 to the error signal memory 44 in synchronism with a corresponding one of the four timing division pulses P1, P2, F1 and F2. In response to the write signal 103, the error signal memory 44 writes the least significant 10 bits of the data from the gate circuit 42 into a memory area designated by the address decoder 46 in accordance with the time division signal 101. The data stored in the four memory areas is outputted as the error signal PE1, PE2, FE1 and FE2. Referring to Figure 3, there is shown a timing chart in the case of phase error detection operation of the generator shown in Figure 2. For simplification of drawing, the timing chart was prepared on the assumption that the time division signal 101 is the status P1 and the value of the data on the bus 28 continuously changes (by neglecting the data for the other status P2, F1 and F2). The phase reference signal SG1 is inputted to the read-out signal generator 22, which in turn generates the read-out signal 102 at the clock timing the time division signal becomes the status P1 just after the falling edge of the signal SG1. The preset value memory 24 outputs the preset value PP1 for the phase of the cylinder motor in accordance with the mode selection signal MS and the status P1 of the time division signal 101. As a result, the value PP1 is held on the bus 28 and written into the count memory 30. Thereafter, the data on the bus 28 is decremented by "1" at each time the time division signal 101 becomes the status P1. This value on the bus 28 is compared with the respective inherent values HP1, LP1 and RP1 by the count detectors GH (P1), GL (P1) and GR (P1). Thus, the gate circuit 42 is opened during such a period A that the data on the bus 28 is not greater than HP1 and not less than LP1 and the time division signal 101 assumes the status P1. If the phase detection pulse PG1 is inputted to the write signal generator 48 during the period A, the generator 48 generates the write signal 103 at the clock timing the time division signal 101 assumes the status P1 just after the rising edge of the signal PG1. In response to the write signal 103, the error signal memory 44 writes the least significant 10 bits of the data on the bus 28 in the memory area designated by the signal 101 (P1). The stored 10 bit-data is the error signal PE1. Now, assuming that the period of the phase reference signal SG1 is τ p1 and the designated phase difference for the phase P1 is ϑ₁, the preset data PP1 is so set that the data on the bus 28 becomes "0" when the time has elapsed from the phase reference signal SG1. With such setting, the error signal PE1 stored in the memory 44 represents the deviation from the designated phase difference ϑ₁ for the phase P1 expressed by the phase reference signal PG1, and also lead and lag of the phase is expressed by the sign of the signal PE1. As seen from the above, if the signal PG1 is inputted outside the period A, the data on the bus is not written to the memory 44. Namely, as will be apparent from Figure 3, an excessive error signal is prevented from being written into the memory. The inherent value RP1 of the count detector GR (P1) is set to be slightly smaller than a minimum value of the data on the bus 28 in the case that the phase reference signal SG1 is regularly applied. The read-out signal generator 22 is adapted to generate the read-out signal 102 when the counter detector GR (P1) outputs a one-bit signal of "0" and at the same time the time division signal 101 assumes the status P1. Therefore, the count detector GR (P1) serves to compensate accidental lacking of the phase reference signal SG1. The above explanation is directed to the phase error detection for the phase P1. But, the phase error detection for the phase P2 will be made similarly to the above operation. Turning to Figure 4, there is shown a timing chart in the case of frequency error detection operation of the generator shown in Figure 2. Similarly to Figure 3, for simplification of drawing, the timing chart was prepared on the assumption that the time division signal 101 is the status F1 and the value of the data on the bus 28 continuously changes (by neglecting the data for the other status P1, P2, and F2). The frequency detection signal FG1 is inputted to the read-out signal generator 22, which in turn generates the read-out signal 102 at the clock timing the time division signal becomes the status F1 just after the falling edge of the signal FG1. The preset value memory 24 outputs the preset value PF1 for the speed of the cylinder motor in accordance with the mode selection signal MS and the status F1 of the time division signal 101. As a result, the value PF1 is held on the bus 28 and written into the count memory 30. Thereafter, the data on the bus 28 is decremented by "1" at each time the time division signal 101 becomes the status F1. This value on the bus 28 is compared with the respective inherent values HF1 and LF1 by the count detectors GH (F1) and GL (F1). Thus, the gate circuit 42 is opened during such a period B that the data on the bus 28 is not greater than HF1 and not less than LF1 and the time division signal 101 assumes the status F1. The write signal generator 48 generates the write signal 103 at the same clock period as when the read-out signal 102 is generated by the read-out signal generator 22. Therefore, it is set such that the write signal 103 is generated during the same clock period as that of the read-out signal 102 but at a timing earlier than that that of the read-out signal 102, so that the least significant 10 bits of the data on the bus 28 are written into the memory 44 before the data on the bus 28 is returned to the value PF1. Here, the preset data PF1 is so set that the data on the bus 28 written into the error signal memory 44 becomes "0" when the period of the frequency detection signal FG1 is equal to the period τ F1 of the desired frequency for the frequency F1. With this setting, the error signal FE1 stored in the memory 44 represents the difference between the desired frequency and the frequency F1 expressed by the frequency detection signal FG1, and the plus and minus of the difference is expressed by the sign of the signal FE1. When the count detector GL (F1) outputs a one-bit signal of "0" and when the time division signal 101 assumes the status F1, the clock input circuit 36 inhibits passage of the clock pulse CL, so that the half adder stops the count down operation. Therefore, the count detector GL (F1) prevents the data on the bus line 28 from being decremented to the value (LF1-1) or less. Further, if the frequency detection signal FG1 is inputted outside the period B, the data on the bus is not written to the memory 44. Namely, an excessive error signal FE1 is prevented from being written into the memory. The above explanation is directed to the frequency error detection for the frequency F1. But, the frequency error detection for the frequency F2 will be made similarly to the above operation.

Claims: An error signal generator for generating a plurality of error signals, each corresponding to one control target value and indicative of the difference between a preset reference value and a detection value of said one control target value, the error signals having a value corresponding to the difference in time between the occurence of a corresponding error detection operation trigger signal and the occurence of a corresponding detection signal, comprising: a time controller (20) for sequentially and periodically generating time division signals of the number of corresponding to that of the control target values, the time division signals being distinguishable from each other and indicating the control target momentarily dealt with, means (22) receiving the time division signals and the error detection operation trigger signals for the respective control target values, the means (22) generating a read-out signal in response to the occurence of an error detection operation trigger signal when the corresponding time division signal occurs; means (24) storing the corresponding number of the reference values for the control target values and responsive to the read-out signal so as to output to a bus (28) the preset reference value designated by the time division signal; a count memory (30) having the corresponding number of memory areas and storing the preset reference value outputted on the bus (28) into a memory area designated by the time division signal, the count memory (30) being responsive to the time division signal so as to read out the data to the bus (28) from the memory area designated by the time division signal and then to write the data on the bus (28) into the memory area designated by the time division signal; means (34) periodically subtracting a predetermined value from the data on the bus and returning the result of the subtraction to the bus; said count memory (30) and said subtracting means (34) being controlled on basis of a clock signal so that the data read out on the bus (28) from one memory area of said count memory (30) is subtracted by said predetermined value in said subtracting means (34) and the result of the subtraction is written in the same one memory area of the count memory (30) so as to gradually decrement the count values in said count memory for each of said control targets starting from the respective preset reference values; an error memory (44) having the corresponding number of the memory areas and being responsive to the corresponding number of detection signals for the control targets so as to write the data on the bus (28) into the memory area designated by the time division signal thereby copying the corresponding count value in the count memory when the corresponding detection signal occurs, the respective memory areas providing the data stored therein as the error signals, a gate (42) circuit provided between the bus (22) and the error memory (44) and responsive to allow passage of the data on the bus (28) to the error memory (44) only when the data on the bus (28) fulfills a given condition; and a count detector (38) coupled to the bus (28) and having at least first and second given threshold values, the count detector being operative to put the gate circuit (42) in an open condition when the data on the bus is not greater than the first threshold value and not less than the second threshold value so as to establish a respective time window for each control target value, in which window the corresponding detection signal is accepted. A generator claimed in claim 1, wherein the count detector (38) also has a third threshold value smaller than the second threshold value, the count detector (38) being operative to produce a supplementary trigger signal to the read-out signal generating means (22) when the data on the bus (28) becomes less than the third threshold value, so that the read-out signal generating means (22) will generate the read-out signal in response to the supplementary trigger signal even at no occurence of the trigger signal. A generator claimed in claim 1, wherein the count detector (38) operates to stop the operation of the subtraction means (34) when the data on the bus (28) is less than the second threshold value. A generator claimed in claim 1, wherein the control values include at least two phases, the trigger signals include at least two phase reference signals, and the detection signals include at least two phase detection signals. A generator claimed in claim 1, wherein the control values includes at least two frequencies, the detection signals include at least two frequency detection signals, and the trigger signals are the frequency detection signals in respect of frequency control. A generator claimed in claim 1, wherein the control values includes two phases and two frequencies, the detection signals include two phase detection signals and two frequency detection signals, and the trigger signals include two phase reference signals and the above two frequency detection signals.

Inventors: SHIMADA, JIROH C/O NEC CORPORATION
Applicants: NEC CORPORATION
Application year: 1986
Main classification: G11B15
IPC codes: G11B15, G05D13, G05B15, H02P5, H02P23