1. Technical Field
The present invention relates to I2C/SPI control interface circuitries, integrated circuit structures, and bus structures thereof, and more particularly, to an I2C/SPI control interface circuitry, an integrated circuit structure, and a bus structure thereof advantageously configured to prevent signal interference and lower manufacture as well as packaging costs.
2. Description of Related Art
An I2C (inter-integrated circuit) serial communication bus and an SPI (serial peripheral interface) bus are master-slave bus systems in wide use and are configured to control various peripheral devices. However, in practice, the two bus systems have different specifications and thus are incompatible. Hence, it is imperative to render the two bus systems compatible to ensure quality transmission.
Referring to
Referring to
Referring to
Referring to
Referring to
Referring to
However, when the SPI control module 20 is enabled (the SPI chip enable signal (SPI_cs) stays at a low logic level) as shown enclosed by a dotted line in
The present invention provides an I2C/SPI control interface circuitry, an integrated circuit structure, and a bus structure thereof to enhance stability and compatibility between an I2C control module and an SPI control module and to ensure quality signal transmission.
The present invention provides an I2C/SPI control interface circuitry, an integrated circuit structure, and a bus structure thereof, which integrate the I2C control module and the SPI control module, so as to reduce the quantity of system output ports and thereby cut costs incurred in fabricating and packaging chips.
The present invention provides an I2C/SPI control interface circuitry, an integrated circuit structure, and a bus structure thereof, which achieve, with a special means of connection, the effective integration of an I2C serial communication bus and an SPI bus and the prevention of interference between signals.
To achieve the above and other objectives, the present invention provides an I2C/SPI control interface circuitry structure, comprising: an I2C control module comprising an I2C clock port and an I2C data port; and an SPI control module comprising an SPI clock port, an SPI data input port, an SPI data output port, and an SPI chip enable port. Therein the I2C clock port and the SPI chip enable port are electrically connected to form an I2C clock/SPI chip enable input/output end. The I2C data port is electrically connected with the SPI data input port and the SPI data output port so as for an I2C/SPI data input/output end to be formed. The SPI clock port forms an SPI clock output end. One of the I2C control module and the SPI control module is selectively enabled to operate.
To achieve the above and other objectives, the present invention further provides an I2C/SPI control interface integrated circuit structure, comprising: an I2C control module comprising an I2C clock port and an I2C data port; and an SPI control module comprising an SPI clock port, an SPI data input port, an SPI data output port, and an SPI chip enable port. The I2C control module and the SPI control module are integrated into the same integrated circuit. The I2C clock port and the SPI chip enable port are electrically connected to form an I2C clock/SPI chip enable input/output end. The I2C data port is electrically connected with the SPI data input port and the SPI data output port so as for an I2C/SPI data input/output end to be formed. The SPI clock port forms an SPI clock output end. One of the I2C control module and the SPI control module is selectively enabled to operate.
To achieve the above and other objectives, the present invention further provides an I2C/SPI bus structure, applicable to an I2C/SPI control interface circuitry/integrated circuit structure and configured for a first transmission state and a second transmission state, comprising: a first transmission line configured for two-way transmission of an I2C clock signal /an SPI chip enable signal; a second transmission line configured for two-way transmission of an I2C data signal /an SPI data input/output signal; and a third transmission line configured for uni-directional transmission of an SPI clock signal from the controlling end to the controlled end. In the first transmission state, the first transmission line and the second transmission line transmit the I2C clock signal and the I2C data signal, respectively. In the second transmission state, the first transmission line, the second transmission line, and the third transmission line transmit the SPI chip enable signal, the SPI data input/output signal, and the SPI clock signal, respectively.
Implementation of the present invention involves at least the following inventive steps:
1. Using an internal port electrical connection structure for effectively preventing interference between the I2C control module and the SPI control module in signal transmission;
2. Integrating the I2C control module and the SPI control module to thereby reduce the quantity of system output ports and cut costs incurred in fabricating and packaging chips; and
3. Using a special means of connection for enhancing stability and compatibility of the I2C/SPI control interface circuitry structure efficiently to thereby ensure quality signal transmission.
The features and advantages of present invention are described in detail hereunder to enable persons skilled in the art to understand and implement the disclosure of the present invention and readily apprehend objectives and advantages of the present invention with references made to the disclosure contained in the specification, the claims, and accompanying drawings.
Referring to
The I2C control module 10 at least comprises an I2C clock port 11 and an I2C data port 12. The SPI control module 20 at least comprises an SPI clock port 21, an SPI data input port 22, an SPI data output port 23, and an SPI chip enable port 24.
The I2C clock port 11 and the SPI chip enable port 24 are electrically connected to form an I2C clock/SPI chip enable input/output end 101 for connection with a first transmission line 50. The I2C data port 12 is electrically connected with the SPI data input port 22 and the SPI data output port 23 so as to form an I2C/SPI data input/output end 102 for connection with a second transmission line 60. The SPI clock port 21 independently forms an SPI clock output end 103 for connection with a third transmission line 70.
Referring to
In another embodiment of the present invention, the I2C/SPI control interface circuitry structure 100 and 100′ can be further integrated to become an I2C/SPI control interface integrated circuit structure. In other words, the I2C control module 10 and the SPI control module 20 are integrated into the same integrated circuit. The I2C/SPI control interface integrated circuit structure further comprises the I2C/SPI selecting unit 40 for selectively enabling one of the I2C control module 10 and the SPI control module 20 such that the control module required for transmission is selected.
Referring to
The first transmission line 50 is configured for the two-way transmission of an I2C clock signal (I2C clock) or an SPI chip enable signal (SPI_cs). The second transmission line 60 is configured for two-way transmission of an I2C data signal (I2C data) or an SPI data input/output signal (SPI_dido). The third transmission line 70 is configured for unidirectional transmission of an SPI clock signal (SPI_clock) from the I2C/SPI bus structure 200 at the controlling end to the I2C/SPI controlled device 80 at the controlled end.
For example, after the I2C control module 10 is enabled and regarded as being in the first transmission state, the I2C clock signal (I2C_clock) and the I2C data signal (I2C_data) are transmitted by the first transmission line 50 and the second transmission line 60, respectively. Furthermore, after the SPI control module 20 is enabled and regarded as the second transmission state, the SPI chip enable signal (SPI_cs), the SPI data input/output signal (SPI_dido), and the SPI clock signal (SPI_clock) are transmitted by the first transmission line 50, the second transmission line 60, and the third transmission line 70, respectively.
The I2C/SPI controlled device 80 comprises I2C controlled devices 81a, 81b through 81c, and SPI controlled devices 82a, 82b through 82c. The I2C controlled devices 81a, 81b through 81c are connected to the first transmission line 50 and the second transmission line 60 of the I2C/SPI bus structure 200. The SPI controlled devices 82a, 82b through 82c are connected to the first transmission line 50, the second transmission line 60, and the third transmission line 70 of the I2C/SPI bus structure 200. Although the I2C/SPI bus structure 200 can be concurrently connected to more than one of the I2C controlled devices 81a, 81b through 81c and the SPI controlled devices 82a, 82b through 82c, only one of the I2C control module 10 and the SPI control module 20 of the I2C/SPI bus structure 200 is enabled to serve a corresponding one of the controlled devices at a specific time in the same system.
Referring to
As shown in
As shown in
As shown in
At the point in time t4, the SPI chip enable port 24 starts to output the SPI chip enable signal (SPI_cs) via the first transmission line 50, and the SPI controlled devices 82a, 82b, . . . , 82c are low-enabled. The I2C controlled devices 81a, 81b through 81c are enabled on the premise of fulfilling the initial conditions, namely a high logic level of the I2C clock signal (I2C_clock) and the switching of the I2C data signal (I2C_data) from a high logic level to a low logic level. However, the SPI chip enable signal (SPI_cs) outputted by the first transmission line 50 is of a low logic level when the SPI control module 20 is enabled. Hence, the starting conditions for the I2C controlled devices 81a, 81b through 81c are not met, nor are the I2C controlled devices 81a, 81b through 81c enabled to thereby cause signal interference.
Afterward, the SPI data input port 22 and the SPI data output port 23 start to transmit and receive the SPI data input/output signal (SPI_dido), and the SPI clock port 21 starts to transmit the SPI clock signal (SPI clock). Hence, the SPI control module 20 transmits and receives the SPI data input/output signal (SPI_dido) via the second transmission line 60, and the third transmission line 70 starts to transmit the SPI clock signal (SPI_clock).
At the point in time t5, the SPI control module 20 is no longer enabled, the conditions for enabling the I2C controlled devices 81a, 81b through 81c have hitherto not been met, and in consequence, the SPI control module 20 can be actuated without interfering with the I2C controlled devices 81a, 81b through 81c.
The foregoing embodiments are provided to illustrate and disclose the technical features of the present invention so as to enable persons skilled in the art to understand the disclosure of the present invention and implement the present invention accordingly, and are not intended to be restrictive of the scope of the present invention. Hence, all equivalent modifications and variations made to the foregoing embodiments without departing from the spirit and principles in the disclosure of the present invention should fall within the scope of the invention as set forth in the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
098146150 | Dec 2009 | TW | national |