Multi-address I2C communication circuit

By designing a multi-address I2C communication circuit, using the combination of I2C slave receiving circuit, random memory and address comparison module, the problem that traditional I2C slave circuit can only respond to one address is solved, and the multi-address response function is realized, which improves the application Flexibility and reliability.

CN222088060UActive Publication Date: 2024-11-29CHINA MICRO SEMICON (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420455350.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2024-11-29
Estimated Expiration
2034-03-07

AI Technical Summary

Technical Problem

Traditional I2C slave circuits can only respond to one I2C address and cannot meet the complex application scenarios of multi-address response.

Method used

A multi-address I2C communication circuit is designed, and the multi-address response function of slave addresses is realized through the combination of the I2C slave receiving circuit, random memory and address comparison module. The circuit includes an I2C slave receiving circuit, a random memory and an address comparison module, and the random memory hardware association control module is used to compare addresses in the slave address list, judge and issue a response signal.

Benefits of technology

The multi-address response function of the I2C slave module is realized, so that the I2C slave module can support the response of multiple slave addresses, greatly expand the flexibility and application range, and is integrated on the same chip to reduce the volume and improve reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222088060U_ABST
    Figure CN222088060U_ABST
Patent Text Reader

Abstract

The utility model provides a multi-address I2C communication circuit, which is characterized in that after an I2C slave receiving circuit receives a slave address of an I2C bus, the slave address enters an address comparison module through an I2C receiving cache circuit, and a random access memory is connected with the address comparison module through the address comparison circuit. Under the action of the random access memory hardware association control module, the slave addresses are compared with addresses in a slave address list in the random access memory, whether the received slave addresses exist in the slave address list or not is judged, and if the received slave addresses exist in the slave address list, a response signal is sent out; therefore, the I2C slave module can support a multi-address I2C slave address response function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of I2C slave modules, in particular to a multi-address I2C communication circuit. Background Art

[0002] I2C communication modules are widely used in industrial applications. As products and application scenarios become increasingly complex, the I2C slave circuit of the chip needs to respond to multiple addresses in more and more scenarios. However, the traditional I2C slave circuit can only respond to one I2C address, which cannot meet the application scenarios with multi-address responses. Utility Model Content

[0003] In view of the deficiencies in the prior art, the utility model provides a multi-address I2C communication circuit, which solves the problems in the prior art.

[0004] According to an embodiment of the utility model, a multi-address I2C communication circuit includes:

[0005] An I2C slave receiving circuit, the I2C slave receiving circuit is used to connect to an external I2C bus and obtain instruction information from the I2C bus, the output end of the I2C slave receiving circuit is connected to the input end of the I2C receiving buffer circuit, the address comparison module is used to connect to the external bus to output a response signal, and the output end of the I2C receiving buffer circuit is connected to the first input end of the address comparison module;

[0006] A random access memory, wherein the output end of the random access memory is connected to one end of an address comparison circuit, the other end of the address comparison circuit is connected to a second input end of an address comparison module, and the address comparison circuit is connected to a random access memory hardware association control module.

[0007] As an embodiment of the present invention, the random access memory hardware association control module includes: a slave address list starting address setting register and a slave address list quantity setting register.

[0008] As an embodiment of the present invention, it also includes: the random access memory hardware association control module, the random access memory, the I2C slave receiving circuit, the association circuit, the I2C receiving buffer circuit and the address comparison module are integrated on the same chip.

[0009] Compared with the prior art, the utility model has the following beneficial effects: after the I2C slave receiving circuit receives the slave address of the I2C bus, the slave address enters the address comparison module through the I2C receiving cache circuit, the random access memory is connected to the address comparison module through the address comparison circuit, and under the action of the random access memory hardware association control module, the slave address is compared with the address in the slave address list in the random access memory to determine whether the received slave address exists in the slave address list, and if so, a response signal is sent; thereby, the I2C slave module can support a multi-address I2C slave address response function.

[0010] The technical solution of the utility model is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 Schematic diagram of a circuit of an embodiment of the utility model. DETAILED DESCRIPTION

[0012] The technical solution of the present utility model is further described below in conjunction with the accompanying drawings and embodiments.

[0013] like Figure 1 As shown, the embodiment of the utility model proposes a multi-address I2C communication circuit, including: an I2C slave receiving circuit, the I2C slave receiving circuit is used to connect to an external I2C bus and obtain instruction information from the I2C bus, the output end of the I2C slave receiving circuit is connected to the input end of the I2C receiving buffer circuit, the address comparison module is used to connect to the external bus to output a response signal, and the output end of the I2C receiving buffer circuit is connected to the first input end of the address comparison module;

[0014] A random access memory, wherein the output end of the random access memory is connected to one end of an address comparison circuit, the other end of the address comparison circuit is connected to a second input end of an address comparison module, and the address comparison circuit is connected to a random access memory hardware association control module.

[0015] The working principle of the above technical solution is as follows: the traditional I2C slave module has only one dedicated register for storing the slave address, so it can only respond to one slave address; while in the utility model, after the I2C slave receiving circuit receives the slave address of the I2C bus, the slave address enters the address comparison module through the I2C receiving buffer circuit, the random access memory is connected to the address comparison module through the address comparison circuit, and under the action of the random access memory hardware association control module, the slave address is compared with the address in the slave address list in the random access memory to determine whether the received slave address exists in the slave address list, and if so, a response signal will be sent; wherein the address comparison circuit is an existing circuit module, thereby realizing the hardware bus connection between the random access memory and the address comparison module;

[0016] The control of the associated circuit (the address comparison circuit of the present application, etc.) by setting a register (corresponding to the random access memory hardware associated control module of the present application) is an existing mature technology and is very commonly used in MCU design. Similar technology is mentioned in "Chapter 24 Linkage Controller" in the attached "BAT32G137 User Manual". By controlling specific registers, different module circuits are associated to enhance circuit flexibility;

[0017] Beneficial effect of the above technical solution: Through the above technical solution, the I2C slave module can support the multi-address I2C slave address response function.

[0018] In one embodiment, the random access memory hardware association control module includes: a slave address list start address setting register and a slave address list quantity setting register.

[0019] The working principle of the above technical solution is: the storage location and size of the slave address list in the random access memory are specified by setting the slave address list starting address register and the slave address list quantity setting register.

[0020] Beneficial effects of the above technical solution: Through the above technical solution, the I2C slave module can set any number of slave addresses, and there is no restriction on the addresses, which can be continuous or dispersed and flexible in application.

[0021] In one embodiment, the system further includes: the random access memory hardware association control module, the random access memory, the I2C slave receiving circuit, the address comparison circuit, the I2C receiving buffer circuit and the address comparison module are integrated on the same chip.

[0022] The working principle and beneficial effects of the above technical solution: After the above modules are integrated on the same chip, a complete module solution can be formed, which is easy to use, and based on semiconductor technology, the volume of parts can be reduced, reliability can be guaranteed, and manufacturing efficiency can be improved.

[0023] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the utility model rather than to limit it. Although the utility model has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the technical solution of the utility model can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the utility model, which should be included in the scope of the claims of the utility model.

Claims

1. A multi-address I2C communication circuit, characterized in that ,include; An I2C slave receiving circuit, the I2C slave receiving circuit is used to connect to an external I2C bus and obtain instruction information from the I2C bus, the output end of the I2C slave receiving circuit is connected to the input end of the I2C receiving buffer circuit, the address comparison module is used to connect to the external bus to output a response signal, and the output end of the I2C receiving buffer circuit is connected to the first input end of the address comparison module; A random access memory, wherein the output end of the random access memory is connected to one end of an address comparison circuit, the other end of the address comparison circuit is connected to a second input end of an address comparison module, and the address comparison circuit is connected to a random access memory hardware association control module.

2. A multi-address I2C communication circuit as claimed in claim 1, characterized in that: The random access memory hardware association control module includes: a slave address list starting address setting register and a slave address list quantity setting register.

3. A multi-address I2C communication circuit as claimed in claim 2, characterized in that: Also includes: The random access memory hardware association control module, the random access memory, the I2C slave receiving circuit, the address comparison circuit, the I2C receiving buffer circuit and the address comparison module are integrated on the same chip.