A consumable chip, consumable, communication system and trimming method
By integrating a current measurement module and a load feedback module inside the consumable chip, and using adjustment function controllers and switching transistors to control the current flow, self-adjustment is achieved, solving the problem of high adjustment cost of consumable chips and improving adjustment efficiency and stability.
Patent Information
- Application Number
- CN202311119509.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2043-08-31
AI Technical Summary
The existing single-line communication equipment requires external equipment for chip adjustment during the mass production testing phase. This process is time-consuming and costly, and the test procedures need to be changed according to the host model, which affects product management and testing costs.
The consumable chip integrates a current measurement module and a load feedback module. The current flow is controlled by a trimming function controller and a trimming switch to ensure that the current measurement value meets the preset range, thus achieving self-adjustment.
This reduces the cost of adjusting consumable chips, improves adjustment efficiency, and ensures stable communication with the host.
Smart Images

Figure CN117124735B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of communication, in particular to a consumable chip, a consumable, a communication system and a trimming method. BACKGROUND
[0002] In single-wire communication, the single-wire interface used is both a power supply port and a communication port. Figure 1 A timing diagram of single-wire communication is shown as follows, Figure 1 As shown in the host sending and slave receiving stage (Rx stage), duty cycle encoding is adopted, and the duty cycle in a single encoding period is greater than a set value, which is 1, and less than the set value, which is 0. The high and low levels correspond to V2 and V1 in the figure respectively. In the host receiving and slave sending stage (Tx stage), level encoding is adopted, and maintaining the V2 level state in the above figure is 1 feedback from the slave, and the level is reduced to the V3 state, which is 0 feedback from the slave. The host identifies Tx = 0, which requires V3 level to be lower than the host set threshold, and at the same time, it needs to be greater than the reference voltage (Voltage Reference, VREF), so that the slave communication function can be normal. If VREF < V3 < host threshold needs to be met, a corresponding feedback load needs to be introduced, and the feedback load is generally realized by external equipment trimming in the chip test stage. Taking a printer as an example, in the mass production test stage, whether the consumable chip is qualified is tested by an external test device, which sets the printer set threshold first and writes it into the test device, and then the test device sends a trimming command in a loop until the feedback signal of the consumable chip meets the set threshold, realizing the trimming process. The test time of this method is long and the cost is high, and if the host model is different, the load needs to be trimmed to different specifications, and the external test program needs to be changed for re-trimming. This has a great impact on product management and test cost. SUMMARY
[0003] The present application provides a consumable chip, a consumable, a communication system and a trimming method to realize self-trimming function, reduce the cost of trimming and improve the efficiency of trimming.
[0004] In a first aspect, the embodiments of the present application provide a consumable chip, which internally comprises: a current measurement module and a load feedback module, the current measurement module being connected with the load feedback module;
[0005] The current measurement module comprises a sampling resistor and a current measurement device, the sampling resistor being connected with a power supply interface of the consumable chip, and the current measurement device being used to measure the current flowing through the sampling resistor in the trimming stage to obtain a current measurement value;
[0006] The load feedback module comprises a trimming function control device, a trimming resistor and a trimming switch tube corresponding to the trimming resistor, the trimming resistor and the corresponding trimming switch tube are connected in series, the trimming function control device is used to control the opening or closing of the trimming function, and the trimming switch tube is used to control the current flow state of the corresponding trimming resistor in the trimming stage, so that the current measurement value meets the preset current value range.
[0007] In the second aspect, the embodiment of the present application provides a consumable, wherein the consumable is provided with the consumable chip as described in the first aspect.
[0008] In the third aspect, the embodiment of the present application provides a communication system, comprising a host and the consumable as described in the second aspect, and single-wire communication is adopted between the host and the consumable.
[0009] In the fourth aspect, the embodiment of the present application provides a trimming method applied to the consumable chip as described in the first aspect, and the method comprises the following steps.
[0010] The trimming function control device is used to control the opening or closing of the trimming function.
[0011] In the trimming stage, the current flowing through the sampling resistor is measured by the current measurement device to obtain a current measurement value.
[0012] The switch state of the trimming switch tube is controlled to control the current flow state of the corresponding trimming resistor, so that the current measurement value meets the preset current value range.
[0013] The embodiment of the present application provides a consumable chip, a consumable, a communication system and a trimming method. The consumable chip internally comprises a current measurement module and a load feedback module. The current measurement module comprises a sampling resistor and a current measurement device, the current measurement device is used to measure the current flowing through the sampling resistor in the trimming stage to obtain a current measurement value. The load feedback module comprises a trimming function control device, a trimming resistor and a trimming switch tube corresponding to the trimming resistor. The trimming function control device is used to control the opening or closing of the trimming function, and the trimming switch tube is used to control the current flow state of the corresponding trimming resistor in the trimming stage, so that the current measurement value meets the preset current value range. The above technical solution realizes self-trimming by the internal circuit of the consumable chip, controls the current flow state of the corresponding trimming resistor by the trimming switch tube, so that the current measurement value in the consumable chip meets the preset current value range to adapt to the host, reduces the cost of trimming and improves the efficiency of trimming. BRIEF DESCRIPTION OF DRAWINGS
[0014] The above and other features, advantages, and aspects of the present disclosure will become more apparent by describing in detail the following specific embodiments in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals can refer to the same or similar elements. It should be understood that the drawings are not necessarily to scale, with the emphasis being placed instead on the functional description of the elements illustrated.
[0015] Figure 1 A schematic diagram of a single-wire communication timing;
[0016] Figure 2 A schematic diagram of a structure of a consumable chip according to an embodiment;
[0017] Figure 3 A schematic diagram of a circuit of a current measurement device according to an embodiment;
[0018] Figure 4 A schematic diagram of a circuit of a load feedback module according to an embodiment;
[0019] Figure 5 A schematic diagram of another structure of a consumable chip according to an embodiment;
[0020] Figure 6 A schematic diagram of a circuit of a communication conversion module according to an embodiment;
[0021] Figure 7 A schematic diagram of a structure of a communication system according to an embodiment;
[0022] Figure 8 A flowchart of a trimming method according to an embodiment.
[0023] Figure 9 A flowchart of a trimming process according to an embodiment. DETAILED DESCRIPTION
[0024] The present application will be further described by examples in conjunction with the accompanying drawings. It is to be understood that the specific examples described herein are merely illustrative of the present application and are not intended to limit the scope of the present application. In addition, the embodiments and features of the present application can be combined with each other unless otherwise contradicted. It should also be noted that only the parts related to the present application are shown in the drawings for the convenience of description.
[0025] Before discussing the example embodiments in more detail, it should be mentioned that some of the example embodiments are described as processes or methods depicted as flowcharts. While the steps of the processes are depicted in a sequential order, many of the steps can be performed in parallel, concurrently or simultaneously with one another. Also, the order of the steps can be re-arranged. The processes can be terminated when their operations are completed, but can also have additional steps not included in the figure. The processes can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0026] Figure 2 A structure diagram of a consumable chip is provided for an embodiment. The consumable chip can refer to a chip in a consumable relative to a host, for example, the host can be a printer, the consumable can refer to an ink cartridge or a toner cartridge, and the consumable chip can refer to an ink cartridge chip or a toner cartridge chip, etc. As shown in the figure, the consumable chip 10 internally includes: a current measurement module 110 and a load feedback module 120, the current measurement module 110 is connected with the load feedback module 120; the current measurement module 110 includes a sampling resistor 111 and a current measurement device 112, the sampling resistor 111 is connected with a power supply interface (VCC) of the consumable chip 10, and the current measurement device 112 is used to measure the current flowing through the sampling resistor 111 to obtain a current measurement value during the trimming phase; the load feedback module 120 includes a trimming function control device 123, a trimming resistor 121 and a trimming switch tube 122 corresponding to the trimming resistor 121, and the trimming resistor 121 is connected in series with the corresponding trimming switch tube 122; the trimming function control device 123 is used to control the opening or closing of the trimming function, and the trimming switch tube 122 is used to control the current flow state of the corresponding trimming resistor 121 during the trimming phase, so that the current measurement value meets the preset current value range. Figure 2
[0027] Specifically, the power supply interface (VCC) can serve as an interface for communication between the consumable chip 10 and the host, and can also serve as a power supply interface of the consumable chip 10. During the power-on initialization, the current inside the consumable chip 10 can be measured in real time by the current measurement module 110, and the load feedback module 120 can perform trimming according to the difference between the current measurement value and the preset current value range, and after trimming, the current measurement module 110 is used for measurement again, if the current measurement value meets the preset current value range, the trimming is stopped, and the trimming completion state is written into the memory unit. The preset current value range can be set by the host.
[0028] The consumable chip provided in the embodiment can realize the trimming of the feedback load (i.e. the trimming resistor) inside the consumable chip once during the power-on initialization phase, so that it matches the communication with the single-wire device (i.e. the host), improves the trimming efficiency, and reduces the trimming cost. In addition, on the basis of the trimming completion, stable communication with the host can be ensured, such as receiving the command of the host and feeding back the feedback signal to the host, etc.
[0029] Figure 3 This is a circuit diagram of a current measuring device provided in one embodiment. In one embodiment, as... Figure 3 As shown, the current measuring device 112 includes an amplifier U1 and an analog-to-digital converter (ADC); the current input terminal of the sampling resistor R1 ( Figure 3 The end closest to VCC) and the first input terminal of amplifier U1 ( Figure 3 The "+" terminal is connected to the current output terminal of the sampling resistor R1. Figure 3 The end furthest from VCC) and the second input terminal of amplifier U1 ( Figure 3 The amplifier U1 is connected to the analog-to-digital converter (ADC) via a "-" terminal. The current across the sampling resistor R1 is amplified by the amplifier U1 and then read by the ADC. The amplifier U1 is a differential amplifier; the voltage across the sampling resistor R1 is differentially amplified and then read by the ADC, thus converting it into a current measurement value.
[0030] In one embodiment, the adjustment function control device 123 includes a function control switch transistor; an adjustment resistor 121, an adjustment switch transistor 122 corresponding to the adjustment resistor 121, and the function control switch transistor are connected in series, and the function control switch transistor is grounded; when the function control switch transistor is turned on, the adjustment function is turned on; when the function control switch transistor is turned off, the adjustment function is turned off. The function control switch transistor may consist of at least two switches, and the at least two switches cooperate to realize the turning on and off of the adjustment function.
[0031] Figure 4 This is a circuit diagram of a load feedback module provided in one embodiment. In one embodiment, as... Figure 4 As shown, the function control switch includes a first switch M1 and a second switch M2; the trimming resistor 121 may include n (n is a positive integer) trimming resistors, denoted as R0, R1...Rn-1, respectively, and the corresponding trimming switches are TRIM[0], TRIM[1]...TRIM[n-1], respectively. The first end of each trimming resistor is connected to the power supply interface (VDD); the second end of each trimming resistor is connected to the first end of the corresponding trimming switch; the second end of each trimming switch is connected in series with the second switch M2 and the first switch M1, and the first switch M1 is grounded. When both the first switch M1 and the second switch M2 are turned on, the trimming function is turned on; when the first switch M1 is turned off, the trimming function is turned off.
[0032] In one embodiment, R0, R1...Rn-1 are exponentially related, such as Rx = R0 / 2 x With any one of the trimming switches TRIM[x] turned on, the load current across the corresponding trimming resistor 121 is VDD*2. x / R0.
[0033] Figure 5 This is a schematic diagram of the structure of another consumable chip provided in one embodiment. In one embodiment, as... Figure 5 As shown, the consumable chip 10 also includes a communication conversion module 130. The communication conversion module 130 is connected to the current measurement module 110 and the load feedback module 120, respectively. Based on this, when the host sends a (single-wire) timing command signal, the communication conversion module 130 can convert the (single-wire) signal into an internal synchronous communication signal (i.e., a clock signal). This clock signal (CLK) can reflect the timing command of the host. If the host is a printer and the consumable chip 10 is an ink cartridge chip, then the clock signal (CLK) can reflect when printing starts or stops, when ink is ejected, etc.
[0034] In one embodiment, such as Figure 5 As shown, the consumable chip 10 also includes an execution module 140, which is connected to the communication conversion module 130 and the load feedback module 120. During the execution phase, the execution module 140 performs corresponding functions based on the synchronous communication signal transmitted by the communication conversion module 130, causing the consumable chip 10 to enter different working states, such as inkjet printing within a specific time period.
[0035] Figure 6 This is a circuit diagram of a communication conversion module provided in one embodiment. In one embodiment, as... Figure 6 As shown, the communication conversion module 130 includes a comparator U3; the current output terminal of the current measurement module 110 (with its sampling resistor) is connected to the first input terminal of the comparator U3. Figure 6 The "+" sign is connected in the middle; the second input terminal of comparator U3 ( Figure 6 The input of the "-" sign is the preset reference voltage (VREF). The output of comparator U3 can be connected to the load feedback module 120. Comparator U3 is used to compare the reference voltage and the voltage at the current output of the sampling resistor R1 during the communication conversion stage and output a clock signal (CLK) accordingly. The timing command signal of the host passes through the sampling resistor R1 and then through comparator U3 in the form of current. If the signal level is higher than the reference voltage VREF, comparator U3 outputs a high level; otherwise, comparator U3 outputs a low level. The reference voltage is between the preset current value range (the preset high and low levels), and the output of comparator U3 is the corresponding clock signal (CLK).
[0036] In one embodiment, such as Figure 6As shown, the communication conversion module 130 also includes a bidirectional counter C0, with the output of comparator U3 connected to the bidirectional counter C0. The bidirectional counter C0 is used during the communication conversion phase to increment from 0 during the high level of the clock signal (CLK) and decrement during the low level of the clock signal (CLK). Furthermore, the highest bit of the counter represents the sign bit. For example, a counter value of 0x8050 indicates a duty cycle greater than 50%, with the corresponding received data Rx_DATA being 1; a counter value of 0x0050 indicates a duty cycle less than 50%, with the corresponding received data Rx_DATA being 0. By connecting CLK and Rx_DATA to the execution module 140, the consumable chip 10 can enter different operating states and perform corresponding functions.
[0037] In one embodiment, the load feedback module 120 can not only perform self-adjustment during the adjustment phase, but also generate feedback signals for the host timing commands based on the execution results during the feedback phase. For example... Figure 4 As shown, the adjustment function control device 123 also includes an inverter. and OR gate U2; the output of OR gate U2 is connected to the input of the first switching transistor M1; inverter The output terminal is connected to the input terminal of the second switching transistor M2. The input signals of OR gate U2 include a clock signal (CLK) and a level signal (TRIM_EN, which acts as an enable terminal to control the trimming function). It should be noted that... Figure 4 CLK and Figure 6 CLK in the code refers to the same clock signal, and Tx-DATA is the feedback data. Figure 4 Rx-DATA in the text refers to the received data.
[0038] like Figure 4 As shown, during the initialization automatic calibration phase, the enable input signal (TRIM_EN) of the OR gate U2 is configured to be high, and the output after passing through the OR gate U2 is also high, thereby controlling the first switch M1 to turn on; at the same time, the inverter is configured... When the input signal (Tx_DATA) is low, the output of the inverter ▽1 is high, thereby controlling the second switch M2 to turn on and enter the adjustment stage;
[0039] During the adjustment phase, the switching state of the adjustment switch 122 of each adjustment resistor 121 is controlled to make the current measurement value conform to the preset current value range; after the adjustment function is completed, the level signal (TRIM_EN) of the enable input terminal of the OR gate U2 is set to low level to control the second switch M2 to turn off.
[0040] During the communication conversion phase, the clock signal (CLK) is output through comparator U3 and bidirectional counting is performed by bidirectional counter C0 to obtain the timing commands of the host.
[0041] During the execution phase, the execution module 140 performs corresponding functions based on the clock signal and the count value of the bidirectional counter;
[0042] During the feedback phase, the switching states of the adjustment switches of each adjustment resistor 121 remain unchanged, and each adjustment switch 122 maintains its switching state after adjustment, thereby controlling the corresponding load current to remain within the preset current value range; Tx_DATA is shifted input according to the execution result (feedback data generated by executing the corresponding function), which is to configure the inverter. The input signal (Tx_DATA) is the shift signal of the feedback data; the clock signal of the clock input terminal of the OR gate U2 is configured to be high; the first switch M1 and the second switch M2 are configured to turn on during the corresponding time when the shift signal is 0, so as to generate a feedback signal. That is, when CLK is 1 and Tx_DATA is 0, M1 and M2 are turned on, thereby generating a corresponding feedback signal on the single-line signal.
[0043] This application also provides a consumable, which includes a consumable chip as described in any of the above embodiments. The consumable in this embodiment can achieve self-adjustment using the internal circuitry of the consumable chip. By controlling the current flow state of the corresponding adjustment resistor through an adjustment switch, the current measurement value inside the consumable chip conforms to a preset current range, thus adapting to the host computer, reducing adjustment costs, and improving adjustment efficiency.
[0044] Figure 7 This is a schematic diagram of the structure of a communication system provided in one embodiment. Figure 7 As shown, the communication system includes a host 210 and consumables 220 as described in any of the above embodiments; the host 210 and consumables 220 communicate via a single wire. For example, the host is a printer, and the consumables can be ink cartridges, toner cartridges, etc. It should be noted that single-wire communication mainly uses current control to form high and low levels in the feedback signal, which is applicable to the application scenarios of this application.
[0045] Figure 8This is a flowchart illustrating a tuning method according to one embodiment, applicable to tuning the feedback load in a consumable chip within a communication system. Specifically, this tuning method can be implemented in software and / or hardware and integrated into the consumable chip. The consumable chip includes a current measurement module and a load feedback module, connected together. The current measurement module includes a sampling resistor and a current measuring device. The sampling resistor is connected to the power supply interface of the consumable chip, and the current measuring device measures the current flowing through the sampling resistor during the tuning phase to obtain a current measurement value. The load feedback module includes a tuning function controller, a tuning resistor, and a corresponding tuning switch transistor. The tuning resistor and the corresponding tuning switch transistor are connected in series. The tuning function controller controls the activation or deactivation of the tuning function, and the tuning switch transistor controls the current flow state of the corresponding tuning resistor during the tuning phase, ensuring that the current measurement value conforms to a preset current value range.
[0046] like Figure 8 As shown, the method specifically includes the following steps:
[0047] S310, The adjustment function is turned on or off by means of the adjustment function controller.
[0048] S320. During the adjustment phase, the current flowing through the sampling resistor is measured using a current measuring device to obtain the current measurement value.
[0049] S330. By controlling the switching state of the adjustment switch transistor, the current flow state of the corresponding adjustment resistor is controlled, so that the measured current value conforms to the preset current value range.
[0050] Optionally, before controlling the adjustment function to turn on or off via the adjustment function controller, the current flowing through the sampling resistor can be measured via a current measuring device. If the measured current value is within the preset current value range, the adjustment function does not need to be turned on; if the measured current value is not within the preset current value range, the adjustment function can be turned on or off via the adjustment function controller.
[0051] The adjustment method in this embodiment utilizes the internal circuitry of the consumable chip to achieve self-adjustment. By controlling the current flow state of the corresponding adjustment resistor through an adjustment switch, the current measurement value inside the consumable chip conforms to a preset current range, thus adapting to the host device, reducing adjustment costs, and improving adjustment efficiency. It should be noted that technical details not described in detail in this embodiment can be found in any of the above embodiments.
[0052] In one embodiment, the current measuring device includes an amplifier and an analog-to-digital converter;
[0053] The current flowing through the sampling resistor is measured using a current measuring device to obtain the current measurement value, including:
[0054] amplifying the current flowing through the sampling resistor by an amplifier;
[0055] reading the amplified current by an analog-to-digital converter to obtain a current measurement value.
[0056] In an embodiment, the trim function control device comprises a function control switch tube, and the function control switch tube comprises a first switch tube and a second switch tube;
[0057] controlling the opening or closing of the trim function by the trim function control device, comprising:
[0058] controlling the first switch tube and the second switch tube to be both opened to open the trim function;
[0059] controlling the first switch tube to be closed to close the trim function.
[0060] In an embodiment, the trim function control device further comprises an inverter and an OR gate, an output terminal of the OR gate is connected to an input terminal of the first switch tube, and an output terminal of the inverter is connected to an input terminal of the second switch tube;
[0061] controlling the opening or closing of the trim function by the trim function control device, comprising:
[0062] configuring the input of the inverter to be low to control the second switch tube to be opened;
[0063] configuring the enable input of the OR gate to be high to control the first switch tube to be opened;
[0064] configuring the enable input of the OR gate to be low to control the first switch tube to be closed.
[0065] In an embodiment, the method further comprises:
[0066] in the communication conversion phase, comparing the preset reference voltage and the voltage at the current output terminal of the sampling resistor by the comparator to output a clock signal;
[0067] incrementally counting up from 0 during the high level of the clock signal and decrementally counting down during the low level of the clock signal by a bidirectional counter;
[0068] in the execution phase, executing a corresponding function according to the clock signal and the count value of the bidirectional counter.
[0069] In an embodiment, the method further comprises:
[0070] in the feedback phase, shifting the feedback data into the inverter (i.e., inputting each bit of the feedback data into the inverter in sequence to obtain the corresponding output of each bit respectively);
[0071] Input the clock signal to the clock input terminal of the OR gate;
[0072] The first and second switching transistors are turned on during the corresponding time when the shift signal output by the inverter (i.e. the output signal of the inverter, including the output corresponding to each bit of the feedback data) is 0, so as to generate a feedback signal to the host.
[0073] Among them, the switching state of the adjustment switch corresponding to the adjustment resistor remains unchanged.
[0074] In one embodiment, controlling the activation of the trimming function via a trimming function controller includes:
[0075] If there is no adjustment completion mark in the specified address, or if there is an adjustment completion mark in the specified address and the preset current value range has changed, the adjustment function will be activated through the adjustment function controller.
[0076] In one embodiment, before measuring the current flowing through the sampling resistor using a current measuring device to obtain the current measurement value, the method further includes: erasing the existing preset current value range in the specified address; writing the preset current value range into the address; and powering off and then powering on again.
[0077] In one embodiment, the switching state of the adjustment switch is controlled to control the current flow state of the corresponding adjustment resistor, so that the current measurement value meets the preset current value range. This includes: controlling the switching state of the adjustment switch to control the current flow state of the corresponding adjustment resistor according to the current measurement value, the preset current value range and the least significant load current (i.e., VDD / R0), until the current measurement value meets the preset current value range; and writing an adjustment completion flag in a specified address.
[0078] Optionally, the preset current value range can be expressed as the range defined by the minimum current value and the maximum current value, such as [Imin, Imax].
[0079] Figure 9 This is a flowchart illustrating an adjustment process as provided in one embodiment. Figure 9 As shown, taking a single-line communication system as an example, after the single-line port is powered on, it first checks whether there is a calibration completion mark in the specified address. If the calibration completion mark exists, it determines whether the calibration target value needs to be changed. If not, the self-calibration (calibration) is completed. If so, the corresponding address of the calibration completion mark is erased and subsequent operations are performed. If the calibration completion mark does not exist, the corresponding address of the calibration completion mark is erased.
[0080] After erasing the corresponding address of the adjustment completion mark, write the preset current value range of the adjustment (e.g., write the minimum current value Imin and the maximum current value Imax) to the corresponding address in the memory, restart the single-line port (power off and then power on), and start the current measurement module to measure the current I1.
[0081] Start trimming, configure TRIM_EN as high, Tx_DATA as low, configure TRIM[0..n-1] according to the linear trimming method based on I1, preset current value range (Imin and Imax), and the lowest bit load current (VDD / R0), and start the current measurement module to measure the current I2;
[0082] Determine whether Imin≤I2≤Imax is met, if yes, write a trimming completion flag at the corresponding address, otherwise, self-calibration (trimming) fails, and the consumable chip that fails in self-calibration can be determined as a defective product and is not suitable for use, on this basis, filtering of the consumable chip can be realized.
[0083] The trimming method in the embodiment belongs to the same concept as the consumable chip in any of the above embodiments, and has the same beneficial effects. Technical details not described in detail in the embodiment can be seen from any of the above embodiments.
[0084] It should be understood that the various forms of flow shown above can be used to reorder, add or delete steps. For example, each step described in the present application can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which is not limited herein.
[0085] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A consumable chip, characterized by, The consumable chip internally comprises: a current measurement module and a load feedback module, the current measurement module being connected with the load feedback module; The current measurement module comprises a sampling resistor and a current measurement device, the sampling resistor being connected with a power supply interface of the consumable chip, and the current measurement device being used for measuring a current flowing through the sampling resistor to obtain a current measurement value in a trimming phase; The load feedback module comprises a trimming function control device, a trimming resistor and a trimming switch tube corresponding to the trimming resistor, the trimming resistor being connected in series with the corresponding trimming switch tube; the trimming function control device is used for controlling opening or closing of a trimming function, and the trimming switch tube is used for controlling a current flow state of the corresponding trimming resistor in the trimming phase, so that the current measurement value meets a preset current value range; The trimming function control device comprises a function control switch tube; the trimming resistor, the trimming switch tube corresponding to the trimming resistor and the function control switch tube are connected in series in sequence, and the function control switch tube is grounded; The function control switch tube is used for controlling opening or closing of the trimming function and for controlling whether to generate a feedback signal to a host; The function control switch tube comprises a first switch tube and a second switch tube; The trimming resistor, the trimming switch tube corresponding to the trimming resistor, the second switch tube and the first switch tube are connected in series in sequence, and the first switch tube is grounded; The trimming function control device further comprises an inverter and an OR gate; An output end of the OR gate is connected with an input end of the first switch tube; An output end of the inverter is connected with an input end of the second switch tube; In a feedback phase, an input of the inverter is feedback data, and an input of a clock input end of the OR gate is a clock signal output in a communication conversion phase; the first switch tube and the second switch tube are opened in corresponding time when a shift signal output by the inverter is 0, so as to generate a feedback signal to the host; wherein a switch state of the trimming switch tube corresponding to the trimming resistor remains unchanged.
2. The consumable chip of claim 1, wherein, The current measurement device comprises an amplifier and an analog-to-digital converter; A current input end of the sampling resistor is connected with a first input end of the amplifier, a current output end of the sampling resistor is connected with a second input end of the amplifier, and an output end of the amplifier is connected with the analog-to-digital converter; The current of the sampling resistor is amplified by the amplifier and then read by the analog-to-digital converter.
3. The consumable chip of claim 1, wherein, When the first switch tube and the second switch tube are both opened, the trimming function is opened; When the first switch tube is closed, the trimming function is closed.
4. The consumable chip of claim 1, wherein, The consumable chip internally further comprises a communication conversion module; The communication conversion module comprises a comparator; a current output end of the sampling resistor is connected with a first input end of the comparator; an input of a second input end of the comparator is a preset reference voltage, and an output end of the comparator is connected with the load feedback module; The comparator is used for comparing the reference voltage and a voltage of the current output end of the sampling resistor and outputting a clock signal in a communication conversion phase.
5. The consumable chip of claim 4, wherein, The communication conversion module further includes a bidirectional counter, and the output of the comparator is connected to the bidirectional counter. The bidirectional counter is used to increment the count from 0 during the high level of the clock signal and decrement the count during the low level of the clock signal during the communication transition phase.
6. The consumable chip of claim 5, wherein, The consumable chip also includes an execution module, which is connected to the communication conversion module. The execution module is used to perform corresponding functions during the execution phase based on the clock signal and the count value of the bidirectional counter.
7. A consumable, characterized in that, The consumable is provided with a consumable chip as described in any one of claims 1-6.
8. A communication system, characterized by It includes a host computer and the consumables as described in claim 7; the host computer and the consumables communicate via a single wire.
9. A trimming method characterized by, Applied to a consumable chip as described in any one of claims 1-6; the method includes: The adjustment function is controlled to be turned on or off via an adjustment function controller. During the adjustment phase, the current flowing through the sampling resistor is measured using a current measuring device to obtain the current measurement value; By controlling the switching state of the adjustment switch transistor, the current flow state of the corresponding adjustment resistor is controlled, so that the current measurement value conforms to the preset current value range. During the feedback phase, the feedback data is shifted and input to the inverter; Input the clock signal output from the communication conversion stage to the clock input terminal of the OR gate; The first and second switching transistors are turned on during the time corresponding to when the shift signal output by the inverter is 0, so as to generate a feedback signal to the host. The switching state of the adjustment switch corresponding to the adjustment resistor remains unchanged.
10. The method of claim 9, wherein, The current measuring device includes an amplifier and an analog-to-digital converter; The process of measuring the current flowing through the sampling resistor using a current measuring device to obtain the current measurement value includes: The current flowing through the sampling resistor is amplified by an amplifier; The amplified current is read by an analog-to-digital converter to obtain the current measurement value.
11. The method of claim 9, wherein, The control of the adjustment function's activation or deactivation via the adjustment function controller includes: Both the first and second switching transistors are turned on to enable the adjustment function; The first switch is turned off to disable the adjustment function.
12. The method of claim 11, wherein, The control of the adjustment function to enable or disable via the adjustment function controller includes: Configure the input of the inverter to a low level to control the second switch to turn on; Configure the enable input of the OR gate to a high level to control the first switch to turn on; Configure the enable input of the OR gate to a low level to control the first switch to turn off.
13. The method of claim 12, wherein, Also includes: During the communication conversion phase, a comparator compares the preset reference voltage with the voltage at the current output terminal of the sampling resistor and outputs a clock signal. A bidirectional counter increments the count from 0 during the high level of the clock signal and decrements the count during the low level of the clock signal. During the execution phase, the corresponding function is performed based on the clock signal and the count value of the bidirectional counter.
14. The method of claim 9, wherein, The control of the adjustment function activation via the adjustment function controller includes: If there is no trimming completion flag in the specified address, or if the trimming completion flag exists in the specified address and the preset current value range is changed, the device is controlled to start the trimming function by a trimming function controller.
15. The method of claim 14, wherein, Before the current flowing through the sampling resistor is measured by the current measuring device to obtain a current measurement value, the method further comprises: erasing the existing preset current value range in the specified address; writing the preset current value range into the address; powering off and powering on again.
16. The method of claim 14, wherein, The control of the switching state of the trimming switch tube to control the current flow state of the corresponding trimming resistor comprises: controlling the switching state of the trimming switch tube according to the current measurement value, the preset current value range and the minimum load current to control the current flow state of the corresponding trimming resistor until the current measurement value meets the preset current value range; writing a trimming completion flag into the specified address.
Citation Information
Patent Citations
Automatic trimming circuit for packaged target current and integrated chip
CN114371756A
Consumable chip, consumable and communication system
CN220700713U