SERIAL INTERFACE SYSTEM FLEXIBLY APPLICABLE TO A ONE-TO-PLURALITY CONNECTION

Abstract: In a serial interface system wherein a master unit (21) selects one or more of slave units (26, 27) as a destination by an indentification number assigned to each slave unit and transmits a data signal to the destination in synchronism with a clock signal, a control path (34) is added to a serial interface (31-33). When one of the slave units acts as a source either in transmitting data to the master unit or in transfer­ ring data to one or more of other slave units selected as a destination, the source activates the control path to activate, in turn, the master unit. Activated, the master unit sends a clock signal to the interface to make the source transmit or transfer the data in synchronism with the clock signal. Alternatively, the control path is dispensed with. In this event, the master unit is activated either by command signal produced by the master unit or by a like command signal sent from a source to the interface in response to an interrogation from the master unit. Preferably, signals except for the clock signal are sent either from the master unit or from the source with an identification code included in each frame of the signals to indicate each of the slave units by the identification number that is concerned with the signals.

Description: This invention relates to a serial interface system which comprises a master unit, a plurality of slave units, and a serial interface shared by the master and the slave units. A serial interface system is described in United States Patent No. 4,348,722 issued to Thomas G. Gunter et al and assigned to Motorola, Inc. Such a serial interface system is used, above all, in a portable terminal equipment which may be a terminal equipment on board a mobile in a mobile communication network. A conventional serial interface system may comprise a standard interface, such as the RS-232C. In the manner known in the art, the RS-232C is an asynchronous interface. Another conventional interface system comprises a synchronous serial interface, such as used in a 72-chip central processing unit. The latter interface is operable at a high speed and has merits in hardware as well as in software when used in a one-to-one connection. The conventional serial interface must, however, comprise a chip select (CS) line for each unit when applied to a one-to-multiplicity connection. This makes it hardly possible to apply the serial interface system to a connection for a master unit and five or more slave units. Moreover, the serial interface system is not flexible for a change in the connection or an increase in the number of slave units. Danbury et at. describe in the article "Small Area Networks Using Serial Data Transfer Part 2 - Slave Devices", Electronic Engineering, volume 56, no, 686, February 1984, pages 59 to 70, London, GB, a system for communication between a master device and a slave device. In this system, all devices are connected to a bus and two lines, i.e. for serial data and for serial clock. In this system, the master transmitter comprises a microcontroller which performs control of the data communication via the bus. In particular, when a communication is to be performed between the master device and a slave device, at first an initialisation of the serial input and output is carried out, then the slave address is sent out, after which data transfer occurs and at last the slave device is signed off. GB-A-1 221 964 describes a transmission system in which each unit may become in turn master unit. Each said unit comprises data transmitting means and activating means for activating said data transmitting means once it has become master unit (no reception of a transmission demand from another unit within a predetermined time period). It is therefore an object of the present invention to provide a serial interface system which is operable at a high speed and is applicable to a one-to-plurality connection. It is another object of this invention to provide a serial interface system of the type described, which is flexible. Other objects of this invention will become clear as the description proceeds. It is possible for describing this invention to define a serial interface system as comprising a master unit, a plurality of slave units, and a serial interface for communication between at least two of the master and the slave units. According to this invention, the master unit comprises energizing means connected to the interface for energizing the interface when the energizing means is activated. Furthermore, the above-defined system further comprises activating means for controllably activating the energizing means when one of the master and the slave units begins the communication. The activating means comprises a control path which is shared by the master and the slave units and is always and selectively activated when the master and one of the slave units begin the communication, respectively. The control path activates, in turn, the energizing means when activated. According to a preferred embodiment of this invention, the master unit further comprises first means for making the energizing means energize the interface with a first signal. The afore-defined system further comprises second means coupled to each slave unit for supplying the interface with a second signal. Either of the first and the second signals is for activating the energizing means. The first and the second means thereby collectively serve as the activating means. The invention will further be discussed by way of example and with reference to the accompanying drawing, in which: Fig. 1 is a block diagram of a serial interface system according to a first embodiment of the instant invention; Fig. 2 is a time chart for use in describing operation of the serial interface system depicted in Fig. 1; Fig. 3 is a time chart for use in describing another operation of the serial interface system shown in Fig. 1; Fig. 4 is a time chart for use in describing still another operation of the serial interface system illustrated in Fig. 1; Fig. 5 is a partial block diagram of the serial interface system illustrated in Fig. 1; Fig. 6 is a block diagram of a serial interface system according to a second embodiment of this invention; Fig. 7 is a time chart of signals used in the serial interface system depicted in Fig. 6; Fig. 8 shows a format of the signal used in the serial interface system depicted in Fig. 6; Fig. 9 shows various command codes used in the serial interface system illustrated in Fig. 6; Fig. 10 is a sequence diagram illustrative of operation of the serial interface system shown in Fig. 6; Fig. 11 is a flow chart for use in describing the operation mentioned in conjunction with Fig. 10; Fig. 12 is a flow chart for use in describing another operation of the serial interface system shown in Fig. 6; and Fig. 13 is a flow chart for use in describing still another operation of the serial interface system illustrated in Fig. 6. Referring to Fig. 1, description will be given as regards a serial interface system according to a first embodiment of the present invention. The system comprises a master unit 21, first and second slave units 26 and 27, and other slave units (not shown). Each of the master and the slave units may be a microprocessor. Each slave unit may be one of devices of various types, such as a telephone handset, a facsimile device, a computer, a radio transmitter/receiver or modem, a test equipment, and an adapter for such devices. It should be noted that each of such devices should comprise a processor. At any rate, it will be assumed that the first, the second, and the other slave units 26, 27, and so forth are preliminarily assigned with identification numbers, respectively, in a predetermined order which may be an ascending order. The serial interface system comprises a serial interface consisting of first and second paths or routes 31 and 32, a clock path 33, and a control path 34. Each path may be a wiring or a radio channel. In the manner which will presently be understood, the first and the second paths 31 and 32 are for primarily transmitting data signals between the master unit 21 and one or more slave units. The clock path 33 is for transmitting a clock signal from the master unit 21 to each slave unit for the data signals transmitted through the first and the second paths 31 and 32. Only the first, the second, and the clock paths 31 through 33 are referred to collectively as a serial interface or I/O path depending on the circumstances. The control path 34 will later become clear. The master unit 21 comprises a central processor 35. In the master unit 21, master receiver and transmitter 36 and 37 are coupled to the central processor 35 in the manner which will become clear as the description proceeds. A clock generator 38 is controlled by the central processor 35. The master receiver and transmitter 36 and 37 and the clock generator 38 are connected to the first, the second, and the clock paths 31 through 33, respectively. In the manner depicted in the second slave unit 27, each slave unit comprises a slave processor 39 and slave transmitter and receiver 41 and 42 coupled to the slave processor 39. The slave transmitter 41 is connected to the first path 31. The slave receiver 42 is connected to the second and the clock paths 32 and 33. The first path 31 therefore primarily serves as an input data path for the master unit 21 and as an output data path for each slave unit. The second path 32 primarily serves as an output data path for the master unit 21 and as an input data path for each slave unit. Turning to Figs. 2 through 4, operation of the serial interface system will be described with assumptions such that sixteen or less slave units 26, 27, and so on are connected to the serial interface and that sixteen or less bytes are transmitted as the data signal between a pair of units of the master and the slave units 21, 26, 27, and others. Each frame of the data signal consists of eight bits. Fig. 2 shows only two frames. The clock generator 38 (Fig. 1) generates eight clock pulses of the clock signal in each frame in the manner indicated at SCK (synchronization clocks) in detail as regards a first frame depicted at a lefthand end in Fig. 2. Referring more particularly to Fig. 2, it will be assumed that the communication through the serial interface 31-33 is transmission of a data signal of a certain duration from the master unit 21 to either the first slave unit 26 or the second slave unit 27. Controlled by the central processor 35, the clock generator 35 sends the clock signal SCK to the clock path 33 at first during the first frame. It may be mentioned here that the master transmitter 37 samples information as information samples whenever the clock signal SCK builds down. The master transmitter 37 thereby sends eight information samples to the slave units 26, 27, and others in each frame through the second path 32 as a serial data output SO of the data signal. In the first frame, four preceding bits 43 of the information samples are used as an identification code representative of the identification number of the slave unit of a destination to which the data signal should be transmitted. Four succeeding bits 44 are used to indicate the number of bytes, or a byte number, representative of the duration of the data signal. Like in the first frame, the clock generator 38 generates the clock pulses during following frames of a number which is indicated by the four succeeding bits 44. Alternatively, the clock generator 38 is controlled by the central processor 35 so as to generate the clock pulses for each of such following frames until the number of the following frames reaches the number indicated. In each of the following frames, eight bits 45 of the information samples are representative of the data signal transmitted to the destination. When it is necessary to send the same data signal to all slave units, the four preceding bits 43 should be given a specific code. In this event, the number of slave units should be fifteen or less. All the while, the slave units 26, 27, and so forth are capable of receiving signals from the serial interface 31-33. More specifically, the slave receiver 42 receives the clock signal SCK in each slave unit during the first frame. Responsive to the four preceding bits 43, the slave processor 39 decides whether or not the slave unit is the destination. Only the slave receiver 42 of the destination thereafter receives the data signal, such as 45, whenever the clock signal SCK builds up. Turning to Fig. 3, it will be assumed that the communication is transmission of a data signal from the second slave unit 27 to the master unit 21. Such a slave unit which begins the communication as a source or origin, may be called a particular slave unit. At first, the slave transmitter 41 activates the control path 34 under the control of the slave processor 39. The activation is herein called a transmission request REQ and is indicated by a transition from a high level to a low level. The master receiver 36 receives the transmission request REQ through the control path 34. Responsive to the transmission request REQ, the central processor 35 carries out polling successively to the slave units 26, 27, and so on in a predetermined order, such as in the ascending order, until the source is located. With the clock signal SCK sent to the clock path 33, the master transmitter 37 is made to carry out the polling in a polling cycle consisting of first and second frames. It is possible to make the central processor 35 carry out the polling with other operations interrupted. In order to carry out the polling, the master transmitter 37 sends a polling signal 461 to the second path 32 as the serial data output SO during the first frame of a first polling cycle. The polling signal 461 comprises an identification code indicative of the identification number which stands foremost in the ascending order for the first slave unit 26. During the second frame of the first polling cycle, the master receiver 36 receives no answer from any one of the slave units 26, 27, and others in the manner depicted along a line representative of a serial data input SI to the master unit 21. In the first frame of a second polling cycle, the master transmitter 37 sends another polling signal 462 to the second path 32. The polling signal 462 indicates the identification number of the second slave unit 27. The slave receiver 42 receives the serial data output SO. Responsive to the identification number indicated by the serial data output SO, the slave processor 39 knows that the second slave unit 27 is polled. The slave processor 39 of the second slave unit 27 makes the slave transmitter 41 send a transmission request signal 47 as an answer signal to the first path 31. The transmission request signal 47 represents the identification number of the second slave unit 27 and the number of bytes of the data signal which should be transmitted to the master unit 21. Responsive to the transmission request signal 47 received by the master receiver 36, the central processor 35 makes the clock generator 38 generate the clock pulses of a number which corresponds to the number of bytes in the manner depicted along a line labelled SCK. In synchronism with the clock pulses received by the slave receiver 42, the slave transmitter 41 sends the data signal to the master unit 21. Upon completion of transmission of the data signal, the slave processor 39 makes the slave transmitter 41 render the control path 34 inactive to inform the master unit 21 of the completion. Further turning to Fig. 4, it will be assumed that the communication is transfer of a data signal from the first slave unit 26 to the second slave unit 27. The first and the second slave units 26 and 27 are a source or origin and a destination of the data signal to be transferred. In the manner described in conjunction with Fig. 3 and depicted along a line labelled REQ in Fig. 4, the first slave unit 26 activates the control path 34. In the first frame of the first polling cycle, the master unit 21 sends the polling signal 461 as the serial data output SO (Fig. 4). The first slave unit 26 sends a transfer request signal 48 in the second frame of the first polling cycle as the serial data input SI for the master unit 21. The transfer request signal 48 may again represent the identification number of the source 26 and represents the identification number of the destination 27. In the manner which will shortly become clear, the transfer request signal 48 is a part of an answer signal. In response to the transfer request signal 48, the master unit 21 sends the clock signal SCK to the slave units 26, 27, and others in a first frame which next follows the polling cycle. Turning to Fig. 5 for a short while, the serial interface 31-33 comprises a switch 481 adjacent to each of the master and the slave units 21, 26, 27, and so on. The switch 481 is controlled by a pertinent one of the central processor 35 and the slave processors, such as 39. A three-state buffer 482 is used in the second path 32 between the switch 481 and the master unit 21 and in the first path 31 between the switch 481 and each slave unit. The buffer 482 is for avoiding collision of signals in the known manner. The buffer 482 is controlled by a relevant one of the central processor 35 and the slave processors. Turning back to Fig. 4, the central processor 35 responds to the transfer request signal 48 to switch the first and the second paths 31 and 32 from a usual state to a temporary state by activating the switches 481 in cooperation with the source 26. As a result of the switching, the first path 31 is connected in the temporary state to the master transmitter 37 and to the slave receiver of the source 26. Even in the temporary state, the first path 31 is connected to the slave transmitters, such as 41, of other slave units 27 and so forth as in the usual state. The second path 32 is connected to the master receiver 36 and to the slave transmitter 42 of the source 26. Like in the usual state, the second path 32 is connected to the slave receivers, such as 42, of the other slave units. During a first frame which next follows the switching, the master unit 21 sends the clock signal SCK to the clock path 33. The source 26 sends a transfer request signal 49 to the second path 32 as a remaining part of the answer signal. Except for transmission through the second path 32, the transfer request signal 49 is similar to the transmission request signal 47 of Fig. 3 and indicates the identification number of the destination 27 and the number of bytes of the data signal to be transferred from the source 26 to the destination 27. During the frames which follow the first frame, the data signal is transferred from the source 26 to the destination 27 in the manner described above with reference to Fig. 3. When the control path 34 is rendered inactive upon completion of the transfer, the master unit 21 switches the first and the second paths 31 and 32 from the temporary state back to the usual state. The transfer comes to an end. Reviewing Figs. 1 through 4, a combination of the central processor 35 and the master receiver and transmitter 36 and 37 serves as an energizing arrangement connected to the serial interface 31-33 for energizing the interface 31-33 by sending the polling signal, the data signal, and the like to the interface 31-33. The control path 34 serves as an activating arrangement for controllably activating the energizing arrangement when one of the master unit 21 and the slave units 26, 27, and others begins communication through the interface 31-33. It is possible to understand that the activating arrangement 34 is always activated when the master unit 21 begins the communication. The activating arrangement 34 is selectively activated when one of the slave units 26, 27, and so forth begins the communication. Activated in this manner, the activating arrangement 34 activates, in turn, the energizing arrangement 35-37. In addition, it is understood that the master unit 21 is connected to a plurality of slave units, such as 26 and 27, through the serial interface 31-33. Transmission of a data signal is possible from the master unit 21 to one or more of the slave units. The serial interface system is therefore applicable to a one-to-plurality connection. Together with the master unit 21, a plurality of slave units are connected together through the interface 31-33. Transfer of a data signal is possible from any one of the slave units to one or more of other slave units. The serial interface system is therefore applicable also to a plurality-to-plurality connection. Moreover, the serial interface system is flexible. More particularly, a change is possible in the system by only adapting the central processor 35 to the change even in the severest case. The slave units can be increased or descreased in number provided that the afore-mentioned identification code is capable of differentiating the slave units when the slave units are increased. The serial interface system is operable at a high speed as described heretobefore. It may be mentioned here that the activating arrangement 34 makes it possible to use the serial interface 31-33 as a bus. Referring now to Fig. 6, description will proceed to a serial interface system according to a second embodiment of this invention. The serial interface system comprises a master unit, eight or less slave units, and a serial interface. The master unit is equivalent to that described in conjunction with Fig. 1 and will therefore be designated by the reference numeral 21. In the example being illustrated, the slave units are zeroth through seventh slave units 50, 51, 52, 53, 54, 55, 56, and 57. The serial interface, depicted at 59, need not include the control path 34 (Fig. 1). Turning to Fig. 7, serial data output and input SO and SI and a clock signal SCK are transmitted through the serial interface 59 in the manner which is described above and will again be described hereunder. It will be assumed that each frame consists of eight bits. As described, the serial data output SO is sent either from the master unit 21 or from one of the slave units 50 through 57 when the clock signal SCK builds down. The serial data input SI is received either at the master unit 21 or at one or more of the slave units 50 to 57 when the clock signal SCK builds up. Referring to Fig. 8, each fame of the serial data output SO is a succession of a C/D bit, three identification bits ID2, ID1, and ID0, and four information bits I3, I2, I1, and I0. The serial data input SI has a format which is not different from that of the serial data output SO because the serial data output SO is received as the serial data input SI through the interface 59. The C/D bit is used in indicating whether the frame is used as a command signal or a frame of a data signal, namely, whether the information bits I (affixes omitted) represent a command or a datum. The identification bits ID (affixes omitted) give an identification code representative of an identification number assigned to each slave unit in the manner already described. Turning to Fig. 9, the information bits I are capable of representing up to sixteen commands when the C/D bit indicates a command signal. In other words, the information bits I can be used as one of up to sixteen command codes. Each command code is used generally both in the master unit 21 (Fig. 6) and in each slave unit. By way of example, such command codes are used in the manner which is briefly shown in Fig. 9 and will be described in the following. The command codes will be called by names used hereunder. (0) Zeroth command code 0000: Transmission from the master unit indicates an interrogation to the slave units as regards presence and absence of a transmission or transfer request in one of the slave units. The master unit can send the zeroth command code in a frame with the zeroth command code preceded in the frame by an identification code for a selected one of the slave units. The selected one of the slave units sends the zeroth command code as a reply to the zeroth command code directed thereto from the master unit. This informs the master unit of the fact that the selected one of the slave units has a data signal which should be either transmitted to the master unit or transferred to one or more of other slave units. The selected one of the slave units may send the zeroth command code with the identification code representative of the identification number assigned thereto. This enables the master unit confirm the reply. When the slave units have neither a transmission request nor a transfer request, the slave units are quiescent and send nothing to the interface in response to the interrogation. (1) First command code 0001: Transmission from the master unit indicates allowance for the data transmission or transfer. The selected one of the slave units sends the first command code in reply in order to indicate start of the data transmission or transfer. (2) Second command code 0010: Transmission from the master unit indicates forced suspension of the data transmission and transfer during reception of the data signal and during the data transfer. Transmission from a slave unit indicates an end of the data transmissior or transfer. The selected one of the slave units sends the first command code also in response to the forced suspension. (3) Third command code 0111: Transmission from the master unit indicates a request for retransmission of the data signal during reception of the data signal from the selected one of the slave units. (4) Fourth command code 0100: Transmission from the master unit indicates a request to the selected one of the slave units for transmission of parity data which may be calculated in the slave unit having received the request in accordance with the data signal which is already received by the selected one of the slave units before reception of the request. (5) Fifth command code 0101: In the example being illustrated, the fifth command code is not used. Such facts are represented in the figure by dashes. (6) Sixth command code 0110: This command code is used by the master unit during a series of initializing processes, such as switch on of a power source (not shown). In response, the slave units are initialized. For example, flags are initialized which should be produced by the slave processors, such as 39 (Fig. 1). (7) Seventh command code 0111: On transmitting a data signal either to a selected one or to all of the slave units, the master unit sends the seventh command code to the serial interface in order to interrogate whether the slave unit or units are busy or ready for reception of the data signal. Interrogated by an accompanying identification code, the slave unit sends the seventh command code to the serial interface when it is ready for the reception. The slave unit is quiescent when it is busy. (8) Eighth command code 1000: Having initialized the slave units, the master unit may send the eighth command code to one of the slave units that is selected as a questioned slave unit. This is to interrogate which of a plurality of devices, such as a telephone handset exemplified heretobefore, is for use in the questioned slave unit. In reply, the questioned slave unit may send a data code given by the four information bits I. In this event, the data code can represent one of sixteen or less types of the device. (9) Ninth command code 1001: Transmission from the master unit indicates start of data transmission either to a selected one or to all of the slave units. When reception of the data signal is possible in the slave unit identified by an accompanying identification code, the slave unit sends the ninth command code to the serial interface. When the reception is impossible, the slave unit is quiescent. The reception is impossible when the slave unit in question is busy. (10) Tenth command code 1010: Transmission from the master unit indicates an end of the data transmission to the selected one or to all of the slave units. (11) Eleventh to fifteenth command codes: In the illustrated example, only the fifteenth command code 1111 is used in indicating that no signal is sent to the serial interface either from the master unit or from any one of the slave units. Referring to Figs. 10 and 11, transmission of a data signal will be described for a case where the master unit 21 (Fig. 6) transmits the data signal to one of the slave units 50 through 57 that is selected as a destination. It will be presumed that various commands are indicated by the command codes as above. Some of the command codes will not be described in the following although they are used in practice. The master unit 21 sends the ninth command code to the serial interface 59 at a step 61. It will be surmised merely for simplicity of description that all slave units 50 to 57 are capable of receiving the ninth command code. Having received the ninth command code through the serial interface 59, all slave units send the ninth command code to the serial interface 59 at a step 62 which next follows the step 61. The master unit 21 thereby knows that all slave units are ready for reception. The master unit 21 sends an addressing signal to the serial interface 59 at another step 61. In the addressing signal, the identification code represents an identification number of the destination. The information bits I represent the number of bytes of the data signal which should be transmitted to the destination. At 64, the master unit 21 sends eight clock pulses of the clock signal SCK to the serial interface 59. Responsive to the clock pulses, the destination sends the seventh command code to the serial interface 59 as an acknowledge signal in which the identification code represents the identification number of the destination. The master unit 21 checks the acknowledge signal at 65. When the acknowledge signal is not correctly received, the master unit 21 carries out error processing at 66 in the known manner. When the acknowledge signal is correctly received at 65, the master unit 21 sends the clock signal SCK to the serial interface 59 and a byte of the data signal as the serial data output SO at 67. The data byte is received by the destination in synchronism with the clock signal SCK. The master unit 21 checks at 68 whether or not all bytes of the data signal are already sent up to the number of bytes indicated by the addressing signal at 63. Until transmission of all bytes, steps 67 and 68 are repeated. When all bytes are already transmitted, operation of the master unit 21 proceeds to transmission termination processing at 69. In this manner, the data signal is received by the destination as received data. During the transmission termination processing, the master unit 21 sends the fourth command code to the destination at 71 together with the identification code of the destination. In response to the fourth command code, the destination transmits parity data for the received data back to the master unit 21 at 72. The master unit 21 checks the parity data. If the check indicates that the received data are incorrect, the master unit 21 carries out error processing as at 66. When the check shows correct reception, the master unit 21 sends the tenth command code to the destination at 73. The data transmission comes to an end. Turning to Fig. 12, transmission of a data signal will be described for a case where one of the slave units 50 to 57 acts as a source or origin and transmits the data signal to the master unit 21. The identification number assigned to the source, will be called a particular identification number for convenience of description. The source is given data which should be transmitted as the data signal. The source is aware of the number of bytes of the data and keeps the number. It will again be presumed that the data signal is transmitted by the use of various command codes defined before. The master unit 21 (Fig. 6) transmits at 76 a polling signal to all slave units. The polling signal comprises the zeroth command code and an identification code for one of the slave units 50 to 57. At 77, the master unit 21 sends eight clock pulses of the clock signal SCK to the serial interface 59. Being identified by the identification code, one of the slave units 50 to 57 receives the zeroth command code. The slave unit checks whether or not data are given thereto for transmission to the master unit 21. If the identification code represents the particular identification number, the slave unit is the source and sends the zeroth command code back to the master unit 21. When a plurality of slave units are simultaneously given data for transmission to the master unit 21, one thereof responds to the polling signal that is first identified by the identification code. At 78, the master unit 21 checks whether or not the zeroth command code is received as a transmission request signal together with the number of bytes from a slave unit in response to the polling signal. When no zeroth command code is received, the master unit 21 checks at 79 whether or not all identification codes are already used. If not, the master unit 21 selects another identification code at 80 to repeat steps 76 through 79. If all identification codes are already used, operation of the master unit 21 proceeds to error processing at 81. In the absence of errors, the master unit 21 is ready for other communication operations. When the master unit 21 detects at 78 reception of the transmission request signal from the source, the master unit 21 keeps the particular identification number and the number of bytes at 82. At 83, the master unit 21 sends eight clock pulses of the clock signal SCK to the serial interface 59 to make the source send one byte of the data and receives the one byte. The master unit 21 checks at 85 whether or not all bytes of the data are already received. If not, steps 83 and 84 are repeatedly carried out. Upon completion of reception of all bytes, the master unit 21 carries out reception termination operation at 85. The reception termination operation 85 is similar to the transmission termination processing 69 (Fig. 11) except that the source sends the second command code in response to the clock signal SCK sent from the master unit 21 and in compliance with the number of bytes kept in the source. Referring finally to Fig. 13, description will proceed to transfer of a data signal from one of the slave units 50 to 57 used as a source to another thereof that is used as a destination. The source is assigned with a particular identification number as above. The identification number assigned to the destination, will be called a specific identification number. Together with the number of bytes, the source is given data which should be transferred to the destination as the data signal. It is surmised that the command codes are used as before in transferring the data. The master unit 21 (Fig. 6) sends a polling signal at 86 and eight clock pulses of the clock signal SCK at 87 to the serial interface 59, receives the zeroth command code from the source as a transfer request signal, and checks the transfer request signal at 88. Steps 86 through 88 are similar to steps 76 through 78 described in connection with Fig. 12. The master unit 21 moreover checks use of all identification codes, changes the identification code, and may carry out error processing at 89, 90, and 91 like in steps 79 through 81. When the master unit 21 receives the transfer request signal at 88, the master unit 21 receives the specific identification number at 92. The master unit 21 switches the first and the second paths 31 and 32 (Fig. 5) from the usual state to the temporary state at 93 for the source and then at 94 for the master unit 21. Like in steps 83 and 84, the master unit 21 sends eight clock pulses of the clock signal SCK to the serial interface 59 at 95 and checks at 96 whether or not the source has transferred all bytes of the data to the destination. After confirmation of transfer of all bytes, the master unit 21 switches the first and the second paths 31 and 32 back to the usual state at 97 for both the master unit 21 and the source in cooperation with the source. Transfer termination operation is carried out at 98 like the transmission termination processing or operations 69 and 85. Reviewing Figs. 6 through 13, it is possible to understand that the master unit 21 comprises a first arrangement which comprises as in Fig. 1 the central processor 35 and the master transmitter 36 and produces a command signal including either the ninth or the zeroth command code. The command signal is used as a first signal in energizing the energizing arrangement 35-37. On the other hand, each slave unit comprises a second arrangement which comprises the slave processor 39 and the slave transmitter 41 and produces the transmission or the transfer request signal as a second signal for use in energizing the energizing arrangement 35-37. Although included in fact in the slave unit, it is possible to acknowledge that the second arrangement is coupled to each slave unit. The first and the second arrangements serve as the above-mentioned activating arrangement. The above-exemplified merits are achieved also by the serial interface system being illustrated. While this invention has thus far been described in conjunction with only two preferred embodiments thereof, it will now be readily possible for one skilled in the art to carry this invention into practice in various other manners and to implement the central and the slave processors 35 and 39. Above all, the transmission from the master unit and from one or more of the slave units and/or the transfer between two or more of the slave units is possible concurrently in a time division fashion. The concurrent transmission and/or transfer is facilitated particularly when the identification code is included in the command and the data signals for each of the slave units concerned. When the data transfer is unnecessary, the serial interface system need not comprise the path switching arrangement described with reference to Fig. 5. The master unit 21 may comprise the master transmitter and receiver 37 and 36 and the clock generator 38 in a manner which is different from that illustrated with reference to Fig. 1.

Claims: A serial interface system comprising a master unit (21), a plurality of slave units (26,27), and a serial interface (31-33) for use in communication between at least two of said master and said slave units, wherein: said master unit (21) comprises energizing means (35) connected to said interface (31-33) for energizing said interface when said energizing means (35) is activated; said system further comprises activating means (36,37) for controllably activating said energizing means (35) when said master unit begins said communication, characterized in that said activating means (36,37) also controllably activates said energizing means (35) when one of said slave units begins said communication, wherein said activating means comprises a control path (34) which is shared by said energizing means (35) and said slave units (26,27), serving as an activating arrangement for activating the energizing means (35), said control path (34) being selectively activated by the unit, master or slave, which begins said communication. A serial interface system as claimed in Claim 1, said master unit (21) further comprising a clock generator (38) coupled to said interface (31-33), said control path (34), and said energizing means (35) to supply a clock signal to said interface (31-33) when said control path (34) is activated, said communication being transmission of a data signal from said master unit (21) to at least one of said slave units (26,27), wherein said energizing means (35) is for energizing said interface by supplying said interface with said data signal in synchronism with said clock signal. A serial interface system as claimed in Claim 1, said master unit (21) further comprising a clock generator (38) coupled to said interface (31-33), said control path (34), and said energizing means (35), said slave units (26,27) being assigned with identification numbers, respectively, said communication being transmission of a data signal of a duration from a particular slave unit of said slave units (26,27) to said master unit (21), wherein said control path (34) is activated by said particular slave unit, said energizing means (35) being responsive to activation of said control path (34) for energizing said interface with a polling signal for polling said particular slave unit by the identification number of said particular slave unit, said particular slave unit supplying said interface with an answer signal which indicates the identification number of said particular slave unit and a byte number representative of said duration, said energizing means (35) being responsive to said answer signal for making said clock generator (38) supply a clock signal to said interface during said duration, said particular slave unit being responsive to said clock signal for supplying said data signal to said interface in synchronism with said clock signal. A serial interface system as claimed in Claim 1, said master unit (21) further comprising a clock generator (38) coupled to said interface (31-33), said control path (34), and said energizing means (35), said slave units (26,27) being assigned with identification numbers, respectively, said communication being transfer of a data signal of a duration from a first slave unit to a second slave unit, said first and said second slave units being different ones of said plurality of slave units (26,27), wherein said control path (34) is activated by said first slave unit, said energizing means (35) being responsive to activation of said control path (34) for energizing said interface with a polling signal for polling said first slave unit by the identification number of said first slave unit, said first slave unit being responsive to said polling signal for supplying said interface with an answer signal which indicates the identification numbers of said first and said second slave units and a byte number representative of said duration, said energizing means (35) being responsive to said answer signal for making said clock generator (38) supply a clock signal to said interface during said duration, said first slave unit being responsive to said clock signal for supplying said data signal to said interface in synchronism with said clock signal. A serial interface system as claimed in any of claims 1 to 4 wherein said master unit (21) further comprises first means (36) for making said energizing means (35) energize said interface with a first signal, said system further comprising second means (37) coupled to each slave unit for supplying said interface with a second signal, either of said first and said second signals being for activating said energizing means, said first and said second means thereby collectively serving as said activating means. A serial interface system as claimed in Claim 5, said slave units (26,27) being assigned with identification numbers, respectively, wherein said energizing means (35) is for energizing said interface with a signal of a format which always indicates the identification number of one of said slave units.

Inventors: YOSHIDA, IKIO
Applicants: NEC CORPORATION
Application year: 1985
Main classification: G06F13
IPC codes: G06F13