Label chip equipped with IIC interface and design method thereof
By introducing digital baseband modules and nonvolatile memory modules into the tag chip, the flexible configuration of the IIC interface is achieved, which solves the problems of high hardware dependence and poor versatility in the prior art, and improves the adaptability and scalability of the tag chip.
Patent Information
- Application Number
- CN202511054632.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2045-07-30
AI Technical Summary
Existing tag chips based on Bluetooth and NFC protocols need to rely on external microprocessors/microcontrollers for data processing and control, high hardware dependence, fixed parameters of the IIC interface, poor versatility and scalability.
A label chip equipped with an IIC interface is designed, including a digital baseband module and a nonvolatile memory module. The IIC interface configuration information is stored through the nonvolatile memory module. The digital baseband module reads the configuration information and initializes the IIC interface after power-up, or skips the initialization step and enters the normal chip mode to achieve flexible communication adaptation.
It improves the versatility and scalability of label chips, reduces dependence on external devices, and reduces the difficulty and cost of system integration.
Smart Images

Figure CN120560732A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tag communication, and in particular to a tag chip equipped with an IIC interface and a design method thereof. Background Art
[0002] Currently, there are two main types of tag chips with configurable IIC interfaces: one is a tag chip based on the Bluetooth protocol specification, and the other is an NFC tag chip. The IIC interface of a Bluetooth tag requires communication based on its internal microcontroller, while the IIC interface inside an NFC tag requires cooperation with a microprocessor.
[0003] Both of the above tags require external microprocessors / microcontrollers for data processing and control, are highly hardware-dependent, and the parameters of the IIC interface are fixed, so they can only communicate with fixed external devices. The tags have poor versatility and scalability. Summary of the Invention
[0004] Purpose of the invention: The present invention aims to provide a tag chip equipped with an IIC interface and a design method thereof, so as to at least partially overcome the defects of the prior art.
[0005] Summary of the invention: To achieve the above objectives, the present invention proposes the following technical solutions: In a first aspect, a tag chip equipped with an IIC interface is provided, comprising: a digital baseband module, a non-volatile storage module, and an IIC interface; The digital baseband module is configured to read the non-volatile storage module after power-on; If the IIC interface configuration information is stored in the non-volatile storage module, the digital baseband module initializes the IIC interface according to the IIC interface configuration information, and communicates with the external device connected to the IIC interface based on the IIC protocol through the IIC interface; If the IIC interface configuration information is not stored in the non-volatile storage module, the digital baseband module skips the IIC interface initialization step, and at this time, the tag chip enters the normal chip mode.
[0006] As an optional implementation of the tag chip described in the first aspect, the digital baseband module is specifically configured to control the level changes on the data line and clock line of the IIC interface according to the logical function and timing requirements of the IIC protocol to achieve communication with the external device.
[0007] As an optional implementation of the tag chip in the first aspect, the IIC interface configuration information stored in the non-volatile storage module is written externally.
[0008] As an optional implementation manner of the tag chip according to the first aspect, the digital baseband module is further configured as: According to an external operation instruction, at least one operation of writing IIC interface configuration information, deleting IIC interface configuration information, and modifying IIC interface configuration information is performed on the non-volatile storage module.
[0009] As an optional implementation of the tag chip described in the first aspect, data exchange is performed between the digital baseband module and the non-volatile storage module via an internal bus.
[0010] In a second aspect, a design method for a tag chip equipped with an IIC interface is provided, wherein the tag chip includes a digital baseband module, a non-volatile storage module, and an IIC interface; the method includes: Setting the storage data in the non-volatile storage module according to business needs; The digital baseband module is configured as follows: Reading the non-volatile storage module after power-on; If the IIC interface configuration information is stored in the non-volatile storage module, the digital baseband module initializes the IIC interface according to the IIC interface configuration information, and communicates with the external device connected to the IIC interface based on the IIC protocol through the IIC interface; If the IIC interface configuration information is not stored in the non-volatile storage module, the digital baseband module skips the IIC interface initialization step, and at this time, the tag chip enters the normal chip mode.
[0011] As an optional implementation manner of the method of the second aspect, setting the storage data in the non-volatile storage module according to business needs specifically includes: If the business demand requires that the tag chip be used in a communication scenario based on the IIC protocol, the IIC interface configuration information is determined according to the external device to be communicated by the tag chip, and the IIC interface configuration information is written into the non-volatile storage module.
[0012] As an optional implementation of the method described in the second aspect, the digital baseband module is specifically configured to control the level changes on the data line and clock line of the IIC interface according to the logical function and timing requirements of the IIC protocol to achieve communication with the external device.
[0013] As an optional implementation manner of the method of the second aspect, the method further includes: The digital baseband module is configured to perform at least one operation of writing IIC interface configuration information, deleting IIC interface configuration information, and modifying IIC interface configuration information on the non-volatile storage module according to an external operation instruction.
[0014] As an optional implementation of the method described in the second aspect, data exchange is performed between the digital baseband module and the non-volatile storage module via an internal bus.
[0015] Beneficial effects: Compared with the prior art, the tag chip equipped with an IIC interface and the design method thereof proposed in the present invention have the following advantages: 1. In the present invention, the chip's operating mode is controlled by data stored in a non-volatile memory module. After power-on, the digital baseband module reads the non-volatile memory module. When the IIC interface configuration information is read, the IIC interface is initialized and the corresponding logical functions of the IIC protocol are executed. At this point, the tag chip operates in IIC protocol mode. If the IIC interface configuration information is not read, the digital baseband module skips the IIC interface initialization step, and the tag chip can be used as a normal chip. This design allows the tag chip to flexibly adapt to different application scenarios.
[0016] 2. In the present invention, the IIC interface configuration information in the non-volatile storage module is written externally, and the parameters of the IIC interface can be dynamically adjusted according to the IIC interface configuration information, so that the IIC interface of the tag chip can be flexibly adapted to different external devices and application requirements, thereby improving the versatility and scalability of the tag chip.
[0017] 3. The tag chip described in the present invention can realize the configuration function of the IIC interface through the digital baseband module and the non-volatile storage module, without relying on external devices such as a microprocessor / microcontroller, and has low difficulty in system integration and low implementation cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a schematic structural diagram of a tag chip equipped with an IIC interface according to an embodiment.
[0019] Figure 2 The figure is a flow chart of a design method of a tag chip equipped with an IIC interface according to an embodiment. DETAILED DESCRIPTION
[0020] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. However, it should be understood that the present invention may be implemented in various forms, and the following exemplary and non-limiting embodiments shown in the drawings and described below are not intended to limit the present invention to the specific embodiments described.
[0021] It should be understood that, where technically feasible, the technical features listed above for different embodiments may be combined with each other to form additional embodiments within the scope of the present invention. In addition, the specific examples and embodiments described in the present invention are non-limiting, and the structures, steps, and sequences described above may be modified accordingly without departing from the scope of protection of the present invention.
[0022] Please refer to Figure 1 This embodiment provides a tag chip equipped with an IIC interface. Figure 1 The structure diagram of the tag chip is schematically shown. Figure 1 As shown, the tag chip includes: a digital baseband module, a non-volatile storage module and an IIC interface.
[0023] The IIC interface configuration information may be written or not written into the non-volatile storage module as required.
[0024] The digital baseband module is configured to read the data stored in the non-volatile memory module upon power-up. If the non-volatile memory module stores IIC interface configuration information, the digital baseband module initializes the IIC interface based on the IIC interface configuration information and communicates with an external device connected to the IIC interface via the IIC interface using the IIC protocol. If the non-volatile memory module does not store IIC interface configuration information, the digital baseband module skips the IIC interface initialization step. At this point, the tag chip enters normal chip mode, meaning the tag chip can be used as a normal chip.
[0025] The above is a tag chip equipped with an IIC interface provided in this embodiment. The tag chip has two operating modes, namely IIC protocol mode and normal chip mode. In IIC protocol mode, the tag chip acts as a chip with an IIC interface and can communicate with external devices based on the IIC protocol through the IIC interface. In normal chip mode, the IIC interface of the tag chip does not work, and the tag chip can be used in other scenarios.
[0026] Correspondingly, the digital baseband module also has two working modes, namely the IIC protocol mode and the ordinary chip mode. When the digital baseband module is powered on and reads that the IIC interface configuration information is not stored in the non-volatile storage module, the digital baseband module will not initialize the IIC interface, that is, skip the IIC interface initialization step. At this time, the IIC interface does not work, and the digital baseband module is used to implement the digital signal processing and transmission functions of the ordinary tag chip in the ordinary chip mode. When the digital baseband module is powered on and reads that the IIC interface configuration information is stored in the non-volatile storage module, the digital baseband module initializes the IIC interface according to the IIC interface configuration information. At this time, the tag chip works in the IIC protocol mode. In this mode, the tag chip can be used as a master device or a slave device, and the digital baseband module is responsible for implementing various functions of the master / slave device in the IIC protocol. For example, when the tag chip acts as a master device, the digital baseband module needs to be responsible for implementing functions such as start signal and stop signal generation, response signal detection, and data sending and receiving. Specifically, the digital baseband module can control the level changes on the clock line SCL and data line SDA of the IIC interface according to the logical function and timing requirements of the IIC protocol, so that the tag chip can communicate with external devices according to the IIC protocol.
[0027] Specifically, the above-mentioned IIC interface configuration information mainly includes the device address, register address, address bit number, sampling time and other information required by the IIC interface. The digital baseband module initializes the parameters of the IIC interface according to the IIC interface configuration information so that the IIC interface can work normally.
[0028] In some embodiments, an IIC interface configuration information storage area is provided in the non-volatile storage module, and the area is used to store the IIC interface configuration information.
[0029] The digital baseband module is configured to read the IIC interface configuration information storage area after power-on. If the IIC interface configuration information storage area is empty, that is, the IIC interface configuration information storage area does not store the IIC interface configuration information, the digital baseband module will not initialize the IIC interface and skip the IIC interface initialization step. If the IIC interface configuration information storage area is not empty, that is, the IIC interface configuration information is stored in the IIC interface configuration information storage area, the digital baseband module initializes the IIC interface according to the IIC interface configuration information and executes the corresponding logic of the IIC protocol, so that the tag chip can communicate with the external device connected to the IIC interface through the IIC interface based on the IIC protocol.
[0030] In some embodiments, the above-mentioned IIC interface configuration information is written into the non-volatile storage module from outside the tag chip, and the IIC interface configuration information in the non-volatile storage module can be written, modified and deleted according to the communication requirements of the application scenario.
[0031] Specifically, the digital baseband module and the non-volatile storage module can exchange data via an internal bus. The digital baseband module can then perform at least one of the following operations on the non-volatile storage module via the internal bus in accordance with external operation instructions: reading, writing, modifying, or deleting IIC interface configuration information.
[0032] Corresponding to the above-mentioned tag chip, this embodiment also provides a design method of a tag chip equipped with an IIC interface, which is used to realize the functions of the tag chip. The structure of the tag chip is as follows: Figure 1 As shown, it includes a digital baseband module, a non-volatile storage module and an IIC interface. Figure 2 , Figure 2 The flow chart of the method is schematically shown. Figure 2 As shown, the method includes steps S200 to S202.
[0033] S200: According to business requirements, the storage data in the non-volatile storage module is set.
[0034] In actual operation, if business needs require the tag chip to be used in a communication scenario based on the IIC protocol, the IIC interface configuration information can be determined according to the external device to which the tag chip wants to communicate, and the IIC interface configuration information can be written into the non-volatile storage module.
[0035] If the business needs require the tag chip to work as a normal chip, there is no need to write the IIC interface configuration information in the non-volatile storage module.
[0036] Specifically, the above-mentioned IIC interface configuration information mainly includes the device address, register address, address bit number, sampling time and other information required for configuration of the IIC interface.
[0037] S202: Configure the digital baseband module to read the non-volatile storage module after power-on; if the non-volatile storage module stores IIC interface configuration information, the digital baseband module initializes the IIC interface according to the IIC interface configuration information, and communicates with the external device connected to the IIC interface based on the IIC protocol through the IIC interface; if the non-volatile storage module does not store IIC interface configuration information, the digital baseband module skips the IIC interface initialization step, and at this time, the tag chip enters the normal chip mode.
[0038] The tag chip designed based on the above design method has two operating modes, namely IIC protocol mode and normal chip mode. In IIC protocol mode, the tag chip is a chip with an IIC interface and can communicate with external devices based on the IIC protocol through the IIC interface. In normal chip mode, the IIC interface of the tag chip does not work, and the tag chip can be used in other scenarios.
[0039] Correspondingly, the digital baseband module also has two working modes, namely the IIC protocol mode and the ordinary chip mode. When the digital baseband module is powered on and reads that the IIC interface configuration information is not stored in the non-volatile storage module, the digital baseband module will not initialize the IIC interface, that is, skip the IIC interface initialization step. At this time, the IIC interface does not work, and the digital baseband module is used to implement the digital signal processing and transmission functions of the ordinary tag chip in the ordinary chip mode. When the digital baseband module is powered on and reads that the IIC interface configuration information is stored in the non-volatile storage module, the digital baseband module initializes the IIC interface according to the IIC interface configuration information. At this time, the tag chip works in the IIC protocol mode. In this mode, the tag chip can be used as a master device or a slave device, and the digital baseband module is responsible for implementing various functions of the master / slave device in the IIC protocol. For example, when the tag chip acts as a master device, the digital baseband module needs to be responsible for implementing functions such as start signal and stop signal generation, response signal detection, and data sending and receiving. Specifically, the digital baseband module can be configured to control the level changes on the clock line SCL and data line SDA of the IIC interface according to the logical function and timing requirements of the IIC protocol, so that the tag chip can communicate with external devices according to the IIC protocol.
[0040] In some embodiments, the non-volatile memory module is provided with an IIC interface configuration information storage area for storing IIC interface configuration information. Accordingly, the digital baseband module is configured to read the IIC interface configuration information storage area after power-on. If the IIC interface configuration information storage area is empty, i.e., the IIC interface configuration information storage area does not store the IIC interface configuration information, the digital baseband module will not initialize the IIC interface, skipping the IIC interface initialization step. If the IIC interface configuration information storage area is not empty, i.e., the IIC interface configuration information is stored in the IIC interface configuration information storage area, the digital baseband module initializes the IIC interface according to the IIC interface configuration information and executes the corresponding logic of the IIC protocol, enabling the tag chip to communicate with an external device connected to the IIC interface via the IIC interface based on the IIC protocol.
[0041] In some embodiments, the above-mentioned IIC interface configuration information is written into the non-volatile storage module from outside the tag chip, and the IIC interface configuration information in the non-volatile storage module can be written, modified and deleted according to the communication requirements of the application scenario.
[0042] Specifically, the digital baseband module and the non-volatile storage module can exchange data through the internal bus, and the digital baseband module can be configured to perform at least one of the following operations on the non-volatile storage module through the internal bus in accordance with external operation instructions: reading, writing, modifying or deleting the IIC interface configuration information.
[0043] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0044] The above-described embodiments merely represent several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent application. It should be noted that a person of ordinary skill in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, and these variations and improvements fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention patent application shall be determined by the appended claims.
Claims
1. A tag chip equipped with an IIC interface, characterized in that: include: Digital baseband module, non-volatile storage module and IIC interface; The digital baseband module is configured to read the non-volatile storage module after power-on; If the IIC interface configuration information is stored in the non-volatile storage module, the digital baseband module initializes the IIC interface according to the IIC interface configuration information, and communicates with the external device connected to the IIC interface based on the IIC protocol through the IIC interface; If the IIC interface configuration information is not stored in the non-volatile storage module, the digital baseband module skips the IIC interface initialization step, and at this time, the tag chip enters the normal chip mode.
2. The tag chip according to claim 1, characterized in that: The digital baseband module is specifically configured to control level changes on the data line and clock line of the IIC interface according to the logical function and timing requirements of the IIC protocol to achieve communication with the external device.
3. The tag chip according to claim 1, characterized in that: The IIC interface configuration information stored in the non-volatile storage module is written from the outside.
4. The tag chip according to claim 1, characterized in that: The digital baseband module is further configured as: According to an external operation instruction, at least one operation of writing IIC interface configuration information, deleting IIC interface configuration information, and modifying IIC interface configuration information is performed on the non-volatile storage module.
5. The tag chip according to claim 1, characterized in that: The digital baseband module and the non-volatile storage module exchange data via an internal bus.
6. A design method for a tag chip equipped with an IIC interface, characterized in that: The tag chip includes a digital baseband module, a non-volatile storage module and an IIC interface; the method includes: Setting the storage data in the non-volatile storage module according to business needs; The digital baseband module is configured as follows: Reading the non-volatile storage module after power-on; If the IIC interface configuration information is stored in the non-volatile storage module, the digital baseband module initializes the IIC interface according to the IIC interface configuration information, and communicates with the external device connected to the IIC interface based on the IIC protocol through the IIC interface; If the IIC interface configuration information is not stored in the non-volatile storage module, the digital baseband module skips the IIC interface initialization step, and at this time, the tag chip enters the normal chip mode.
7. The method according to claim 6, characterized in that According to business needs, the storage data in the non-volatile storage module is set, specifically including: If the business demand requires that the tag chip be used in a communication scenario based on the IIC protocol, the IIC interface configuration information is determined according to the external device to be communicated by the tag chip, and the IIC interface configuration information is written into the non-volatile storage module.
8. The method according to claim 6, characterized in that The digital baseband module is specifically configured to control level changes on the data line and clock line of the IIC interface according to the logical function and timing requirements of the IIC protocol to achieve communication with the external device.
9. The method according to claim 6, characterized in that The method further comprises: The digital baseband module is configured to perform at least one operation of writing IIC interface configuration information, deleting IIC interface configuration information, and modifying IIC interface configuration information on the non-volatile storage module according to an external operation instruction.
10. The method according to claim 6, characterized in that The digital baseband module and the non-volatile storage module exchange data via an internal bus.
Citation Information
Patent Citations
Automatic circuit testing structure of I2C module in digital baseband chip and method thereof
CN101907683A
Label information processing method
CN105117761A
Master-slave mode switching method and device based on I2C module
CN114443544A