Apparatus and method for serial data communication between a host device and a peripheral device

By providing individual speed units and multiplexer logic for each slave drive unit, efficient serial data communication between the master device and multiple peripheral devices is achieved, solving the problem of slow data transmission speed in the existing technology and improving Improve communication efficiency.

CN114860642BActive Publication Date: 2024-09-10APTIV TECHNOLOGIES AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210116298.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-02-05
Filing Date
2022-02-07
Publication Date
2024-09-10
Estimated Expiration
2042-02-07

AI Technical Summary

Technical Problem

In serial data communication between a master device and multiple peripheral devices, the existing technology has the problem of slow data transmission speed, especially when it is necessary to communicate with multiple peripheral devices at the same time, pin shortages and speed limitations lead to communication Inefficient.

Method used

By providing each slave drive unit with a separate speed unit, duplex data communication connections and multiplexer logic are utilized to pass data in the serial chain at a faster pulse rate (20MHz) in the first cycle and in the second Parallel transmission is performed at a slower pulse rate (1MHz) during the cycle to achieve efficient transmission of data between the master device and the slave device.

Benefits of technology

The data communication rate is significantly increased and the communication cycle is reduced, thereby reducing the time required to send and receive a single 8-bit word between the master device and multiple peripheral devices from 40μs to 10μs, improving the communication efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114860642B_ABST
    Figure CN114860642B_ABST
Patent Text Reader

Abstract

The present disclosure provides an apparatus and method for serial data communication between a master device and a peripheral device. A microcontroller is provided with a plurality of slave drive units (D1 to D5) for driving the peripheral device. A speed unit is provided, which has a serial shift register, a multiplexer, and a duplex data communication connection with the serial register of the connected slave drive unit via pins (LSSI, LSSO). A serial data connection is provided between the serial registers of the speed unit to form a serial chain connection. The multiplexer has logic for enabling a serial data connection between serial shift registers in a first cycle or mode; and logic for enabling duplex data communication at a relatively slow second pulse rate between the serial shift registers of the pair for each pair of the speed unit and the corresponding slave drive unit in a second cycle or mode, whereby data can be serially transferred between them in parallel at a relatively slow second pulse rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and apparatus for serial data communication between a master device and a plurality of slave driving units for driving peripheral devices. Background Art

[0002] The Serial Peripheral Interface (SPI) is a communication interface that is typically used for data communication between a computer's master device and a slave device such as a peripheral slave chip used in conjunction with a peripheral device. For example, five peripheral slave chips can be connected in parallel to a bus connected to the master device. In addition, a chip select line between the master device and each corresponding chip allows the master device to selectively enable / disable individual chips. In the case where more peripheral slave devices are needed, there may be a shortage of pins available to the master device, and it is known to use expanders to solve this problem.

[0003] Typically, peripheral slave chips have an operating speed of 1MHz. For example, in the automotive field, integrated circuits use smart FETs that are typically limited to 1MHz SPI speeds. Therefore, it will take 8μs to write to and read from a standard 8-bit shift register in the peripheral chip of the peripheral device. Therefore, in order to send and receive a single 8-bit word between the master device to each of the 5 slave devices associated with the peripheral device, a cycle of 40μs will be required. Summary of the invention

[0004] The present disclosure relates to a method and apparatus for accelerating serial data communication between a master device and a plurality of slave driving units for driving peripheral devices, so that the data communication can be performed at a faster rate than in the prior art.

[0005] According to a first aspect, a method for serial data communication between a master device MC and a plurality of slave drive units DU(n) for driving peripheral devices is provided, wherein the slave drive units DU(n) include serial shift registers, the method comprising the following steps:

[0006] providing a separate speed unit SU(n) corresponding to the separate slave drive unit DU(n), wherein the speed unit SU(n) comprises a serial shift register;

[0007] providing a duplex data communication connection between the serial register of the individual speed unit SU(n) and the serial register of the individual corresponding slave drive unit DU(n);

[0008] providing serial data connections between the serial registers of the speed unit SU(n) such that the serial registers are connected in a serial chain with a data input at one end of the chain and a data output at the other end of the chain;

[0009] enabling the serial data connection between the serial registers of the speed unit in a first cycle, whereby data can be serially transferred from a master device into the data input of a serial chain and from the data output of the serial chain to the master device at a relatively fast first pulse rate; and

[0010] In the second cycle, a duplex data communication connection between the serial register of the individual speed unit and the serial register of the corresponding slave drive unit DU(n) is enabled, whereby data can be serially transferred in parallel between the serial register of the individual speed unit and the corresponding slave drive unit DU(n) at a relatively slower second pulse rate.

[0011] In one embodiment, the second cycle continues until all data in the shift register has been shifted in the duplex data communication.

[0012] In another embodiment, the first cycle lasts until all data in the serial registers of the speed units connected in the serial chain have been shifted to the data output of the serial chain.

[0013] In another embodiment, the first pulse rate comprises 20 MHz and the second pulse rate comprises 1 MHz.

[0014] In another embodiment, the serial shift register is an 8-bit shift register.

[0015] In yet another embodiment, the individual speed unit includes an additional serial shift register, and an additional duplex data communication connection is provided between the additional serial register of the individual speed unit and the serial register of the additional individual corresponding slave driver unit; and

[0016] In another cycle, a duplex data communication connection between the further serial shift register of the individual speed unit and the serial register of the additional individual corresponding slave driver unit is enabled.

[0017] According to another aspect, there is provided an apparatus for providing serial data communication between a master device MC and a plurality of slave drive units DU(n) for driving peripheral devices, wherein the slave drive units DU(n) include serial shift registers, the apparatus comprising:

[0018] a plurality of individual speed units SU(n), wherein the speed units SU(n) comprise serial shift registers, multiplexer logic units, and duplex data communication connections for connecting the serial shift registers of the individual speed units to the serial registers of the corresponding individual slave driver units;

[0019] serial data connections between the serial registers of the speed unit SU(n) such that the serial registers can be connected in a serial chain with a data input at one end of the chain and a data output at the other end of the chain;

[0020] wherein the multiplexer logic unit of the speed unit includes logic for enabling the serial data connection between the serial shift registers of the speed unit in a first cycle, whereby data can be serially transferred from the master device to the data input end of the serial chain and serially transferred from the data output end of the serial chain to the master device at a relatively fast first pulse rate; and

[0021] Wherein, the multiplexer logic unit of the speed unit includes logic for enabling duplex data communication at a relatively slower second pulse rate between the serial shift register of the separate speed unit and the serial shift register of the corresponding slave drive unit in the second cycle, whereby data can be serially transferred in parallel between the serial shift register of the separate speed unit and the serial shift register of the corresponding slave drive unit at the relatively slower second pulse rate.

[0022] In yet another embodiment, the multiplexer logic unit enables the second cycle to continue until all data in the shift register has been shifted in the duplex data communication.

[0023] In yet another embodiment, the multiplexer logic unit enables the first cycle to continue until all data in the serial registers of the speed units connected in the serial chain have been shifted to data outputs of the serial chain.

[0024] In yet another embodiment, the first pulse rate comprises 20 MHz, and the second pulse rate comprises 1 MHz.

[0025] In yet another embodiment, the serial shift register is an 8-bit shift register.

[0026] In yet another embodiment, the individual speed units include a further serial shift register, and a further duplex data communication connection is provided between the further serial register of the individual speed unit SU(n) and the serial register of the additional individual corresponding slave driver unit; and

[0027] Wherein the multiplexer logic unit of the speed unit includes logic for enabling a duplex data communication connection between the further serial shift register of the individual speed unit and the serial register of the additional individual corresponding slave driver unit.

[0028] In another embodiment, a system for serial data communication between a host device and a plurality of peripheral devices is provided, the system comprising:

[0029] A microcontroller capable of connecting to the master device:

[0030] a plurality of slave driving units DU(n) for driving the peripheral device, wherein the slave driving unit DU(n) comprises a serial shift register;

[0031] a plurality of separate speed units SU(n), each corresponding to a separate slave driver unit DU(n), wherein the speed unit SU(n) comprises a serial shift register, a multiplexer logic unit, and a duplex data communication connection for connecting the serial shift register of the separate speed unit to the serial register of the corresponding separate slave driver unit;

[0032] serial data connections between the serial registers of the speed unit, enabling the serial registers to be connected in a serial chain, wherein a data input at one end of the chain is connected to an output of the microcontroller and a data output at the other end of the chain is connected to an input of the microcontroller;

[0033] wherein the multiplexer logic unit of the speed unit includes logic for enabling serial data connections between the serial shift registers of the speed unit in a first cycle, whereby data can be serially transferred from an output of the microcontroller to a data input of the serial chain and from the data output of the serial chain to an input of the microcontroller at a relatively fast first pulse rate; and

[0034] Wherein, the multiplexer logic unit of the speed unit includes logic for enabling duplex data communication at a relatively slower second pulse rate between the serial shift register of the individual speed unit and the serial shift register of the corresponding slave drive unit in a second cycle, whereby data can be serially transferred in parallel between the serial shift register of the individual speed unit and the serial shift register of the corresponding slave drive unit at a relatively slower second pulse rate.

[0035] In one embodiment, the individual speed units include a further serial shift register and a further duplex data communication connection is provided between the further serial register of the individual speed unit SU(n) and the serial register of the additional individual corresponding slave driver unit; and

[0036] Wherein the multiplexer logic unit of the speed unit includes logic for enabling a duplex data communication connection between the further serial shift register of the individual speed unit and the serial register of the additional individual corresponding slave driver unit in another cycle.

[0037] According to another aspect, a method for serial data communication between a master device and a plurality of slave driving units for driving peripheral devices is provided, wherein the slave driving units include serial shift registers, and the method includes the following steps:

[0038] providing a separate speed unit corresponding to the separate slave drive unit, the speed unit comprising a serial shift register;

[0039] providing a duplex data communication connection between a serial register of an individual speed unit and a corresponding serial register of an individual slave drive unit;

[0040] providing serial data connections for each serial register of the speed unit so that the speed unit can be individually connected to a data input terminal and a data output terminal;

[0041] In a first cycle, sequentially selecting individual speed units and enabling serial data connections between serial registers of the selected speed units and data input terminals and data output terminals, whereby data can be serially transferred from the master device to the data input terminals and from the data output terminals to the master device at a relatively fast first pulse rate; and

[0042] In the second cycle, a duplex data communication connection between the serial register of the individual speed unit and the serial register of the corresponding slave drive unit DU(n) is enabled, whereby data can be serially transferred in parallel between the serial register of the individual speed unit and the serial register of the corresponding slave drive unit DU(n) at a relatively slower second pulse rate.

[0043] In one embodiment, the second cycle continues until all data in the shift register has been shifted in the duplex data communication.

[0044] In another embodiment, the first cycle continues until all data in the serial register of the speed unit has been shifted to the data output.

[0045] In yet another embodiment, the first pulse rate comprises 20 MHz, and the second pulse rate comprises 1 MHz.

[0046] In yet another embodiment, the serial shift register is an 8-bit shift register. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Illustrative embodiments will now be described with reference to the accompanying drawings, in which:

[0048] Figure 1 An embodiment of a serial data communication system between a host device and a plurality of peripheral devices is illustrated;

[0049] Figure 2 Illustrate the operation Figure 1 A flow chart of the communication system shown;

[0050] Figure 3 Illustrated in Figure 1 An example of a speed unit used in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] Figure 1 An embodiment of a serial data communication system used between a master device and a plurality of peripheral devices is shown. A microcontroller MC is connected to the master device (not shown). It should be understood that the master device and the microcontroller MC may be a single unit. The microcontroller MC controls the operation of data communication between the master device and the corresponding slave drive unit DU(n) of the peripheral device (not shown).

[0052] The microcontroller MC comprises a master-output slave-input pin MOSI for sending data in serial form to the line MOSI for transmission to a peripheral device associated with its corresponding slave driver unit. The microcontroller MC also comprises a master-input slave-output pin MISO for receiving data in serial form on the line MISO from a peripheral device associated with the corresponding slave driver unit.

[0053] Each peripheral device has a corresponding slave driver unit, usually a separate IC chip. In the present embodiment, the number n of slave driver units is 5, DU1 to DU5, which are respectively associated with the corresponding peripheral devices, although it is obvious that a different number of peripheral devices and slave driver units can be used, which is usually limited by the pins of the microcontroller MC.

[0054] Each slave driver unit includes an 8-bit in / out shift register, although those skilled in the art will appreciate that other sized shift registers may be used, such as 16-bit or 32-bit registers.

[0055] In this embodiment, a corresponding speed unit SU(n) is associated with each slave drive unit to form a unit pair. Figure 3 An example of a speed unit SU(n) is illustrated. The speed unit comprises an 8-bit shift register 30 having an input and an output, although those skilled in the art will appreciate that other sized shift registers may be used, such as 16-bit or 32-bit registers.

[0056] The output of the first multiplexer MU1 is connected to the input of the register 30. The first input of the first multiplexer MU1 is connected to the high speed slave input pin HSSI of the speed unit, and the second input is connected to the low speed slave input pin LSSI of the speed unit. The control pin of the first multiplexer MU1 is connected to the high speed / low speed selection pin H / LSELECT of the speed unit.

[0057] When the select pin H / L SELECT is set to high H in the first mode, the output terminal of the first multiplexer MU1 is connected to the first input connected to the high-speed slave input pin HSSI. When the select pin H / L SELECT is set to low L in the second mode, the output terminal of the multiplexer MU1 is connected to the second input connected to the low-speed slave input pin LSSI.

[0058] The input end of the second multiplexer MU2 is connected to the output end of the register 30. The first input of the second multiplexer MU2 is connected to the high speed slave output pin HSSO of the speed unit, and the second input is connected to the low speed slave output pin LSSO of the speed unit. The control pin of the multiplexer MU2 is also connected to the high speed / low speed selection pin H / LSELECT of the speed unit.

[0059] When the select pin H / L SELECT is set to high H in the first mode, the input terminal of the second multiplexer MU2 is connected to the first output connected to the high-speed slave output pin HSSO. When the select pin H / L SELECT is set to low L in the second mode, the input terminal of the second multiplexer MU2 is connected to the second output connected to the low-speed slave output pin LSSO.

[0060] The respective multiplexers MU1 and MU2 are connected to a high speed clock pulse pin HSCLK of the speed unit and to a low speed clock pulse pin LSCLK of the speed unit.

[0061] Refer again Figure 1 , five speed units SU1 to SU5 are used. Each speed unit SU(n) is connected to correspond to the corresponding slave drive unit DU(n).

[0062] As is known in the art, each slave drive unit DU(n) includes an SO pin for outputting slave output data from the slave drive unit. The SO pin is connected to a low-speed slave output pin LSSO of a corresponding speed unit SU(n). Each slave drive unit DU(n) also includes an SI pin for inputting slave input data from a corresponding speed unit SU(n). The SI pin is connected to a low-speed slave input pin LSSI of a corresponding speed unit SU(n).

[0063] It can therefore be seen that the individual serial shift registers in each speed unit SU(n) correspond to the serial shift registers of each slave drive unit DU(n), and a corresponding full-duplex connection can be established between them.

[0064] In the usual serial input / serial output mode known to those skilled in the art, the slave driver unit can be enabled for up to 8 clock pulses, so that each pulse causes the slave driver unit to send a bit to the speed unit, and the speed unit to send a bit to the slave driver unit, until an 8-bit data word is exchanged. Of course, if the register contains more than 8 bits, an appropriate number of clock pulses is used, or multiples of 8 clock pulses can be used.

[0065] The microcontroller MC comprises a low speed clock pulse pin LSCLK which provides a 1 MHz clock pulse to the LSCLK line. Each of the slave driver units DU1 to DU5 has a clock pulse pin connected to the line LSCLK.

[0066] The microcontroller also includes a slave driver unit chip enable select pin DU SSC connected to a chip enable select line DU SSC (switchable between logic high output to enable and logic low output to disable, and vice versa). Each slave driver unit DU1 to DU5 has an enable pin connected to the line DU SCS.

[0067] Thus, in this embodiment, the microcontroller MC can enable all slave drive units DU1 to DU5 up to 8 1MHz clock pulses, so that full-duplex data communication of the above-mentioned 8-bit data occurs between the slave drive units and their corresponding speed units, thereby transmitting words corresponding to 8-bit data. This data exchange enables control instructions to be sent from the master device to the peripheral devices attached to the corresponding slave drive units, and enables data to be returned from the peripheral devices to the master device in a known manner. It should be understood that in this embodiment, the microcontroller MC provides an interface between the peripheral devices and the master device.

[0068] The microcontroller MC also includes a high speed clock pin HS CLK which provides 20 MHz pulses to the HS CLK line when the H / L SELECT pin is set high and provides 1 MHz pulses to the HS CLK line when the H / L SELECT pin is set low.

[0069] As above Figure 3 As mentioned, each respective speed unit comprises a standard 8-bit shift register and multiplexers MU1 and MU2. Each shift register has a HS CLK pin connected to the HS CLK line.

[0070] Refer again Figure 1 , the HSSI pin of the speed unit SU1 is connected to the pin MOSI of the microcontroller MC via the MOSI line.

[0071] The high speed slave output pin HSSO of the speed unit SU1 is connected to the high speed slave input pin HSSI of the speed unit SU2.

[0072] The high speed slave output pin HSSO of the speed unit SU2 is connected to the high speed slave input pin HSSI of the speed unit SU3.

[0073] The high speed slave output pin HSSO of the speed unit SU3 is connected to the high speed slave input pin HSSI of the speed unit SU4.

[0074] The high-speed slave output pin HSSO of the high-speed unit SU4 is connected to the high-speed slave input pin HSSI of the high-speed unit SU5.

[0075] The high speed slave output pin HSSO of the speed unit SU5 is connected to the MISO pin of the microcontroller MC via the line MISO.

[0076] The logic of multiplexers MU1 and MU2 is set so that when the H / L SELECT pin is set high in the first mode, the serial shift registers of each corresponding speed unit can be connected in a serial chain of 5 serial registers, wherein the high speed slave input pin HSSI of speed unit SU1 provides data input at one end of the chain, and the high speed slave output pin HSSO of speed unit SU5 provides data output at the other end of the chain.

[0077] When pin H / L SELECT is set to low in the second mode, the low-speed slave output pin LSSO and the low-speed input pin SI of the corresponding speed unit and the slave drive unit are connected, and the low-speed slave input pin LSSI and the low-speed output pin SO of the corresponding speed unit and the slave drive unit are connected, so that data can be exchanged in parallel between the shift registers of the corresponding individual speed unit and slave drive unit pairs at the same time.

[0078] Now refer to Figure 2 The flowchart process in the figure is used to explain the operation of the serial data communication system.

[0079] The microcontroller MC includes an internal counter T1 and an internal counter T2. The internal counter T1 counts clock pulses from the 20 MHz pin, and the internal counter T2 counts clock pulses from the 1 MHz pin.

[0080] In step S1, the LSCLK pin is disabled so that the 1 MHz clock pulse is not sent from the pin and thus has no effect on the registers in the slave driver units D1 to D5. Therefore, the serial registers in the corresponding speed units do not receive or send any data bits to the corresponding slave driver units in a pair so that there is no duplex data communication connection between the slave driver units and their corresponding speed units in a pair.

[0081] In step S1, the H / L SELECT pin is set high. This signal is received at the respective multiplexers MU1 and MU2 of the speed units SU1 to SU5. Due to the logic of the multiplexers, this connects the output of its corresponding register to the high speed slave output pin HSSO, and also connects the bits at its high speed slave input pin HSSI to the input of its corresponding speed unit's register for data transmission in synchronism with the reception of the 20MHz clock pulse signal on line HSCLK.

[0082] Finally, in step S1 , the 20 MHz clock pulse counter T1 is set to zero.

[0083] In step S2, the microcontroller serially outputs data bits from the MOSI pin in synchronization with the 20 MHz timing pulse. For each data bit output, the counter T1 is incremented by 1.

[0084] In step S3, these data bits are received at the HSSI pin of speed unit SU1. In addition, in step S3, as is known in the art of shift-in / shift-out (SISO) shift registers, the data bits at the HSSI pin of speed unit S1 will be written to the input of the serial shift register according to the logic of multiplexer MU1, while the data bits will be output to the HSSO pin of speed unit S1 through multiplexer MU2 according to the logic of multiplexer MU2.

[0085] The corresponding effect will occur at each speed unit, whereby a data bit arriving at its HSSI pin will be written to its corresponding serial register, while a data bit is output to its corresponding HSSO pin.

[0086] Thus, as received data bits are written, the data bits are output to cascade from one speed unit to the next.

[0087] With respect to the speed unit SU5, the data bits are output at the HSSO pin and in step S4 these data bits are received at the MISO pin of the microcontroller MC in synchronism with the 20 MHz clock pulse.

[0088] In this embodiment, there are 5 speed units with 8-bit shift-in / shift-out (SISO) shift registers, so that each register can store an 8-bit word. In order to replace 40 bits in the 5 registers of speed units SU1 to SU5, 40 pulses of the 20MHz clock pulse are required. Therefore, in the first mode operating at 20MHz, a period of 40 clock pulses is required to completely replace the individual 8-bit words in the 5 registers with the data on line MOSI and output the individual 8-bit words previously in the 5 registers on line MISO. Therefore, this period is 2μs long.

[0089] In step S5, it is determined whether the counter T1 has reached 40. If no, ie, the counter T1 has not reached 40, control returns to step S2. If yes, ie, the counter T1 has reached 40, control proceeds to step S6.

[0090] It can thus be seen that in steps S2 to S4, data are loaded from line MOSI into the data input of the chain of 5 registers of speed units S1 to S5, and data are output from the data output of the chain of 5 registers to line MISO, synchronously with the fast clock pulse of 20 MHz, until all 5 words in the 5 serial registers have been overwritten and their contents have been output.

[0091] If the counter T1 has reached 40, the process proceeds to the next step S6.

[0092] In step S6, the H / L SELECT pin is set to low. This signal is received at the respective multiplexers MU1 and MU2 of the speed units SU1 to SU5. Due to the logic of the multiplexers, this disconnects the data output and input of its corresponding register from the HSSO and HSSI pins of the speed unit. Instead, the output and input of its corresponding shift register are connected to the LSSO and LSSI pins of the speed unit, thereby establishing a duplex data communication connection between the registers of the speed unit and the slave drive unit.

[0093] Furthermore, in step S6, the slave driver unit pin DU SSC is set to enable, and the LS CLK pin is set to send a 1MHz clock pulse signal, and the HSCLK pin is set to send a 1MHz clock pulse signal. As a result of being enabled, the clock pulses arriving from the LSCLK pin cause data exchange between the registers in the slave driver units D1 to D5 and the registers of the speed unit in synchronization with the HSCLK sending 1MHz. Therefore, when the serial register in the corresponding speed unit receives a data bit, it writes the data bit to its corresponding slave driver unit in a pair. Therefore, full-duplex data communication can occur between the driver unit and its corresponding speed unit synchronously with a relatively slow 1MHz clock pulse.

[0094] Finally, in step S6, the 1 MHz clock pulse counter T2 is set to zero.

[0095] In step S7, for each slave drive unit, its corresponding SISO shift register outputs data bits at its SO pin in synchronization with the 1MHz pulse signal. The corresponding speed unit receives the data bits, and its shift register also inputs data bits at its LSSI pin in synchronization with the 1MHz pulse signal HSCLK. Similarly, for each speed unit, its corresponding SISO shift register outputs data bits at its LSSO pin in synchronization with the 1MHz pulse signal. The corresponding slave drive unit receives the data bits, and its shift register also inputs data bits at its SI pin in synchronization with the 1MHz pulse signal.

[0096] In step S7, for each 1 MHz pulse signal, the value in the second timer T2 is increased by 1.

[0097] In this embodiment, the drive units have 8-bit SISO shift registers so that each register can store an 8-bit word. In order to replace 8 bits in the registers of the drive units DU1 to DU5, 8 1MHz clock pulses are required. Therefore, in the second slow mode, a cycle of 8 clock pulses is required to completely replace a single 8-bit word in the corresponding register. This cycle is 8μs long. It can be understood that duplex data communication occurs simultaneously for all speed units and slave drive units.

[0098] In step S8, it is determined whether the counter T2 has reached 8. If no, that is, the counter T2 has not reached 8, control returns to step S7. If yes, that is, the counter T2 has reached 8, control proceeds to step S9.

[0099] Therefore, it can be seen that in steps S7 and S8, data is loaded from the registers of each corresponding drive unit into the registers of the corresponding speed unit, and the data from the registers of each corresponding speed unit is loaded into the registers of the corresponding drive unit synchronously with the slow clock pulse of 1 MHz.

[0100] Therefore, to replace 8 bits in the corresponding registers of all speed units SU1 to SU5 with 8 bits in the corresponding drive units DU1 to DU5, 8 pulses of a 1 MHz clock pulse, ie 8 μS, are required. Therefore, a period of 8 clock pulses is required to completely replace a single 8-bit word in all registers.

[0101] In step S9, if it is determined that there is more data to be transferred, the process returns to step S1. If there is no additional data to be transferred, the process proceeds to step S10. This step disables the DU SCS pin, thereby disabling the drive unit, and the process ends.

[0102] Therefore, for the present serial data communication system, a total period of 10 μs is required to transmit and receive a single 8-bit word between the master device to each of the five slave devices associated with the peripheral device.

[0103] In contrast, a prior art configuration of a serial data communication system comprising a master device and five slave drive units associated with a peripheral device will operate by enabling full-duplex data transmission between a specific single selected slave drive unit and the master device. Assuming a 1MHz clock signal (which is a typical operating speed for most peripheral devices in the automotive field), a word data exchange between the master device and a single selected slave drive unit will require 8μS for each selected slave drive unit. Therefore, in order to send and receive a single 8-bit word between the master device and all five slave devices associated with the peripheral device, a total period of 40μs will be required.

[0104] Obviously, for this embodiment, if there are n similar slave drive units in parallel, and the corresponding paired speed units can operate x times faster than the operation of the slave drive units, then the following formula applies to the speed factor:

[0105] (n*x) / (n+x)

[0106] With 5 slave drive units, and with 5 speed units operating 20 times faster, the present embodiment will operate four times faster than the prior art daisy chain configuration of slave drive units.

[0107] It should be understood that the above embodiments are only for illustrative purposes. In fact, the embodiments can be applied to many different configurations, and the specific embodiments are easy to implement for those skilled in the art.

[0108] For example, although 5 slave drive units and 5 speed devices are described, a different number of such units may be used, subject to the limitations of pin availability on the chip. In addition, although the low-speed clock speed is 1 MHz and the high-speed clock is 20 MHz, other speeds may be used as appropriate for the components and peripherals used.

[0109] The components implementing the logic of multiplexers MU1 and MU2 are obvious to those skilled in the art. However, those skilled in the art will appreciate that the above configurations of multiplexers MU1 and MU2 may be changed or added to implement the same connection logic to implement the present serial data communication system.

[0110] It will also be appreciated that a reset pin is typically required to reset the contents of the serial registers of the speed unit and / or the drive unit.

[0111] It should also be understood that although the microcontroller MC of the present embodiment has two clock pulse pins, the microcontroller MC may include only a single clock pulse pin, the microcontroller controlling the clock pulse speed of the single pin.

[0112] The above embodiment has five 8-bit registers in the speed units to define a chain through which data is passed between the MOSI pin and the MISO pin of the microcontroller MC by cascading the data from speed unit SU1 to speed unit SU2, speed unit SU3, speed unit SU4 and speed unit SU5.

[0113] Those skilled in the art will also appreciate that the present embodiment may be modified to accommodate different embodiments in which high speed slave input and high speed slave output data may be read in and out sequentially from registers of separate speed units. Therefore, a single speed unit was selected.

[0114] By including a speed unit selection pin on the microcontroller MC, and appropriate multiplexers and pin connections in the speed unit, a single speed unit can be selected so that data from the MOSI pin is read into the register at 20 MHz, while data from the register is read out and written to the MISO pin at 20 MHz. This can be repeated for each speed unit so that in this mode, 40 bits in 5 registers are again exchanged in 2 μs. The details of this implementation will be apparent to those skilled in the art.

[0115] Those skilled in the art will appreciate that each speed unit may include a second 8-bit register 31 ( Figure 3 The microcontroller MC is shown in dashed outline in FIG. 1 and operates as a slave driver unit input or output expander by providing eight additional input pins or output pins corresponding to the microcontroller MC, which may be connected to other inputs or outputs in the system that may not be suitable for the microcontroller due to the limited number of microcontroller pins. It should be understood that the microcontroller MC will require additional pins to transfer register bit 30 to register bit 31, and will require different timing to select register 31 for high speed and low speed, the details of which will be apparent to those skilled in the art.

[0116] In summary, a microcontroller MC is provided with a plurality of slave driver units D1 to D5 for driving peripheral devices. Individual speed units SU1 to SU5 are provided, which have serial shift registers, multiplexers MU1 to MU2 and duplex data communication connections with the individual serial registers of the connected slave driver units via LSSI, LSSO pins. A serial data connection via HSSI, HSSO pins is provided between the serial registers of the speed units to form a serial chain connection, with a data input at one end of the chain and a data output at the other end of the chain. The multiplexer has logic for enabling the serial data connection between the serial shift registers of the speed units in a first cycle or mode, thereby serially transferring data from the MOSI pin of the microcontroller to the data input of the serial chain and from the data output of the serial chain to the MISO pin of the microcontroller at a relatively fast first pulse rate. The multiplexer has logic for enabling duplex data communications between the serial shift registers of the pair at a relatively slower second pulse rate for each pair of a single speed unit and a corresponding slave drive unit in a second cycle or mode, whereby data can be serially transferred between the serial shift registers of the pair in parallel at the relatively slower second pulse rate.

Claims

1. A method for serial data communication between a master device and a plurality of slave drive units for driving peripheral devices, wherein: The slave driving unit comprises a serial shift register, and the method comprises the following steps: providing a separate speed unit corresponding to a separate slave drive unit, wherein the speed unit comprises a serial shift register; providing a duplex data communication connection between the serial shift register of the individual speed unit and the serial shift register of the individual corresponding slave drive unit; providing serial data connections between the serial shift registers of the speed unit such that the serial shift registers are connected in a serial chain with a data input at one end of the serial chain and a data output at another end of the serial chain; enabling the serial data connection between the serial shift registers of the speed unit in a first cycle, whereby data can be serially transferred from the master device into the data input of the serial chain and from the data output of the serial chain to the master device at a relatively fast first pulse rate; and In the second cycle, the duplex data communication connection between the serial shift register of the individual speed unit and the serial shift register of the corresponding slave driver unit is enabled, whereby data can be serially transferred in parallel between the serial shift register of the individual speed unit and the corresponding slave driver unit at a relatively slower second pulse rate.

2. The method according to claim 1, wherein: The second cycle continues until all data in the serial shift register has been shifted in the duplex data communication.

3. The method according to claim 1 or 2, wherein: The first cycle continues until all data in the serial shift registers of the speed units connected in the serial chain have been shifted to the data outputs of the serial chain.

4. The method according to claim 1, wherein: The first pulse rate comprises 20 MHz, and the second pulse rate comprises 1 MHz.

5. The method according to claim 1, wherein: The serial shift register is an 8-bit shift register.

6. The method according to claim 1, wherein: The individual speed unit includes an additional serial shift register and provides an additional duplex data communication connection between the additional serial shift register of the individual speed unit and the serial shift register of an additional individual corresponding slave driver unit; and In another cycle, the further duplex data communication connection between the further serial shift register of the individual speed unit and the serial shift register of the additional individual corresponding slave driver unit is enabled.

7. An apparatus for providing serial data communication between a master device and a plurality of slave drive units for driving peripheral devices, wherein: The slave driving unit includes a serial shift register, and the device includes: a plurality of individual speed units, wherein the speed units include serial shift registers, multiplexer logic units, and duplex data communication connections for connecting the serial shift registers of the individual speed units to the serial shift registers of corresponding individual slave driver units; serial data connections between the serial shift registers of the speed unit such that the serial shift registers of the speed unit can be connected in a serial chain with a data input at one end of the serial chain and a data output at the other end of the serial chain; wherein the multiplexer logic unit of the speed unit includes a logic unit for enabling the serial data connection between the serial shift registers of the speed unit in a first cycle, whereby data can be serially transferred from the master device to the data input end of the serial chain and serially transferred from the data output end of the serial chain to the master device at a relatively fast first pulse rate; and Wherein, the multiplexer logic unit of the speed unit includes a logic unit for enabling duplex data communication at a relatively slower second pulse rate between the serial shift register of the separate speed unit and the serial shift register of the corresponding slave drive unit in a second cycle, whereby data can be serially transferred in parallel between the serial shift register of the separate speed unit and the serial shift register of the corresponding slave drive unit at a relatively slower second pulse rate.

8. The device according to claim 7, wherein: The multiplexer logic unit enables the second cycle to continue until all data in the serial shift register has been shifted in the duplex data communication.

9. The device according to claim 7 or 8, wherein: The multiplexer logic unit enables the first cycle to continue until all data in the serial shift registers of the speed units connected in the serial chain have been shifted to the data outputs of the serial chain.

10. The device according to claim 7, wherein: The first pulse rate comprises 20 MHz, and the second pulse rate comprises 1 MHz.

11. The device according to claim 7, wherein: The serial shift register is an 8-bit shift register.

12. The device according to claim 7, wherein: The individual speed unit includes an additional serial shift register and provides an additional duplex data communication connection between the additional serial shift register of the individual speed unit and the serial shift register of an additional individual corresponding slave driver unit; and Wherein, the multiplexer logic unit of the speed unit comprises a logic unit for enabling the further duplex data communication connection between the further serial shift register of the individual speed unit and the serial shift register of the additional individual corresponding slave driver unit in another cycle.

13. A serial data communication system for a host device and a plurality of peripheral devices, the serial data communication system comprising: A microcontroller capable of connecting to the master device: a plurality of slave driving units for driving the peripheral device, wherein the slave driving units include serial shift registers; a plurality of separate speed units, each speed unit corresponding to a separate slave driver unit, wherein the speed unit comprises a serial shift register, a multiplexer logic unit, and a duplex data communication connection for connecting the serial shift register of the separate speed unit to the serial shift register of the corresponding separate slave driver unit; serial data connections between the serial shift registers of the speed unit such that the serial shift registers of the speed unit can be connected in a serial chain, wherein a data input at one end of the serial chain is connected to an output of the microcontroller and a data output at the other end of the serial chain is connected to an input of the microcontroller; wherein the multiplexer logic unit of the speed unit includes a logic unit for enabling the serial data connection between the serial shift registers of the speed unit in a first cycle, whereby data can be serially transferred from the output of the microcontroller to the data input of the serial chain and from the data output of the serial chain to the input of the microcontroller at a relatively fast first pulse rate; and Wherein, the multiplexer logic unit of the speed unit includes a logic unit for enabling duplex data communication at a relatively slower second pulse rate between the serial shift register of the separate speed unit and the serial shift register of the corresponding slave drive unit in a second cycle, whereby data can be serially transferred in parallel between the serial shift register of the separate speed unit and the serial shift register of the corresponding slave drive unit at a relatively slower second pulse rate.

14. The serial data communication system according to claim 13, wherein: The individual speed unit includes an additional serial shift register and provides an additional duplex data communication connection between the additional serial shift register of the individual speed unit and the serial shift register of an additional individual corresponding slave driver unit; and Wherein, the multiplexer logic unit of the speed unit comprises a logic unit for enabling the further duplex data communication connection between the further serial shift register of the individual speed unit and the serial shift register of the additional individual corresponding slave driver unit in another cycle.

15. A method for serial data communication between a master device and a plurality of slave drive units for driving peripheral devices, wherein: The slave driving unit comprises a serial shift register, and the method comprises the following steps: providing a separate speed unit corresponding to the separate slave drive unit, the speed unit comprising a serial shift register; providing a duplex data communication connection between the serial shift register of the individual speed unit and the serial shift register of the corresponding individual slave drive unit; providing serial data connections for each serial shift register of the speed unit so that the speed unit can be individually connected to a data input terminal and a data output terminal; In a first cycle, sequentially selecting individual speed units and enabling serial data connections between the serial shift registers of the selected speed units and the data input terminals and the data output terminals, whereby data can be serially transferred from the master device to the data input terminals and from the data output terminals to the master device at a relatively fast first pulse rate; and In the second cycle, a duplex data communication connection between the serial shift register of the individual speed unit and the serial shift register of the corresponding slave drive unit is enabled, whereby data can be serially transferred in parallel between the serial shift register of the individual speed unit and the serial shift register of the corresponding slave drive unit at a relatively slower second pulse rate.

16. The method according to claim 15, wherein: The second cycle continues until all data in the serial shift register has been shifted in the duplex data communication.

17. The method according to claim 15 or 16, wherein: The first cycle continues until all data in the serial shift register of the speed unit has been shifted to the data output.

18. The method according to claim 15, wherein: The first pulse rate comprises 20 MHz, and the second pulse rate comprises 1 MHz.

19. The method according to claim 15, wherein: The serial shift register is an 8-bit shift register.