Data processor having a high speed data transfer function

Abstract: A transmitting data processor comprises a data processing unit for supplying a predetermined length of data to be transferred and generating a transfer start signal, and a data transferring unit receiving the predetermined length of data to be transferred from the data processing unit and for transferring the predetermined length of data in a serial form to a receiving data processor. The transmitting data processor also includes a busy detector for detecting a busy signal from the receiving data processor, a register for temporarily holding the transfer start signal from the data processing unit, and a start controller associated to the data transferring unit for causing the data transferring unit to stop the transfer of data during the period the busy signal is active and for allowing the data transferring unit to start the transfer of data when the busy signal becomes inactive after the transfer start signal is generated. The receiving data processor includes a data receiving unit for receiving the predetermined length of data transferred from the transmitting data processor, and a data processing unit coupled to the receiving unit for processing the received data and generating a transfer acknowledge signal when it has completed the processing of the received data. The receiving data processor also includes a busy signal generator for generating the above mentioned busy signal in response to completion of reception of the predetermined length of data and making the busy signal inactive when the transfer acknowledge signal is generated.

Description: The present invention relates to a data transfer system including a first and a second data processor according to the preamble part of the main claim. From PROCEEDINGS OF THE FALL JOINT COMPUTER CONFERENCE, Anaheim, CA, 5th-7th December 1972, Vol. 41, pages 719-740, Afips Press, Montvale, NJ, US; K.J. THURBER et al.: "A systematic approach to the design of digital bussing structures" a bus system is known wherein the bus parameters are common to all levels of the system hierarchy. From EDN ELECTRICAL DESIGN NEWS, Vol. 31, No. 7, April 1986, pages 153-160,162, Boston, Massachusetts, US; C.K. FENGER: "Bus links peripherals, multiple masters in low-speed network" a serial bus is known with which microcontrollers are linked to local peripherals or other local controllers. In this serial bus system a subroutine checks the transfer of data to a microcontroller and then terminates the transfer. As means for transferring data between a plurality of semiconductor processors (called "LSI" hereinafter) there are a method using a data bus of 8 bits or more parallel lines and a serial transfer method transferring the data in series bit by bit. Since the latter method requires a less number of signal lines for connecting LSIs one another, it is largely used as a simple data transfer means between LSIs. In the serial data transfer, one data (for example, of 8 bits) is transferred continuously in the form of serial bits, but an interval period is required between transfers of each unit data to confirm the reception. If the receiver is not capable of receiving data, it is necessary to wait until the receiver becomes receivable. Conventionally, in the case of not receivable, a BUSY signal is supplied to the transmitter. The transmitter checks the BUSY signal and discriminates whether or not the data can be transferred so as to generate a transfer start signal when it becomes possible to transfer. This start signal is needed in order to control a serial clock necessary for a serial data transfer or clear a counter counting the bit number of data to be transferred. However, the conventional serial data processor has been so designated that after checking whether or not the processor which is as a receiver is in a busy condition, a start signal for the next data transfer is not generated until the busy condition is dissolved. Thus, in the case that the busy condition extends for a long time, a useless waiting time for checking the busy condition is increased, lowering the efficiency of the whole data processing. Specifically, in the serial data processor it is the simplest way to check the busy condition by an interrupt processing. However, in a data processor which does not have a function of the multi-interrupt control, if another interrupt is generated during the checking time, the processing of the second interrupt must be waited until it is returned to the main program after dissolution of the busy condition. Thus, there has been a problem that it takes extremely long time to response to the interrupt. Further, it is necessary to prepare a program for maintaining the data processor in a waiting condition until the busy condition is dissolved, thereby limiting the program area for the proper data processing. On the other hand, a serial data processor which is as a receiver, after having received a serial data, outputs a BUSY signal so as to inform another serial data processor which is as a transmitter that the receiving device is in the course of data processing. Therefore, it has been required to execute special programs for setting and dissolving the BUSY signal. Such programs are mostly started by an interrupt processing. Since it must take a long time to execute an interrupt processing for the BUSY control, a long period is required until the data processor returns to the proper main program processing after reception of the serial data. Further, as it is necessary to prepare the programs for setting and dissolving the BUSY condition, there has been a problem that the program area for the proper data processing is limited by the programs for controlling the BUSY. Particularly, in the case that a large amount of data are transferred in serial, one round of the processing consisting of a 1-bite serial data transfer and a data processing needs a long time. Thus, there has been also a drawback that the transfer speed is lowered. Summary of the Invention Accordingly, it is an object of the present invention is to provide a data processor having a data transfer function, which has overcome at least one of the above mentioned drawbacks of the conventional ones. Another object of the present invention is to provide a data processor which can execute a serial data transfer at a high speed. Still another object of the present invention is to provide a data processor which can be used as a transmitter and which can wait the dissolution of the busy condition of a receiving device while allowing processing of an interrupt generated in the busy condition. A further object of the present invention is to provide a data processor which can be used as a receiver and which can generate a busy signal without requiring special program, so that the data processor can process an interrupt generated in the busy condition. This and other objects are solved by the features of the characterizing part of the main claim. Preferably, the data transferring means includes a shift register having a parallel input coupled through an internal data bus to the data processing means to receive a predetermined length of parallel data from the data processing means, the shift register having a serial output coupled to the data transfer terminal, and a clock control means for generating a serial clock to a clock transferring terminal and to the shift register so as to cause the data held in the shift register to be outputted from the serial output of the shift register in synchronism with the serial clock. Further, the transfer inhibit signal detecting means includes a busy detector responsive to a busy signal from a data receiving device for generating a busy detection signal, and the transfer start signal holding means includes a flip-flop adapted to be set by the transfer start signal so as to generate a start memory signal. In addition, the transfer control means includes a transfer start controller receiving the busy detection signal and the start memory signal for generating, when the busy detection signal is inactive and the start memory signal is active, a start trigger signal to the clock control means and the flip-flop, so that the clock control means causes the shift register to output the serial data and the flip-flop is reset. In one embodiment, the busy detector is connected at its input to a busy signal terminal independent of the data transfer terminal. In another embodiment, the busy detector is connected at its input to the data transfer terminal, and the serial output of the shift register is connected to an input of an buffer circuit whose output is connected to the data transfer terminal. The output of the buffer circuit assumes either a high impedance condition or a low level condition in response to the input so that when the data transfer terminal is connected to a pulled-up data transfer line, the data transfer line is selectively brought either into a low level or into a high level in accordance with the output condition of the buffer circuit. In accordance with another aspect of the present invention there is provided a data processor comprising a data receiving means for receiving a predetermined length of data through a data transfer terminal and generating a reception end signal when the predetermined length of data has been received, a data processing means coupled to the data receiving means for processing the received data and generating a transfer acknowledge signal when the processing of the received data has been completed, and means receiving the reception end signal and the transfer acknowledge signal for generating a transfer inhibit signal after the reception end signal has been generated until the transfer acknowledge signal has been generated. Preferably, the data receiving means includes a shift register having a serial input coupled to the data transfer terminal and a parallel output coupled through an internal data bus to the data processing means, and a clock control means receiving a serial clock through a clock transferring terminal for causing the transfer data to be serially inputted to the shift register in synchronism with the received clock. Furthermore, the transfer inhibit signal generating means includes a flip-flop having a set input connected to receive the reception end signal and a reset input connected to receive the transfer acknowledge signal. The flip-flop also has an inverted output generating a busy signal which is rendered active when the reception end signal becomes active and is rendered inactive when the transfer acknowledge signal becomes active. In one embodiment, the inverted output of the flip-flop is connected to a busy signal terminals independent of the data transfer terminal. In another embodiment, the clock control means is adapted to generate a synchronizing clock after the predetermined length of data has been received, and the processor further includes a synchronizing flip-flop receiving the inverted output of the busy signal generating flip-flop and the synchronizing clock for generating a synchronous busy signal starting from a first synchronizing clock after the inverted output of the busy signal generating flip-flop is rendered active, and a buffer circuit having an input connected to receive the synchronous busy signal and an output connected to the data transfer terminal. The output of the buffer circuit assumes a high impedance condition when the synchronous busy signal is inactive and a low level condition when the synchronous busy signal is active, so that when the data transfer terminal is connected to a pulled-up data transfer line, the data transfer line is selectively brought either into a low level or into a high level in accordance with the output condition of the buffer circuit. The above and other objects, features and advantages of the present invention will be apparent from the following description of preferred embodiments of the invention with reference to the accompanying drawings. Brief Description of the Drawings Figure 1 is a block diagram of a serial data processor of a first embodiment in accordance with the present invention; Figure 2 is a timing chart of a serial data transmitted/received by the serial data processor of the first embodiment; Figure 3 is a block diagram showing a serial data processor of a second embodiment in accordance with the present invention; Figure 4 is a timing chart of a serial data transmitted/received by the serial data processor of the second embodiment; Figure 5 is a timing chart showing the comparison of the respective data processing operations of the serial data processor according to the present invention and the conventional serial data processor; Figure 6 is a block diagram showing a serial data processor of a third embodiment in accordance with the present invention; Figure 7 is a timing chart of a serial data transmitted/received by the serial data processor of the third embodiment; Figure 8 is a block diagram showing a serial data processor of a fourth embodiment according to the present invention; Figure 9 is a timing chart of a serial data transferred/received by the serial data processor of the fourth embodiment; and Figure 10 is a timing chart illustrating the comparison of respective data processing operations by the serial data processor according to the present invention and the conventional serial data processor. Description of Preferred Embodiments Figure 1 is a block diagram of a data transfer system including a serial data processor of the first embodiment in accordance with the present invention, which includes a first serial data processor 100 which is used as a transmitter and a second serial data processor 310 which is used as a receiver. First, the explanation will be made on the first serial data processor 100 which is as the transmitter. The first serial data processor 100 comprises a shift register 301, a serial clock controller 302, a busy detector 170, a start controller 171, a start memory flip-flop 172, an internal data bus 305, a data processing unit 306, a serial data output terminal 330, a serial clock terminal 332 and a BUSY input terminal 333, which are coupled as shown. Among them, since the shift register 301, the serial data output terminal 330, the serial clock terminal 332, the BUSY input terminal 333, the internal data bus 305 and the data processing unit 306 may be identical with corresponding ones of conventional devices, and therefore, detailed description thereon will be omitted. The start memory flip-flop 172 is used to store that the start instruction has been dispatched. The flip-flop 172 is set by a transfer start signal 350 generated by the data processing unit 306 at the time of execution of a transfer start instruction so as to output a high level of start memory signal 154. The BUSY detector 170 receives a BUSY signal from the BUSY input terminal 333 and detect the condition of the busy signal. If the input signal is at a low level, i.e., in a busy condition, a high level signal is outputted as a BUSY detection signal 155. On the other hand, if the input signal is at a high level, i.e., not in the busy condition, a low level signal is outputted. The start controller 171 operates to inhibit the start of the serial transfer at the time of the busy condition. The start controller 171 receives the BUSY detection signal 155 and the start memory signal 154. When the BUSY detection signal 155 is at a low level and the start memory signal 154 is at a high level, the start controller 171 outputs a one shot pulse as a start trigger signal 153 to the clock controller 302. On the other hand, if the BUSY detection signal 155 is at a low level, the start controller 171 outputs the start trigger signal 153 just after the start memory signal 154 has become a high level. When the BUSY detector 170 detects the condition of the BUSY signal inputted from the BUSY input terminal 333 and outputs a high level signal as the BUSY detection signal 155, even if a high level signal is outputted as the start memory signal 154, the one shot start trigger signal 153 will be not outputted to the serial clock controller 302. Thus, the serial clock controller 302 does not generate a serial clock. Namely, the start of the serial data transfer is reserved. When the start memory signal 154 is at a high level and then, the BUSY detector 170 outputs a low level signal 153 after detecting the dissolution of the busy condition, the start controller 171 outputs the start trigger signal 153 so as to dissolve the start reservation. When the start trigger signal 153 is outputted, the start memory flip-flop 172 is cleared by the same signal so that the start memory signal 154 becomes at a low level. The serial clock controller 302, after receiving the start trigger signal 153, outputs the serial clock to the serial clock terminal 332 and the shift register 301. Then, the shift register 301 initiates the shift operation. The second serial data processor 310 which is as a receiver may be of the same construction as that of the first serial data processor except that the second one has a BUSY signal generator 314. Therefore, circuits, lines, signals and terminals similar to corresponding ones of the first data processor 100 are given the Reference Numerals which are obtained by adding 10 to the Reference Numerals given to the corresponding ones of the first data processor 100. Explanation on the similar ones of the second data processor 310 will be omitted. Next, description will be made on an operation in the case that an 8-bit data is transferred from the first serial data processor 100 to the second serial data processor 310. The processor 100 is coupled to the processor 310 through a serial data line 320, a serial clock line 321 and a BUSY signal line 323. Figure 2 is a timing chart illustrating the synchronous relation between a serial data on the serial data line 320, a serial clock on the serial clock line 322, a BUSY signal on the BUSY signal line 323. A transfer operation of the 8-bit data from the first serial data processor 100 to the second serial data processor 310 is carried out by serially transmitting each bit of the data to be transferred in synchronism with the clock falling of t₁, t₃, t₅ ... t₁₅ and receiving them in serial in synchronism with the clock rising of t₂, t₄ ... t₁₆. The second serial data processor 310, after having received the 8-bit serial data, generates a serial interrupt at a timing of t16. Then, the data processing unit 316 reads out the content of the shift register 311 through the internal data bus 315 so as to execute the required data processing. The BUSY signal generator 314 outputs, by an interrupt processing, a low level signal on the BUSY signal line 323 at a timing t₁₇ so as to inform the first serial data processor 100 of the busy condition. The first serial data processor 100 which is as the transmitter detects the busy condition by means of the BUSY detector 170. The BUSY detector 170 detects the condition of the BUSY signal inputted from the BUSY input terminal 333 at the timing t₁₇. If it is in a busy condition, the BUSY detector 170 turns the BUSY detection signal 155 to a high level. The data processing unit 306, having completed the processing for the next serial data (for example, setting the data to be next transferred to the shift register) in an interrupt mode, dispatches the transfer start instruction at a timing of t₁₈ in the same interrupt mode in order to carry out the next serial data transfer, and then outputs the transfer start signal 350. This operation is executed independently of the BUSY detection. Thereafter, the data processing unit 306 returns from the serial interrupt program to the main program, so as to execute its proper data processing. The start memory flip-flop 172 is set by the transfer start signal 350, so that the start memory signal 154 is brought into a high level. The start controller 171 detects the transfer start instruction when the start memory signal 154 at a high level is inputted. But, during a period until t₁₉, the start trigger signal 153 is not outputted because the high level of the BUSY detection signal 155 is outputted. Namely, while the second serial data processor 310 is outputting the BUSY signal, the start trigger signal 153 is not outputted, and therefore, the serial clock controller 302 cannot generate the serial clock. Thus, in this condition, the initiation of the serial transfer operation is reserved. When the second serial data processor 310 which is as the receiver completes the data processing and dissolves the busy condition so that the BUSY signal line 323 is turned to a high level from a low level, the BUSY detection signal 155 is turned to a low level. When this BUSY detection signal 155 is turned to a low level, and if the start memory signal 154 is at a high level i.e., there are satisfied two conditions of non-busy condition of the second serial data processor 310 and the start instruction execution, the one-shot start trigger signal 153 is outputted. After the start controller 171 outputs the start trigger signal 153, the serial clock controller 302 generates the serial clock. Then, there is initiated the shift operation of the shift register 301 wherein the 8-bit data to be next transferred is set, so that the 8-bit data is transmitted 1-bit by 1-bit to the processor 310. The start memory flip-flop 172 is cleared by the output of the start trigger signal 153. As a result, the start memory signal 154 is turned to a low level. As seen from the above, in this embodiment, the start memory flip-flop stores that there has been a transfer start instruction of the serial data. Therefore, the data processing unit can immediately return to the main program from the serial interrupt program without waiting while the BUSY signal is being outputted, so as to execute the proper data processing. Figure 3 is a block diagram showing a second embodiment of a serial data processor including a first serial data processor 200 which is used as a transmitter and a second serial data processor 210 which is used as a receiver. In this embodiment, the BUSY signal line is omitted and the BUSY signal is transferred by using the serial data transfer line. Thus, the first and second data processors are connected each other by means of only two signal lines (data line and clock line). This embodiment is different from the first embodiment in a construction that the busy condition of the receiver is transmitted to the transmitter through the serial data input/output terminals. Therefore, circuits, lines, signals and terminals, similar to those shown in Figure 1 are given the same Reference Numerals. First, the explanation will be made on the first serial data processor 200. The first serial data processor 200 comprises a shift register 301, a serial clock controller 302, a BUSY detector 170, a start controller 171, a start memory flip-flop 172, an internal data bus 305, a data processing unit 306, a shift register output buffer 281, a serial data input/output terminal 235 and a serial clock terminal 332, which are coupled as shown. Among them, the shift register 301, the start controller 171, the start memory flip-flop 172, the internal data bus 305, the data processing unit 306 and the serial clock terminal are identical with those of the first embodiment shown in Figure 1, and so, detailed description will be omitted. The shift register 301 outputs a serial data through the shift register output buffer 281 to the serial data input/output terminal 235. The shift register output buffer 281 operates to maintain its output at a high impedance when the output of the shift register 301 is "1", and to output a low level signal when the output of the shift register 301 is "0". The serial data transmission/reception line 224 is pulled up to a certain supply voltage by a pull-up resistor 280. If the shift register 301 outputs "1", the output of the shift register output buffer 281 becomes a high impedance, but, the serial data transmission/reception line 224 is turned to a high level by the pull-up resister 280. The output of the shift register 301 is controlled so as to maintain a high level after completion of the 8-bit serial data transfer. The BUSY detector 170 detects the BUSY signal on the serial data transmission/reception line 224 through the serial data input/output terminal 235. Next, explanation will be made on the second serial data processor 210 which is used as a receiver. The second serial data processor 210 comprises a shift register 311, a serial clock controller 312, a BUSY output circuit 314, an internal data bus 315, a data processing unit 316, a BUSY output buffer 292, a serial data input/output terminal 245 and a serial clock terminal 342. Here, the shift register 311, the serial clock controller 312, the BUSY output circuit 314, the internal data bus 315, the data processing unit 316 and the serial clock terminal 342 are identical with those shown in Figure 1, and so, detailed explanation will be omitted. However, in this embodiment, the output of the BUSY output circuit 314 is transmitted, through the BUSY output buffer 292 and the serial data input/output terminal 245, and also through the serial data transmission/reception line 224 to the first serial data processor 200. The BUSY output buffer 292 is adapted to bring its output to a high impedance when the output of the BUSY output circuit 314 is "1", and to output a low level signal when the output of the BUSY output circuit 314 is "0". If the output of the first serial data processor 200 is "1", the shift register output buffer 281 has a high output impedance. On the other hand, the serial data transmission/reception line 224 is pulled up to a high level by the pull-up resistor 280. But, if the BUSY output circuit 314 of the second serial data processor 210 outputs a low level signal through the BUSY output buffer 292, the serial data transmission/reception line 224 is turned to a low level, so that the BUSY detector 170 of the shift serial data processor 200 detects a low level signal through the serial data input/output terminal 235. Now, with reference to Figure 4, there will be shown a synchronous relation in the case that an 8-bit data is transferred from the first serial data processor 200 to the second serial data processor 210. Figure 4 is a timing chart illustrating the synchronous relation between a serial data on the serial data transmission/reception line 224, a serial clock on the serial clock line 322 and the BUSY signal on the serial data transmission/reception line 224. The 8-bit data shift operation from the first serial data processor 200 to the second serial data processor 210 is made in a similar manner to that of Figure 1, and therefore, detailed description will be omitted. But, the output of the shift register 301 is turned to a high level at a timing t₁₇ after completion of the 8-bit serial data transfer, so as to prepare to receive the BUSY signal from the receiver. The serial data processor 210, having received the 8-bit serial data, generates a serial interrupt at a timing t₁₆. Then, the data processing unit 316 reads out the content of the shift register 311 through the internal data bus 315 so as to execute the required data processing. The BUSY signal generator 314 outputs, by an interrupt processing, a low level signal on the serial data transmission/reception line 224 through the BUSY output buffer 292 at a timing t₁₇ so as to inform the first serial data processor 200 of the busy condition. The first serial data processor 200 which is used as the transmitter detects the busy condition by means of the BUSY detector 170. Namely, the first serial data processor 200 detects the BUSY signal inputted from the BUSY input terminal 333 and turns the BUSY detection signal 155 to a high level. The data processing unit 306, having completed the processing for the next serial data, writes the next data to be transferred on the shift register 311 at a timing t₁₈. As a result, the transfer start signal 350 is generated regardless of the BUSY. Thereafter, the data processing unit 306 returns from the serial interrupt program to the main program so as to execute the proper data processing. The start memory flip-flop 172 is set by the transfer start signal 350 so that the start memory signal 154 is turned to a high level. The start controller 171 detects that the transfer start instruction has been dispatched when the start controller 171 receives the start memory signal 154 at a high level. But, since the BUSY detection signal 155 is at a high level during a period to a timing t₁₉, the start controller 171 does not output the start trigger signal 153. Namely, the start trigger signal 153 is not outputted while the second serial data processor 210 is outputting the BUSY signal. Thus, since the serial clock controller 302 does not generate a serial clock, the initiation of the serial transfer operation is reserved. After completion of the data processing by the second serial data processor 210 which is as a receiver, the busy condition is dissolved at a timing t₁₉. Then, the serial data transmission/reception line 224 is turned from a low level to a high level, so that the BUSY detection signal 155 is turned to a low level. In this state, since the start memory signal 154 is at a high level, there are satisfied the two conditions, i.e., non-busy condition of the second serial data processor and the start instruction execution. As a result, the start trigger signal 153 is outputted. When the start controller 171 outputs the start trigger signal 153, the serial clock controller 302 generates a serial clock to initiate the shift operation of the next 8-bit shift register 301. The start memory flip-flop 172 is cleared by the start trigger signal 153, so that the start memory signal 154 is turned to a low level. As stated above, the same effect as that of the first embodiment can be attained by means of an apparatus which transfers the data and the BUSY signal through one signal line. As seen from the above, the above mentioned serial data processors including a function of the start signal reservation during the busy condition, can immediately return to the main program from the serial interrupt program without waiting while the receiver device is outputting the BUSY signal, so as to restart the proper data processing. Thus, the data processing capacity is greatly increased. For example, there will be explained on a case that a plurality of bytes of 8-bit serial data are transferred with reference to Figure 5. The Figure 5 is a timing chart showing each data processing operation of the above mentioned serial data processor and a conventional serial data processor. In the embodiment according to the present invention, as it takes 10 microseconds to transfer a data of 1-bit, it takes 80 microseconds to transfer an 8-bit data. On the other hand, in the conventional serial data processor, it takes 60 microseconds for an interrupt processing after the data transfer and 140 microseconds in total. The interrupt processing of 60 microseconds consists of a serial data processing of 20 microseconds and a waiting time of 40 microseconds for dissolution of the busy condition. In other words, conventionally, the main program execution time occupies 80 microseconds in the total of 140 microseconds, the data processing efficiency being 57 %. On the other hand, with the serial data processor according to the present invention, after the serial data processing even during a period of 40 microseconds until initiation of the next serial data transfer, the proper data processing can be executed. Therefore, the main program execution time occupies 120 microseconds in the total of 140 microseconds, the data processing efficiency being 86 % which means 1.5 times as compared with the conventional one. Further, after completion of the serial interrupt, the serial data processor according to the present invention can return from the serial interrupt program to the main program. Therefore, it is possible to execute the processing of the other interrupt generated in the busy condition. Thus, particularly in the data processor not capable of multi-interrupt, the response time of the interrupt is remarkably reduced. Also, in the case of the application in a real time processing, a great effect can be obtained. Moreover, it is not necessary to prepare a program for waiting until the busy condition of the receiver is dissolved, so that there can be stored in the remaining program area a program for data processing. Thus, it is possible to use effectively the limited memory. As compared with the conventional serial data processor, the processor according to the present invention can be realized by adding a much less number of hardware such as a BUSY signal detector, a start memory flip-flop and a start reservation circuit. Therefore, there can be obtained a great effect when the present invention is applied as a serial data processor. In addition, the present invention can be applied to a busy processing in a parallel data transfer. Figure 6 is a block diagram of a third embodiment of transmission/reception system composed of a pair of serial data processors, including a first serial data processing device 300 which is used as a master and a second serial data processing device 110 which is used as a slave. The first serial data processing unit 300 which is used as a master comprises a shift register 301 for data transmission/reception, a serial clock transmitter 302, a BUSY signal input buffer 303 and a data processing unit 306, all of them being coupled one another by means of an internal bus 305. The shift register 301 is a register of 8-bit construction which executes a shift operation for data input/output in sychronism with the falling edge of a serial clock 352. The output of the shift register 301 is outputted through a serial data output terminal 330 to a serial data transmission line 320. The data processing unit 306 controls the processing operation of the whole serial data processing device 300. The data processing unit 306 executes the writing operation of the transmission data to the shift register 301 and the reading operation of the input buffer 303, both through the internal data bus 305. Further, when the start instruction is executed, the data processing unit 306 outputs the transfer start signal 350. Moreover, the data processing unit 306 starts the interrupt by a serial interrupt signal 351 so as to execute the interrupt processing. When the transfer start signal 350 is inputted, the serial clock controller 302 generates the above mentioned serial clock 352 which is outputted to a serial clock terminal and also as a shift clock 353 of the shift register 301. When eight serial clocks 352 are outputted, the supply of the serial clock 352 is stopped so as to stop the serial transfer, and the serial interrupt signal 351 is generated. At the time of no transfer, a high level signal is outputted to a serial clock line 322. A BUSY input terminal 333 is connected to a BUSY signal line 323. The input buffer 303 is adapted to output the condition of the BUSY input terminal 333 to the internal data bus 305, and which is turned on when the data processing unit 306 executes a BUSY signal read instruction. Next, description will be made on the second serial data processing device 110 which is a slave. The second serial data processing device 110 comprises a shift register 311, a serial clock receiver 312, a BUSY flip-flop 180, an internal data bus 315, a data processing unit 316, serial data input terminal 341, a serial clock terminal 342 and a BUSY output terminal 344. Among them, the shift register 311, the internal data bus 315, the data processing unit 316, the serial data input terminal 341, the serial clock terminal 342 and the BUSY output terminal 344 may be identical with those of the device 300 which is a master, and so, detailed description will be omitted. The BUSY flip-flop 180 operates to receive a serial interrupt signal 361 at a set input terminal and a transfer acknowledge signal 360 at a reset input terminal, respectively, and outputs a BUSY signal 364 at its inverted output Q . When the rising edge of the serial interrupt signal 361 is inputted, the BUSY flip-flop 180 is set to output a low level signal to the BUSY output terminal 344. On the other hand, when the rising edge of the transfer acknowledge signal 360 is inputted, the BUSY flip-flop 180 is cleared to output a high level signal to the BUSY output terminal 344. Next, with reference to a timing chart in Figure 7, there will be shown a synchronous relation in the case that an 8-bit data is transferred from the first serial data processing device 300 and to the second serial data processing device 110. Figure 7 is a timing chart showing a synchronous relation between a serial data on the serial data line 320, a serial clock on the serial clock line 322 and a BUSY signal on the BUSY signal line 323. Here, from the first serial data processing device 300, the data is transmitted 1-bit by 1-bit in synchronism with the clock. Then, the data is received in synchronism with the rising of the clock by the second serial data processing device 110. The second serial data processing device 110, having received the 8-bit serial data, generates the serial interrupt signal 361 at a timing t₁₁. The BUSY flip-flop 180, being set at the timing t₁₁, outputs a low level signal on the BUSY signal line 323, so as to inform the first serial data processing device 300 of the busy condition. A data processing unit 316 reads out the content of the shift register 311 by an interrupt processing and carries out the necessary data processing, so as to execute the transfer start or acknowledge instruction for receiving the next serial data at a timing t₁₂. The BUSY flip-flop 180, being cleared at the timing t₁₂, outputs a high level signal on the BUSY signal line 323 so as to inform the first serial data processing device 300 that the busy condition is dissolved. The first serial data processing unit 300, which carries out at any time the sampling of the BUSY signal line 323, confirms the dissolution of the busy condition of the second serial data processing device 110, so as to initiate the next serial data transfer. As stated above, in this embodiment, the busy condition is automatically set after having received the 8-bit serial data transfer, and the busy condition is dissolved by designation of the transfer start or acknowledge for the next serial data reception. Figure 8 is a block diagram of fourth embodiment of a serial data processor according to the present invention. In this figure, there are shown a first serial data processing device 400 which is used as a transmitter (master) and a second serial data processing device 410 which is used as a receiver (slave). The fourth embodiment is for showing a serial data processor which can execute a BUSY signal transfer through a serial data line. This embodiment is different from the third one in the construction that the busy condition of the receiver is transmitted to the receiver through the serial data input/output terminal. First, description will be made on a first serial data processing device 400 which is used as a transmitter. The first serial data processing device 400 is composed of a shift register 301, a serial clock controller 202, an input buffer 303, a BUSY detector 283, an internal data bus 305, a data processing unit 306, a shift register output buffer 282, a serial data input/output terminal 235 and a serial clock terminal 332. Among them, the shift register 301, the input buffer 303, the internal data bus 305, the data processing unit 306 and the serial clock terminal 332 may be identical with those of the Figure 6, and so, detailed description will be omitted. The shift register 301 outputs a serial data through the shift register output buffer 282 to the serial data input/output terminal 235. The output of the shift register 301 is maintained at a high level after having transferred an 8-bit serial data. The shift register output buffer 282 is of the open drain output type which operates to bring its output to a high impendance when the output of the shift register 301 is "1", and to output a low level signal when the output of the shift register 301 is "0". The serial data transmission/reception line 224 is pulled up to a certain supply voltage by means of a pull-up resistor 290. If the shift register 301 outputs "1", the output of the shift register output buffer 282 becomes a high impedance, but the serial data transmission/reception line 224 is turned to a high level by the pull-up resistor 290. The BUSY detector 283 detects the BUSY signal 364 on the serial data transmission/reception line 224 through the serial data input/output terminal 235. When the BUSY detector 283 detects a high level signal which indicates dissolution of the busy condition, the BUSY detector 283 outputs a clock stop signal 257. The serial clock controller 302 of Figure 8 is different from the serial clock transmitter 302 shown in Figure 6 in the point that the supply of the serial clock 352 to the serial clock terminal 332 continues even after generation of the serial interrupt signal 351, and the generation of the serial clock 352 is stopped by the clock stop signal 257. Next, description will be made on the second serial data processing device 410 which is used as a receiver. The second serial data processing unit 410 is composed of a shift register 311, a serial clock controller 212, a BUSY flip-flop 180, a synchronizing flip-flop 271, an internal data bus 315, a data processing unit 316, a BUSY output buffer 214, a serial data input/output terminal 245 and a serial clock terminal 342. Among them, the shift register 311, the internal data bus 315, the data processing device 316, the serial clock terminal 342 and the BUSY flip-flop 180 are identical with those of Figure 6, and so, detailed description will be omitted. The serial clock controller 312 further includes a function to output a BUSY synchronizing clock 266. The BUSY synchronizing clock 266 is composed of a 9th clock and succeeding clocks of the serial clock 352. The synchronizing flip-flop 271 operates to received a BUSY signal 364 and output a synchronous BUSY signal 265 in synchronism with the falling edge of the BUSY synchronizing clock 266. The BUSY output buffer 214 is of the open drain output type which operates to assume a high impedance output condition when the output of the synchronizing flip-flop 271 is "1", and to output a low level signal on the serial data transmission/reception line 224 when the output of the synchronizing flip-flop 271 is "0". At the completion of the 8-bit serial data transfer, the condition of the serial data input/output terminal 235 of the first serial data processing device 200 becomes a high impedance, while the serial data transmission/reception line 224 is turned to a high level by a pull-up resistor 290. At this time, if the second serial data processing device 210 outputs a low level signal through the BUSY output buffer 214, the serial data transmission/reception line 224 is turned to a low level, which can be detected by the BUSY detector 283. Next, with reference to the timing chart of Figure 9, there will be shown a synchronous relation in the case that an 8-bit data is transferred from the first serial data processing device 400 to the second serial data processing device 410. Figure 9 is a timing chart showing a synchronous relation between a serial data and a BUSY signal on the serial data transmission/reception line 224 and a serial clock on the serial clock line 322. The 8-bit data transfer operation from the first serial data processing device 400 to the second serial data processing device 410 is made in the same way as that of Figure 6, and so, detailed description will be omitted. However, the output of the shift register 301 is turned to a high level at a timing t₂₂ after completion of the 8-bit serial data transfer, so that a BUSY signal can be received from the receiver. The second serial data processing device 410, having received the 8-bit serial data, generates a serial interrupt signal 361 at a timing t₂₁. The BUSY flip-flop 180 is set at a timing t₂₁ so as to output a low level signal. The synchronizing flip-flop 271 outputs a low level signal to the serial data transmission/reception line 224 in synchronism with the falling timing t₂₂ of the BUSY synchronizing clock 266 so as to inform the first serial data processing device 400 of the busy condition. The data processing device 316 reads out the content of the shift register 311 by the interrupt processing, to carry out a necessary data processing, and then generates the transfer start or transfer acknowledge signal at a timing t₂₃ for receiving the next serial data. The BUSY flip-flop 180, being cleared at a timing t₂₃, outputs a high level signal. The synchronizing flip-flop 271 outputs a high level signal to the serial data transmission line 224 in synchronism with the falling timing t₂₄ of the BUSY synchronizing clock 266, so as to inform the first serial data processing device 400 that the busy condition is dissolved. The first serial data processing device 400 carries out the sampling of the busy condition on the serial data transmission/reception line 224 by the BUSY detector 283 after the serial data is transferred, and initiates the next serial data transfer after having confirmed dissolution of the busy condition of the serial data processing device 210. As seen from the above, in the case that the transmission/reception of the serial data and the BUSY signal is carried out between serial data processing devices connected by means of a simple data line, such construction as shown in Figure 8 makes it possible to automatically set the busy condition after completion of the 8-bit serial data transfer and to dissolve the busy condition with designation of the transfer start or acknowledge, without execution of special BUSY control programs. As stated above, the above mentioned serial data processor includes a function capable of executing the setting of the busy condition automatically when the 8-bit serial data transfer is completed, and the dissolution of the busy condition by the serial transfer start operation. Therefore, after the serial transfer is started for the next serial data reception, it is possible to return immediately from the serial interrupt program to the main program so as to restart the proper data processing, without executing the dissolution of the busy signal by means of a program. Thus, the data processing capacity can be greatly improved. For example, one case that a plurality of bytes are transferred in the form of an 8-bit serial data will be explained with reference to Figure 10. Figure 10 is a timing chart illustrating respective data processing operations of the serial data processor according to the present invention and the conventional serial data processor. In the conventional serial data processor, it takes 80 microseconds to execute the 8-bit serial data transfer. In the serial data processing device which is used as a receiver, the interrupt processing time after the transfer is 90 microseconds, resulting in 170 microseconds in total. The interrupt processing time 90 microseconds consists of the setting of the busy condition of 20 microseconds, the proper received data processing of 50 microseconds, and the dissolution of the busy condition of 20 microseconds. On the other hand, in the serial data processing device which is used as a transmitter, the interrupt processing after transfer is 90 microseconds which consists of the next transfer processing of 40 microseconds and the waiting time of 50 microseconds for dissolution of the busy condition. In the serial data processor according to the present invention, it takes 80 microseconds as the conventional one to execute the 8-bit serial data transfer. However, in the serial data processing device which is used as a receiver, the interrupt processing time after transfer is 50 microseconds, resulting in 130 microseconds in total. The interrupt processing time 50 microseconds consists of 50 microseconds for executing the received data processing since the programs for setting and dissolving the busy condition are no more necessary. Also, in the serial data processing device which is used as a transmitter, the interrupt processing after the transfer takes 50 microseconds consisting of the next transfer data processing of 40 microseconds and the waiting time of 10 microseconds for dissolution of the busy condition. Now, explanation will be made on the detailed effects of the present invention. At first, the interrupt processing time will be described. Conventionally, the interrupt processing has taken 90 microseconds. According to the present invention, it takes only 50 microseconds which is for the received data processing since a processing time 40 microseconds for setting and dissolving the busy condition can be cut off. Thus, the interrupt processing time can be reduced to almost a half as compared with that of the conventional data processor. Secondly, the main program processing time will be described. The main program processing time has occupied conventionally 80 microseconds of the 8-bit serial data transfer in the total of 170 microseconds, resultant processing efficiency being 47 %. On the other hand, according to the present invention, a processing time 40 microseconds for setting and dissolving the busy condition is not necessary, so that during the period of 40 microseconds the main program can be executed. Therefore, the main program processing time results in 120 microseconds by adding the 40 microseconds to 80 microseconds for transferring the 8-bit serial data. Thus, the obtained processing efficiency is increased to 67 %, which means that 1.5 times of the data processing can be carried out as compared with the conventional one. Thirdly, the serial data transfer speed will be described. One round of the serial data processing time which consists of the 8-bit serial data transfer time and the interrupt processing time has been conventionally 170 microseconds. According to the present invention, it takes only 130 microseconds, resultant speed of one round serial data transfer being increased to 1.3 times as compared with the conventional one. Thus, particularly in the case that a large amount of serial data are transferred, a great effect can be expected. Fourthly, there will be described on the return timing to the main program in the serial data processing device which is used as a transmitter. The serial data processing device which is used as a transmitter can return to the main program earlier by 40 microseconds, as a result of reduced time in the interrupt processing of the serial data processing device which is used as a receiver. Thus, in a data processor which does not have a function of multi-interrupt, the response speed to the interrupt is remarkably improved. In particular, if it is applied to the real time processing, a great effect can be expected. Fifthly, there will be described on the use efficiency of the program area. In the serial data processing device which is receiver, the programs for setting and dissolving the busy condition are no more necessary, so that in the program area prepared for the above programs there can be stored the program for data processing. Thus, it is possible to use effectively the limited memory. Further, since the BUSY signal output circuit can be realized with an extremely small amount of hardware, there can be obtained such advantages as simplification of the design and reduction of the cost. Furhtermore, the present invention can be applied to the BUSY control for a parallel processing. The invention has thus been shown and described with reference to the specific embodiments. However, it should be noted that the invention is in no way limited to the details of the illustrated structures but changes and modifications may be made.

Claims: A data transfer system including a first data processor (100) for supplying a predetermined length of data to be transferred and a second data processor (310) for receiving said predetermined length of data, said first and second data processors being coupled through a data transfer line (320) and through a clock line (322), the first data processor comprising a first data processing means (306) and a data transferring means (301,305) receiving the predetermined length of data for transferring the same data through the data transfer line synchronized by a synchronous clock signal over said clock line, the first data processor further comprising a serial clock means (302) supplying said synchronous clock signal to the clock line, and busy detection means (170,323,283) for detecting a busy signal being generated by said second data processor on an interrupt processing after the second data processor has received said predetermined length of data, said busy signal being dissolved after said second data processor has completed a data processing of the received data; said data transfer system being characterized in that said first data processor (100) includes latching means (172) for receiving a transfer start signal (350) from said first data processing means (306) and for latching said transfer start signal (154); said first data processor also includes transfer control means (171) associated to the latching means (172), to the busy detection means (170) and to the serial clock means (302) for generating a start trigger signal (153); whereby said start trigger signal is generated only when the busy signal is or becomes inactive after the transfer start signal has been latched; whereby, following the generation of said start trigger signal, the serial clock means generates the synchronous clock signal and the latching means are cleared. A data transfer system as claimed in claim 1, wherein the data transferring means includes a shift register (301) having a parallel input coupled through an internal data bus (305) to the data processing means (306) to receive a predetermined length of parallel data from the data processing means, the shift register (301) having a serial output coupled to a data transfer terminal (330), and a clock control means (302) for generating a serial clock to a clock transferring terminal (332) and to the shift register (301) so as to cause the data held in the shift register (301) to be outputted from the serial output of the shift register (301) in synchronism with the serial clock. A data transfer system as claimed in claim 2, wherein the busy detection means includes a busy detector (170) responsive to a busy signal (323) from the second data processor (310) for generating a busy detection signal (155), wherein the transfer start signal holding means includes a latching means (172) adapted to be set by the transfer start signal (350) so as to generate a start memory signal (154), and wherein the transfer control means includes a transfer start controller (171) receiving the busy detection signal (155) and the start memory signal (154) for generating, when the busy detection signal (155) is inactive and the start memory signal is active (154), a start trigger signal (153) to the serial clock means (302) and the latching means (172), so that the serial clock means causes the shift register (301) to output the serial data and the latching means (172) is reset. A data transfer system as claimed in claim 3, wherein the busy detector (170) is connected at its input to a busy signal terminal (333) independent of the data transfer terminal. A data transfer system as claimed in claim 3, wherein the busy detector (170) is connected at its input to the data transfer terminal (235), and wherein the serial output of the shift register (301) is connected to an input of a buffer circuit (281) whose output is connected to the data transfer terminal (235), the output of the buffer circuit (281) assuming either a high impedance condition or a low level condition in response to the input so that when the data transfer terminal (235) is connected to a pulled-up data transfer line (224), the data transfer line is selectively brought either into a low level or into a high level in accordance with the output condition of the buffer circuit (281).

Inventors: KITADA YOSHITAKA C O NEC CORPO, SAITO SAYURI C O NEC CORPORATI, YOSHIZAWA KAZUTOSHI C O NEC CO, KITADA, YOSHITAKA C/O NEC CORPORATION, SAITO, SAYURI C/O NEC CORPORATION, YOSHIZAWA, KAZUTOSHI C/O NEC CORPORATION
Applicants: NIPPON ELECTRIC CO, NEC CORPORATION
Application year: 1987
Main classification: G06F13
IPC codes: G06F15, G06F13