Background of the Invention
1. Field of the Invention
This invention relates to a data transfer system for use in, for example, a video tape recorder, which transfers data from a microcomputer incorporated in the recorder to an integrated circuit for controlling a servomotor incorporated therein.
2. Description of the Related Art
Published Unexamined Japanese Patent Application No. 57-106262 discloses two types of data transfer systems. The first type employs two transfer lines for transmitting a clock signal and a data signal, respectively. The second type is identical to the first type, except that it has one more line for controlling the start and finish of data transmission.
More specifically, the first-type system comprises a data transfer apparatus for transmitting clock signal and binary serial-data signals, a bidirectional bus having two lines connected to the data transfer apparatus, and a plurality of data transfer/receiving terminal units connected to the bus. Each of the terminal units has two terminals, one for receiving a signal from the bidirectional bus, and the other for transmitting a signal in reply to the signal received.
Since each of the data transfer/receiving terminal units requires transfer/receiving terminals connected to the bus, respectively, the system inevitably has a complex hardware structure.
Further, the data transfer apparatus transmits a data signal which has identical logic levels at times corresponding to the leading and trailing edges of a clock signal, but does not transmit a sub-data signal which has logic levels temporarily inverted at any time between the leading and trailing edges of the clock signal. With this structure, it is impossible to transmit lots of data.
On the other hand, the second-type system requires as many as three transfer lines.
Summary of the Invention
It is the object of the invention to provide a data transfer system which employs two transfer lines, and data receiving terminal units having only receiving terminals for the lines, resulting in a simple hardware structure, and to provide a data transfer method which enables the system of simple structure to accurately control the start and finish of data transmission.
To attain the above object, the data transfer system of the invention comprises:
a data transfer apparatus (1) for transmitting clock signals (SCK.sub.1) and binary data signals (SDT.sub.1), the data signals being transmitted in serial order, of which a signal transmitted at the start has a first logic level at a time corresponding to a leading edge of a clock signal (SCK.sub.1) and a second logic level at a time corresponding to a trailing edge of the same, signals transmitted after the start have identical logic levels at times corresponding to the leading edge and trailing edge of the transfer clock signal, and a signal transmitted at the edge has the second level at the time corresponding to the leading edge of the cock signal and the first logic level at the time corresponding to the trailing edge of the same;
a clock signal-transfer line (2) connected to the data transfer apparatus (1);
a data signal-transfer line (2a) connected to the data transfer apparatus (1); and
at least one data receiving terminal unit (3) connected to the clock signal-transfer line (2) and data signal-transfer line (2a), the data receiving terminal unit (3) regarding the data signal (SDT.sub.2) transmitted from data transfer apparatus (1) as a transfer start signal (START) when it detects that the data signal (SDT.sub.2) transmitted at the time corresponding to the leading edge of the clock signal (SCK.sub.2) transmitted from the apparatus (1) has the first logic level, and that the data signal (SDT.sub.2) transmitted at the time corresponding to the trailing edge of the same has the second logic level, also regarding the data signal (SDT.sub.2) as a transfer data signal when it detects that the data signal (SDT.sub.2) transmitted at the time corresponding to the leading edge of the clock signal (SCK.sub.2) has the same logic level as that transmitted at the time corresponding to the trailing edge of the same, and further regarding the data signal (DST.sub.2) as a transfer end signal (END) when it detects that the data signal (SDT.sub.2) transmitted at the time corresponding to the leading edge of the clock signal (SCK.sub.2) has the second logic level, and that the data signal (SDT.sub.2) transmitted at the time corresponding to the trailing edge of the same has the first logic level.
According to another aspect of the invention, a method of transmitting data is provided which comprises the steps of:
transmitting clock signal (SCK.sub.1) from a date transfer apparatus (1) to at least one receiving terminal unit (3) connected to the apparatus (1) via a clock signal-transfer line (2);
transmitting binary data signals (SDT.sub.1) in serial order from the data transfer apparatus (1) to the receiving terminal unit (3) connected to the apparatus (1) via a data signal-transfer line (2a);
making the data transfer apparatus (3) regard the data signal (SDT.sub.2) transmitted from data transfer apparatus (1) as a transfer start signal (START) when the apparatus (3) detects that the data signal (SDT.sub.2) transmitted at a time corresponding to a leading edge of a clock signal (SCK.sub.2) transmitted from the apparatus (1) has a first logic level, and that the data signal (SDT.sub.2) transmitted at a time corresponding to a trailing edge of the same has a second logic level;
making the apparatus (3) regard the data signal (SDT.sub.2) as a transfer data signal when it detects that the data signal (SDT.sub.2) transmitted at the time corresponding to the leading edge of the clock signal (SCK.sub.2) has the same logic level as that transmitted at the time corresponding to the trailing edge of the same; and
making the apparatus (3) regard the data signal (SDT.sub.2) as a transfer ed signal (END) when it detects that the data signal (SDT.sub.2) transmitted at the time corresponding to the leading edge of the clock signal (SCK.sub.2) has the second logic level, and that the data signal (SDT.sub.2) transmitted at the time corresponding to the trailing edge of the same has the first logic level.
According to the invention constructed as above, the start time of data transmission, the end time thereof, and the time therebetween are determined by comparing logic levels of a data signal (SDT.sub.2) assumed at times corresponding to the leading and trailing edges of a clock signal (SCK.sub.2), so that the start and end of the data transmission can be controlled by using only two transfer lines (2, 2a). In addition, each data receiving terminal unit (3) has only receiving terminals connected to the transfer lines (2, 2a), resulting in a simple hardware structure.
Additional objects and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objects and advantages of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out in the appended claims.
Brief Description of the Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate a presently preferred embodiment of the invention, and together with the general description given above and the detailed description of the preferred embodiment given below, serve to explain the principles of the invention.
FIG. 1 is a block diagram, showing a data transfer apparatus according to an embodiment of the present invention;
A-D of FIG. 2 are waveform charts, showing the relationship between the logic levels of data signals transmitted from the data transfer apparatus shown in FIG. 1 and the leading/trailing edges of clock signals transmitted from the same;
FIG. 3 is a circuit diagram of a data receiver shown in FIG. 1;
FIG. 4 is a circuit diagram of another data receiver shown in FIG. 1;
FIG. 5 is a waveform chart, showing the operation of data receiving terminal units shown in FIGS. 3 and 4;
FIG. 6 is a circuit diagram of a timing circuit shown in FIGS. 3 and 4; and
FIG. 7 is a waveform chart, showing the operation of the timing circuit shown in FIG. 6.
Detailed Description of the Preferred Embodiment
The invention will now be explained in detail with reference to the accompanying drawings showing an embodiment thereof.
FIG. 1 shows that data transfer system for use in, for example, a video tape recorder, which transmits data from a microcomputer incorporated in the recorder to an integrated circuit for controlling a servomotor incorporated therein. In the FIGURE, reference numeral 1 denotes a data transfer apparatus for transmitting transfer clock signals SCK.sub.1 and binary transfer data signals SDT.sub.1, reference numerals 2 and 2a a clock signal-transfer line and a data signal-transfer line, both connected to the data transfer apparatus 1, and reference numeral 3 a plurality of data-receiving terminal units for receiving the transfer clock signals SCK.sub.1 and binary transfer data signals SDT.sub.1 transmitted through the lines 2 and 2a.
At the start of transmission of the transfer data signal SDT.sub.1, the data transfer apparatus 1 generates a transfer start signal START having logic levels which are different at times corresponding to the leading edge and trailing edge of a clock signal SCK.sub.1. During the transmission of the signal SDT.sub.1, the apparatus 1 generates, in serial order, signals SDT.sub.1 having logic levels which are identical at times corresponding to the leading edge and trailing edge of each clock signal SCKP.sub.1. The logic level of the transfer data signal SDT.sub.1 is usually inverted at a time between the trailing edge of a certain one of the transfer clock signals SCK.sub.1 and the leading edge of the following one. At the end of transmission, the apparatus 1 generates a transfer end signal END having logic levels inverted at times corresponding to the leading edge and trailing edge of the clock signal SCK.sub.1. It should be noted that the logic level of the transfer end signal END changes in the opposite way to that of the transfer start signal START.
The above-described structure of the data transfer apparatus 1 comprising a microcomputer or the like is known to those skilled in the art.
A-D of FIG. 2 show four examples of the relationship between the logic level of the transfer data signal SDT.sub.1 and the leading and trailing edges of the transfer clock signal SCK.sub.1. Specifically, A of FIG. 2 shows one example. In the FIGURE, at the start of the transmission, the transfer data signal SDT.sub.1 has a low level "L" at the rise of the transfer clock signal SCK.sub.1, and a high level "H" at the fall of the same. During the transmission, for example, a signal of low level "L" containing 2-bit data is transmitted, and then a signal of high level "H" containing 2-bit data is transmitted. At the end of the transfer, the level of the signal SDT.sub.1 is high at the rise of the transfer clock signal SCK.sub.1, and becomes low at the fall of the same.
B of FIG. 2 shows another example. At the start of the transmission, the level of the transfer data signal SDT.sub.1 is high at the rise of the transfer clock signal SCK.sub.1, and becomes low at the fall of the same. During the transmission, for example, a signal of low level "L" containing 2-bit data is transmitted, and then a signal of high level "H" containing 2-bit data is transmitted. At the end of the transmission, the level of the signal SDT.sub.1 is low at the rise of the transfer clock signal SCK.sub.1, and becomes high at the fall of the same.
Further, as is shown in C of FIG. 2, at the start of the transfer, the level of the transfer data signal SDT.sub.1 is low at the fall of the transfer clock signal SCK.sub.1, and becomes high at the rise of the same. During the transmission, for example, a signal of low level "L" containing 2-bit data is transmitted, and then a signal of high level "H" containing 2-bit data is transmitted. At the end of the transmission, the level of the signal SDT.sub.1 is high at the fall of the transfer clock signal SCK.sub.1, and becomes low at the rise of the same.
Finally, as is shown in D of FIG. 2, at the start of the transmission, the level of the transfer data signal STD.sub.1 is high at the fall of the transfer clock signal SCK.sub.1, and becomes low at the rise of the same. During the transmission, for example, a signal of low level "L" containing 2-bit data is transmitted, and then a signal of high level "H" containing 2-bit data is transmitted. At the end of the transmission, the level of the signal SDT.sub.1 is low at the fall of the transfer clock signal SCK.sub.1, and becomes high at the rise of the same.
In A-D of FIG. 2, if the logic level of the transfer data signal SDT.sub.1 is temporarily inverted between the leading and trailing edges of the transfer clock signal SCK.sub.1, the data can be considered normal.
The data-receiving terminal units 3 have signal-receiving terminals connected to the transfer lines 2 and 2a, and is constructed as follows:
The transfer data signal SDT.sub.1 and transfer clock signal SCK.sub.1 transmitted from the data transfer apparatus 1 are hereinafter referred to as "received data signal SDT2" and "received clock signal SCK.sub.2 ", respectively. When each data-receiving terminal unit 3 detects that the logic level of the received data signal SDT.sub.2 has been changed from a first value to a second value between the leading edge and trailing edge of the received clock signal SCK.sub.2, the unit 3 regards the signal as the transfer start signal START, and starts to receive the following signals. Subsequently, when it detects that the logic level of the following received data signal SDT.sub.2 is not changed between the leading edge and trailing edge of the received clock signal SCK.sub.2, it regards the signal as a received data signal D.sub.0. Further, when it detects that the logic level of the received data signal SDT.sub.2 has been changed from the second value to the first value between the leading edge and trailing edge of the received clock signal SCK.sub.2, it regards the signal as the transfer end signal END.
FIG. 3 shows an example of the data receiving terminal unit 3 comprising an integrated circuit. Reference numerals 30a and 30 denote a clock-receiving terminal and a data-receiving terminal which are connected to the transfer lines 2 and 2a, respectively. A timing circuit 31 receives the clock signal SCK.sub.2 and serial data signal SDT.sub.2 through the receiving terminals 30 and 30a. Upon detection of the transfer start signal START, the circuit 31 starts to receive the following signals. Then, upon receipt of the following clock signal SCK.sub.2 and serial data signal SDT.sub.2, it generates clock signals SCKA and a data signals SDTA. Further, upon detection of the transfer end signal END, it stops generating the signals SCKA and SDTA, and simultaneously activates a latch signal LATCH. A shift register 32 receives the data signals SDTA in serial order and in synchronism with the respective leading edges of the clock pulses SCKA. Upon activation of the latch signal LATCH, a latch circuit 33 latches the data transmitted from the shift register 32, also decodes the serial data to parallel data, and further transmits them to a circuit contained in the integrated circuit.
As is shown in FIG. 4, the data receiving terminal unit 3 may be modified such that it detects the number of bits of data transmitted from the generation of the transfer start signal START to that of the transfer end signal END by counting the clock signals SCKA by means of a counter 34, and receives the transfer data only if the number of the bits counted meets a predetermined value. In this case, a plurality of data receiving terminal units 3 can select respective particular data, if each unit is set to receive that signal of a particular number of bits which indicates a corresponding data.
FIG. 5 shows the operation of the data receiving terminal unit 3 performed when it receives those clock signals SCK.sub.1 and serial data signals SDT.sub.1 which are transmitted from the data transfer apparatus 1 at the timing shown in A of FIG. 2. The unit 3 regards the received data signal SDT.sub.2 as the transfer start signal START when it detects that the level of the signal SDT.sub.2 has changed from the "L" level to the "H" level between the leading edge and trailing edge of the received clock signal SCK.sub.2. Upon generation of the signal START, the latch signal LATCH is made inactive. Then, the received data signal SDT.sub.2 is regarded as the transfer data signal D.sub.0 while the unit 3 detects that the level of the signal SDT.sub.2 is unchanged between the leading edge and trailing edge of the received clock signal SCK.sub.2. The transfer data signals D.sub.0 -Dn are output after the transfer start signal START is inactivated. The signal SDT.sub.2 is regarded as the transfer end signal END when the level of the signal SDT.sub.2 is detected to change from the "H" level to the "L" level between the leading edge and trailing edge of the received clock signal SCK.sub.2, thereby activating the latch signal LATCH.
The hatched portions shown in FIG. 5 indicates time periods in which the logic level is maintained as it is.
FIG. 6 shows a specific structure of the timing circuit 31 shown in FIG. 3. Reference numerals 51-54 denote D-type flip-flop circuits, numerals 55 and 56 inverters, numeral 57 an AND gate having two input terminals, numeral 58 a NOR gate having two input terminals, numerals 59 and 60 NOR gates each having two input terminals and one output terminal, and numeral 61 a NOR gate having three input terminals. The output terminal of one of the NOR gates is connected to one of the input terminals of the other NOR gate, while the output terminal of the second-mentioned gate is connected to one of the input terminals of the first-mentioned gate. The first flip-flop circuit 51 has a data input terminal D for receiving the data signal SDT.sub.2, a clock input terminal CK for receiving an inverted clock signal SCK obtained by inverting the received clock signal SCK.sub.2 by the inverter 55, and an output terminal Q for outputting the data signal SDTA. The second flip-flop circuit 52 has a data input terminal D for receiving the data signal SDT.sub.2, a clock input terminal CK for receiving the clock signal SCK.sub.2, and an output terminal Q. A signal A output from the terminal Q is inverted by the inverter 56, and then input into the AND gate 57, together with the received data signal SDT.sub.2. The output from the inverter 56 is input into the NOR gate 58, together with the received data signal SDT.sub.2. The third flip-flop circuit 53 has a data input terminal D for receiving the output of the AND gate 57, a clock input terminal CK for receiving the inverted clock signal SCK, and an output terminal Q for outputting a signal B (the transfer start signal START). The signal B is input into the NOR gate 61, together with the inverted clock signal SCK. The fourth flip-flop circuit 54 has a data input terminal D for receiving the output of the NOR gate 58, a clock input terminal CK for receiving the inverted clock signal SCK, and an output terminal Q for outputting the latch signal LATCH. One of the two input terminals of the NOR gate 59 receives the latch signal LATCH (transfer end signal END), and one of two input terminals of the NOR gate 60 receives the signal B (transfer start signal START). The output of the NOR gate 60 is input into the NOR gate 61, which in turn outputs the clock signal SCKA.
FIG. 7 shows waveforms useful in explaining the operation of the timing circuit 31 shown in FIG. 6. The circuit 31 starts signal reception upon detection of the transfer start signal START. Subsequently, it generates, upon detection of the received clock signal SCK.sub.2 and serial data signals SDT.sub.2, the clock signal SCKA (having the same phase as the clock signal SCK) and the data signal SDTA (this signal is 180.degree., out of phase with respect to the clock signal SCK, and varies at the time corresponding to the trailing edge of the clock signal SCK). Then, when the circuit 31 detects the transfer end signal END, it stops the generation of the clock signal SCKA and data signal SDTA, and simultaneously activates the latch signal LATCH.
In the above-described embodiment, although the data signal SDT.sub.1 is transmitted which has logic levels being identical between the leading edge and trailing edge of the transfer clock signal SCK.sub.1, the present invention can be modified, as shown in A-D of FIG. 2, such that the transfer apparatus 1 transmits a sub-data SBD whose logic level is inverted temporarily between the leading and trailing edges of the transfer clock signal SCK.sub.1, and the receiving terminal unit 3 detects whether or not the data signal is temporarily inverted therebetween, thereby enabling the transmission of the sub-data SBD, as well as the main data SDT.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details, representative devices, and illustrated examples shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.