Control apparatus and control method
By detecting the timing signal of the I2C bus and adjusting the resistance value of the controllable pull-up resistor, the problem of inaccurate selection of pull-up resistors in the I2C bus system is solved, and adaptive adjustment of bus driving capabilities and improvement of signal quality is achieved.
Patent Information
- Application Number
- CN202511013966.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-23
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2045-07-23
AI Technical Summary
In the I2C bus system, the change in the load capacity of the downlink device causes the selection of the pull-up resistor value in an inaccurate manner, which affects the signal quality, and it is difficult for the prior art to achieve adaptive adjustment.
The signal detection module detects the timing signal of the I2C bus, uses the control module to generate a resistance adjustment signal, and adjusts the resistance value of the controllable pull-up resistor to adapt to changes in load capacity and maintain the optimal state of bus driving capability.
The adaptive driving capability adjustment of the I2C bus is realized, signal quality and system stability are improved, and inconvenience caused by manual intervention is avoided.
Smart Images

Figure CN120523758A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of bus drive control, and in particular to a control device and a control method. Background Art
[0002] The I2C (Inter-Integrated Circuit) bus is a synchronous serial communication link widely used in electronic devices, primarily for short-distance communication between microcontrollers and various peripheral devices. However, in practical I2C applications, the flexibility of downstream devices, the number of downstream devices connected to the same I2C bus, and factors such as wiring and layout can cause variations in the I2C bus's load capacity, thus affecting the quality of I2C transmitted signals. Therefore, selecting the pull-up resistor value is a very important parameter.
[0003] However, in the related art, it is difficult to accurately obtain the load capacity data of different downstream devices, making it impossible to provide an accurate basis for selecting the resistance value of the pull-up resistor based on the load capacity. Therefore, how to select the resistance value of the pull-up resistor is a technical problem that needs to be solved in the related art. Summary of the Invention
[0004] In view of the above problems, the present application provides a control device and a control method.
[0005] According to the first aspect of the present application, a control device is provided, comprising: a signal detection module, an input end of the signal detection module being connected to a target bus, for detecting a timing signal of the target bus, wherein the target bus is used to electrically connect a master device with a plurality of slave devices; a control module, for generating a resistance adjustment signal based on a difference between a detection value of the timing signal and a preset range; a controllable pull-up resistor, electrically connected to the target bus, for adjusting the resistance value of the controllable pull-up resistor based on the resistance adjustment signal, wherein the controllable pull-up resistor is used to pull up the voltage of a signal line in the target bus to a preset level.
[0006] According to an embodiment of the present application, there are multiple detection values of the above-mentioned timing signal, and the above-mentioned preset range includes multiple sub-ranges for the multiple detection values respectively; the above-mentioned control module is also used to: for any detection value among the above-mentioned multiple detection values, when the above-mentioned any detection value is within the above-mentioned sub-range, determine that the deviation value of the above-mentioned any detection value is a predetermined value; when the above-mentioned any detection value is outside the above-mentioned sub-range, determine the smaller difference between the above-mentioned any detection value and the upper limit value and the lower limit value of the above-mentioned sub-range as the deviation value; obtain the weighted value of the above-mentioned any detection value according to the deviation value of the above-mentioned any detection value and the weight of the above-mentioned any detection value; and obtain the comprehensive deviation value based on the weighted values of each of the above-mentioned multiple detection values.
[0007] According to an embodiment of the present application, the signal detection module is further configured to: re-detect the timing signal of the target bus when the comprehensive deviation value is the predetermined value.
[0008] According to an embodiment of the present application, the controllable pull-up resistor is further configured to reduce or increase the resistance of the controllable pull-up resistor according to the resistance adjustment signal when the comprehensive deviation value is inconsistent with the predetermined value.
[0009] According to an embodiment of the present application, the above-mentioned control module is also used to: repeat the following operations until the number of resistance adjustments is equal to the preset number, or the above-mentioned comprehensive deviation value is the above-mentioned predetermined value: send the above-mentioned resistance adjustment signal to the above-mentioned controllable pull-up resistor so that the controllable pull-up resistor performs resistance adjustment.
[0010] According to an embodiment of the present application, the signal detection module is further configured to: detect the timing signal of the target bus again when the controllable pull-up resistor completes resistance adjustment and the number of resistance adjustments is less than or equal to the preset number.
[0011] According to an embodiment of the present application, the control module is further configured to issue an alarm message when the resistance adjustment times are greater than the preset times and the comprehensive deviation value is inconsistent with the predetermined value.
[0012] According to an embodiment of the present application, the controllable pull-up resistor is further used to adjust the resistance value according to a preset resistance adjustment step.
[0013] According to an embodiment of the present application, the control module and the controllable pull-up resistor are integrated.
[0014] According to an embodiment of the present application, the above-mentioned signal detection module is also used to detect the rise time and fall time in the above-mentioned timing signal at a predetermined frequency; the above-mentioned control module is also used to generate a resistance adjustment signal based on the difference between the rise time, fall time and the preset range.
[0015] According to an embodiment of the present application, the above-mentioned signal detection module includes a first storage unit, which is used to store the detection value of the above-mentioned timing signal; the above-mentioned control module includes a second storage unit, which is used to store the sub-ranges and weights of multiple detection values.
[0016] According to an embodiment of the present application, the signal detection module is further configured to obtain the detection value from the first storage unit and transmit the detection value to the control module.
[0017] The second aspect of the present application provides a control method, which is applied to the above-mentioned control device, and is characterized in that the above-mentioned method includes: using a signal detection module to detect the timing signal of the target bus; using a control module to generate a resistance adjustment signal based on the difference between the detection value of the timing signal and a preset range; using a controllable pull-up resistor to adjust the resistance value of the controllable pull-up resistor according to the above-mentioned resistance adjustment signal.
[0018] According to an embodiment of the present application, the target bus is configured to transmit signals in an open-drain output manner.
[0019] According to an embodiment of the present application, the above-mentioned control method also includes: when the control device is reset, setting the detection frequency of the above-mentioned signal detection module, wherein the above-mentioned detection frequency is greater than the frequency of the signal transmitted by the above-mentioned target bus; setting the transmission rate and data format of the above-mentioned control module to support communication between the above-mentioned signal detection module and the above-mentioned controllable pull-up resistor; setting the initial resistance value of the above-mentioned controllable pull-up resistor.
[0020] According to a control device and control method provided by the present application, a signal detection module detects the timing signal of a target bus to obtain a detection value that can reflect the quality and characteristics of the signal transmitted by the target bus from different dimensions. Thus, the control module can generate a resistance adjustment signal based on the difference between the detection value and a preset range. The difference between the detection value and the preset range can reflect whether the driving capability of the target bus is in an optimal state and the direction in which the resistance of the pull-up resistor needs to be adjusted. Based on the resistance adjustment signal, the controllable pull-up resistor adjusts the resistance of the pull-up resistor accordingly to optimize the driving capability of the target bus. On this basis, adaptive adjustment of the driving capability of the target bus is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above contents and other objects, features and advantages of the present application will become more apparent through the following description of the embodiments of the present application with reference to the accompanying drawings.
[0022] Figure 1 A schematic diagram of a control device according to an embodiment of the present application is shown.
[0023] Figure 2 A schematic diagram of operations performed by a signal detection module and a control module in a control device according to an embodiment of the present application is shown.
[0024] Figure 3 A schematic diagram of operations performed by a control device according to an embodiment of the present application is shown.
[0025] Figure 4 A flow chart of a control method according to an embodiment of the present application is shown.
[0026] Figure 5A flowchart of initializing a control device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present application. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present application.
[0028] The terms used herein are only for describing specific embodiments and are not intended to limit this application. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0029] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0030] When expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0031] In the process of implementing this application, it was found that the original intention of the design of I2C was to solve the shortcomings of traditional parallel communication interfaces in hardware resource occupation and communication complexity, thereby providing a simple and efficient communication solution.
[0032] I2C hardware circuit design is relatively simple, requiring only SDA (Serial Data Line) and SCL (Serial Clock Line). This simplified hardware circuit reduces interface complexity, lowers hardware costs, and improves system reliability. I2C also features single-master, multi-slave communication capabilities, enabling flexible slave device configuration within the bus's load capacity, making it ideal for sensor communication. Furthermore, since it only requires two signal lines, it requires fewer hardware resources and can meet the needs of most low-speed, low-power applications.
[0033] However, in actual I2C applications, factors such as the number of downstream devices connected to the same I2C bus, wiring, and layout can cause variations in the I2C bus's load capacity, thereby affecting I2C signal quality. When the load capacity is very high, the rise time, setup and hold time of the I2C transmitted signal may not meet the required performance. Therefore, the selection of the pull-up resistor's value is a crucial parameter, but this choice is often based on manual calculations and experience, generally selecting a safe value.
[0034] In practice, a temporary I2C downstream device may be connected, resulting in an excessive load capacity. If the load capacity is exceeded, the resistor can only be replaced while the entire system is powered off, which is very inconvenient. Therefore, implementing adaptive I2C bus pull-up resistor value adjustment without manual intervention and without major changes to the existing system is a problem in the related art.
[0035] Furthermore, related technologies already exist that achieve adaptive pull-up resistor value selection by calculating the load capacity of the entire I2C bus and adjusting the pull-up resistor's value based on the load capacity. However, these related solutions still have the following problems: Accurate load capacity data for different devices is difficult to obtain, and the calculated load capacity results for printed circuit boards (PCBs) are also relatively vague, making it impossible to provide a precise reference for resistance value selection. When implementing pull-up resistor value selection using switching MOS (metal-oxide-semiconductor) transistors, the calculated resistance value is not precise enough. Sudden adjustments can easily cause signal abruptness, which in turn can introduce MOS switching jitter, affecting system stability.
[0036] To this end, an embodiment of the present application provides a control device that adjusts the resistance value of an adaptive pull-up resistor based on a detection value that can reflect the quality of a signal transmitted by an I2C bus.
[0037] Figure 1 A schematic diagram of a control device according to an embodiment of the present application is shown.
[0038] like Figure 1 As shown, the control device 100 may include a signal detection module 110 , a control module 120 and a controllable pull-up resistor 130 .
[0039] exist Figure 1 In the embodiment, the master device 140 is electrically connected to a plurality of slave devices via a target bus, and the plurality of slave devices include slave device 1, slave device 2, ..., slave device n, where n is an integer greater than 1.
[0040] On this basis, since the signal transmitted on the target bus needs to be detected, the input end of the signal detection module 110 can be connected to the target bus to detect the timing signal of the target bus.
[0041] In one embodiment, the target bus may be an I2C bus.
[0042] According to an embodiment of the present application, the output end of the signal detection module 110 can be connected to the input end of the control module 120, and the signal detection module 110 can transmit the detection value of the detected timing signal to the control module 120. The control module 120 can be used to generate a resistance adjustment signal based on the difference between the detection value of the timing signal and a preset range.
[0043] According to the embodiments of the present application, the signal detection module has high-speed sampling and processing capabilities, and can measure and analyze signals with nanosecond accuracy. In terms of data transmission, an efficient communication interface is used to quickly and stably transmit the detection values to the control module.
[0044] In one embodiment, the detection values of the timing signal may include setup time, hold time, rise time, fall time, high hold time, etc. The detection values in the timing signal can reflect the quality and characteristics of the signal transmitted by the target bus from different dimensions.
[0045] According to an embodiment of the present application, the output terminal of the control module 120 is connected to the controllable pull-up resistor 130, and the control module 120 can transmit the generated resistance adjustment signal to the controllable pull-up resistor 130. The controllable pull-up resistor 130 is electrically connected to the target bus.
[0046] According to an embodiment of the present application, the controllable pull-up resistor 130 can be used to adjust the resistance of the controllable pull-up resistor 130 itself according to the resistance adjustment signal, wherein the controllable pull-up resistor 130 can be used to pull up the voltage of the signal line in the target bus to a preset level.
[0047] The target bus includes two signal lines, a data line and a clock line; the preset level can represent the level of the signal line in the target bus based on the adjustment of the resistance value of the controllable pull-up resistor 130 .
[0048] According to an embodiment of the present application, adjusting the resistance value of the controllable pull-up resistor of the target bus is to adjust the driving capability of the target bus so that the target bus always maintains a stable and efficient working state.
[0049] According to an embodiment of the present application, a signal detection module detects the timing signal of a target bus to obtain a detection value that can reflect the quality and characteristics of the signal transmitted by the target bus from different dimensions. Thus, a control module can generate a resistance adjustment signal based on the difference between the detection value and a preset range. The difference between the detection value and the preset range can reflect whether the driving capability of the target bus is in an optimal state and the direction in which the resistance of the pull-up resistor needs to be adjusted. Based on the resistance adjustment signal, the controllable pull-up resistor adjusts the resistance of the pull-up resistor accordingly to optimize the driving capability of the target bus. On this basis, adaptive adjustment of the driving capability of the target bus is achieved.
[0050] The following will be based on Figure 1 The scene described by Figure 2~Figure 3 The control device of the embodiment of the present application is described in detail.
[0051] According to an embodiment of the present application, the detection value of the timing signal can be multiple, and the preset range may include multiple sub-ranges for the multiple detection values respectively; the control module is also used to: for any detection value among the multiple detection values, when any detection value is within the sub-range, determine the deviation value of any detection value to be a predetermined value; when any detection value is outside the sub-range, determine the smaller difference between any detection value and the upper limit value and the lower limit value of the sub-range as the deviation value; obtain the weighted value of any detection value based on the deviation value of any detection value and the weight of any detection value; and obtain the comprehensive deviation value based on the weighted values of each of the multiple detection values.
[0052] According to an embodiment of the present application, the detection value of the timing signal can be multiple, such as setup time, hold time, rise time, fall time, etc. The preset range can include multiple sub-ranges for each of the multiple detection values, that is, one detection value corresponds to one sub-range. The sub-ranges of each detection value are set as needed, and the sub-ranges can represent the range in which the corresponding detection value should be when the driving capability of the target bus remains in an optimal state.
[0053] According to an embodiment of the present application, when the control module receives the detection value of the timing signal transmitted by the signal detection module, it can also be used to calculate the deviation value of the detection value for each detection value, and calculate the weighted value of each detection value in combination with the weight corresponding to the detection value, so as to obtain a comprehensive deviation value based on the weighted values of multiple detection values.
[0054] Specifically, when any detection value is within the sub-range, it can be indicated that the detection value is within the ideal range that the detection value should be within, and the deviation value of the detection value can be determined as a predetermined value, wherein the predetermined value can be 0.
[0055] In one embodiment, if any detected value is outside the sub-range, it can be indicated that the detected value is not within the ideal range. Because the detected value is kept within the sub-range by adjusting the resistance of the controllable pull-up resistor, the smaller difference between the detected value and the upper and lower limits of the sub-range can be determined as the deviation value. The difference is the absolute value of the difference between the two.
[0056] Furthermore, when the detection value is greater than the upper limit value of the sub-range, the deviation value of the detection value is the difference between the detection value and the upper limit value; when the detection value is less than the lower limit value of the sub-range, the deviation value of the detection value is the difference between the detection value and the lower limit value.
[0057] According to an embodiment of the present application, each detection value also has a corresponding weight, that is, the detection value and the weight also have a one-to-one correspondence. The weight is set according to the needs. Furthermore, the weight corresponding to the detection value can be set according to the degree of influence of the detection value on the communication stability of the target bus.
[0058] In one embodiment, the greater the weight corresponding to the detection value, the greater the impact of the detection value on the communication stability of the target bus. For example, if the setup time and hold time have a greater impact on communication stability, the weight of the setup time and hold time can be set to 0.3; the weight of the rise time and fall time can be set to 0.2.
[0059] According to an embodiment of the present application, the weight assigned to each detection value can be used for subsequent comprehensive evaluation, that is, for calculating a comprehensive deviation value.
[0060] Specifically, the weighted value of any detection value can be calculated based on the deviation value of the detection value and the weight of the detection value. For example, the product of the deviation value and the weight of any detection value is used as the weighted value of the detection value.
[0061] According to an embodiment of the present application, a comprehensive deviation value may be calculated based on the weighting of each of the plurality of detection values.
[0062] In one embodiment, when the detection value is greater than the upper limit value of the sub-range, the weighted value of the detection value remains unchanged during the calculation of the comprehensive deviation value; when the detection value is less than the lower limit value of the sub-range, the weighted value of the detection value takes the opposite value during the calculation of the comprehensive deviation value.
[0063] On this basis, after judging whether to take the opposite number, the sum of the weights of each detection value is determined as the comprehensive deviation value.
[0064] Therefore, in another embodiment, when any detection value is outside the sub-range, the difference with the smaller absolute value between any detection value and the upper limit value and the lower limit value of the sub-range can be determined as the deviation value, that is, the deviation value can be positive or negative, so that when calculating the comprehensive deviation value, the weighted addition of each detection value can be directly added to obtain the comprehensive deviation value.
[0065] According to an embodiment of the present application, a deviation value of the detection value is determined based on whether the detection value is within a sub-range, and a weighted value is calculated based on the weights of each detection value. Thus, a comprehensive deviation value is obtained based on the weighted values of each of the multiple detection values to reflect the current driving capability of the target bus, which can be used to determine whether the driving capability needs to be enhanced or weakened.
[0066] According to an embodiment of the present application, the signal detection module is further configured to: re-detect the timing signal of the target bus when the comprehensive deviation value is a predetermined value.
[0067] According to an embodiment of the present application, when the comprehensive deviation value calculated by the control module based on the detection value of the signal transmitted by the signal detection module is a predetermined value, it indicates that the driving capability of the target bus is already in the optimal state at this time, and there is no need to adjust the resistance value of the controllable pull-up resistor.
[0068] On this basis, in order to ensure that the target bus is always in a stable and efficient working state, that is, to ensure that the target bus is in an optimal driving capability state, it is necessary to continuously detect the timing signal of the target bus.
[0069] Therefore, when the comprehensive deviation value is a predetermined value, the signal detection module can also be used to detect the timing signal of the target bus again.
[0070] In one embodiment, the control module may send an instruction signal for performing the next detection to the signal detection module when the comprehensive deviation value is a predetermined value; upon receiving the instruction signal, the signal detection module may detect the timing signal of the target bus again.
[0071] According to an embodiment of the present application, if the comprehensive deviation value is a predetermined value, it indicates that the target bus is in an optimal driving state and there is no need to adjust the resistance value of the controllable pull-up resistor. On this basis, in order to ensure that the target bus is always in a stable and efficient operating state, the signal detection module again detects the timing signal of the target bus.
[0072] According to an embodiment of the present application, the controllable pull-up resistor is further used to: when the comprehensive deviation value is inconsistent with the predetermined value, reduce or increase the resistance of the controllable pull-up resistor according to the resistance adjustment signal.
[0073] According to an embodiment of the present application, when the comprehensive deviation value is inconsistent with the predetermined value, the control module can send a resistance adjustment signal to the controllable pull-up resistor; when the controllable pull-up resistor receives the resistance adjustment signal, the controllable pull-up resistor can reduce or increase the resistance of the controllable pull-up resistor according to the resistance adjustment signal.
[0074] Specifically, if the combined deviation value is greater than the predetermined value based on the predetermined value being 0, it indicates that the detected values of the timing signals are outside the ideal range and that the driving capability of the target bus needs to be enhanced. Thus, the controllable pull-up resistor can reduce its resistance according to the resistance adjustment signal.
[0075] If the combined deviation is less than the predetermined value, it indicates that the detected values of the timing signals are below the ideal range and the driving capability of the target bus needs to be weakened.
[0076] According to an embodiment of the present application, when the comprehensive deviation value calculated by the control module is inconsistent with the predetermined value, the driving capability adjustment direction of the target bus is judged based on the positive or negative sign of the comprehensive deviation value, and the corresponding resistance adjustment signal is sent to the controllable pull-up resistor, so that the controllable pull-up resistor increases or decreases the resistance value of the controllable pull-up resistor according to the resistance adjustment signal, thereby achieving adjustment of the driving capability of the target bus.
[0077] Figure 2 A schematic diagram of operations performed by a signal detection module and a control module in a control device according to an embodiment of the present application is shown.
[0078] like Figure 2 As shown, this embodiment includes operations S210 to S270.
[0079] According to an embodiment of the present application, the signal detection module may perform the above-mentioned operation S210, and the control module may perform the above-mentioned operations S220 to S270.
[0080] In operation S210 , the signal detection module detects a timing signal of a target bus.
[0081] In operation S220 , the control module determines a deviation value of any detection value.
[0082] According to an embodiment of the present application, the control module determines a deviation value of the corresponding detection value based on a plurality of detection values of the detected timing signal and their corresponding sub-ranges.
[0083] In operation S230 , a comprehensive deviation value of the plurality of detection values is calculated.
[0084] According to an embodiment of the present application, a comprehensive deviation value is calculated based on the deviation values of the respective detection values and the corresponding weights.
[0085] In operation S240 , it is determined whether the comprehensive deviation value is consistent with a predetermined value.
[0086] According to an embodiment of the present application, when the comprehensive deviation value is inconsistent with the predetermined value, operation S250 is performed; when the comprehensive deviation value is consistent with the predetermined value, operation S210 is performed.
[0087] In operation S250 , it is determined whether the comprehensive deviation value is greater than a predetermined value.
[0088] According to an embodiment of the present application, when the comprehensive deviation value is greater than a predetermined value, operation S270 is performed; when the comprehensive deviation value is less than the predetermined value, operation S260 is performed.
[0089] In operation S260 , a resistance adjustment signal indicating a reduction in resistance of the controllable pull-up resistor is sent to the controllable pull-up resistor.
[0090] In operation S270 , a resistance adjustment signal indicating an increase in the resistance value of the controllable pull-up resistor is sent to the controllable pull-up resistor.
[0091] According to an embodiment of the present application, the control module is also used to: repeat the following operations until the number of resistance adjustments is equal to a preset number, or the comprehensive deviation value is a predetermined value: send a resistance adjustment signal to the controllable pull-up resistor so that the controllable pull-up resistor performs resistance adjustment.
[0092] According to an embodiment of the present application, to prevent the adjustment process from falling into an infinite loop or over-adjustment, a maximum number of consecutive adjustment times for the controllable pull-up resistor is set, where the preset number can represent the maximum number of consecutive resistance adjustments allowed. For example, the preset number can be 10, meaning that the controllable pull-up resistor can be adjusted up to 10 times in a row.
[0093] According to an embodiment of the present application, when the comprehensive deviation value is inconsistent with the predetermined value and the number of resistance adjustments is less than the preset number, the control module can continue to send a resistance adjustment signal to the controllable pull-up resistor so that the controllable pull-up resistor performs resistance adjustment.
[0094] According to an embodiment of the present application, when the number of resistance adjustments is equal to a preset number or the comprehensive deviation value is a predetermined value, the control module does not continue to send the resistance adjustment signal to the controllable pull-up resistor.
[0095] Specifically, when the control module continuously sends the resistance adjustment signal to the resistance adjustment module, each time the control module sends the resistance adjustment signal to the controllable pull-up resistor, the number of resistance adjustments may be increased by 1 until it reaches a preset number.
[0096] In one embodiment, when the resistance adjustment times are less than a preset times and the comprehensive deviation value calculated under the resistance adjustment times is a predetermined value, the control module may reset the resistance adjustment times, for example, reset the resistance adjustment times to 0.
[0097] For example, if the control module has sent a resistance adjustment signal to the controllable pull-up resistor five times in a row, the number of resistance adjustments is five. When the controllable pull-up resistor receives the resistance adjustment signal for the fifth time, the resistance value of the controllable pull-up resistor is adjusted. If the comprehensive deviation value calculated by the control module after this adjustment is a predetermined value, the number of resistance adjustments can be reset to 0. According to embodiments of the present application, by setting a preset number of times, the number of resistance adjustments of the controllable pull-up resistor can be limited, preventing the adjustment process from falling into an infinite loop or over-adjustment.
[0098] According to an embodiment of the present application, the signal detection module is further configured to: re-detect the timing signal of the target bus when the controllable pull-up resistor completes resistance adjustment and the number of resistance adjustments is less than or equal to a preset number of times.
[0099] According to an embodiment of the present application, when the controllable pull-up resistor completes resistance adjustment and the number of resistance adjustments is less than or equal to a preset number, the signal detection module may further detect the timing signal of the bus again.
[0100] Specifically, if the comprehensive deviation value calculated by the control module is inconsistent with the predetermined value, the controllable pull-up resistor adjusts the resistance value of the controllable pull-up resistor according to the resistance adjustment signal. After the controllable pull-up resistor completes the resistance adjustment, the signal detection module again detects the timing signal of the bus to determine whether the driving capability of the target bus remains at an optimal state after the resistance value of the controllable pull-up resistor is adjusted.
[0101] According to an embodiment of the present application, when the controllable pull-up resistor completes resistance adjustment and the number of resistance adjustments is less than or equal to a preset number of times, it indicates that the previous resistance adjustment failed to bring the driving capability of the target bus to an optimal state. Then, when the current resistance adjustment is completed and the number of resistance adjustments is less than or equal to the preset number of times, the signal detection module is further used to detect the timing signal of the target bus again to determine whether the current resistance adjustment brings the driving capability of the target bus to an optimal state and whether it is necessary to continue adjusting the resistance value.
[0102] According to an embodiment of the present application, the control module is further configured to issue an alarm message when the number of resistance adjustments is greater than a preset number and the comprehensive deviation value is inconsistent with a predetermined value.
[0103] According to an embodiment of the present application, the preset number of times is the maximum number of times the controllable pull-up resistor can be continuously adjusted. If the comprehensive deviation value is inconsistent with the preset value and the number of resistance adjustments exceeds the preset number, it indicates that the controllable pull-up resistor has been continuously adjusted the preset number of times, but the driving capability of the target bus is still not at an optimal state. Based on this, the control module can issue a warning message.
[0104] In one embodiment, the warning information issued by the control module may be a flashing indicator light or an error message sent to the host.
[0105] According to an embodiment of the present application, if the drive capability of the target bus is still not optimal after the controllable pull-up resistor has been adjusted a predetermined number of times, further resistor adjustment may not be able to achieve optimal drive capability of the target bus. Therefore, the control module may issue an alarm indicating a possible hardware failure or other abnormality requiring manual inspection and maintenance.
[0106] Figure 3 A schematic diagram of operations performed by a control device according to an embodiment of the present application is shown.
[0107] like Figure 3 As shown, this embodiment includes operations S310 to S340.
[0108] In operation S310 , it is determined whether the number of resistance adjustment times is greater than a preset number.
[0109] According to an embodiment of the present application, before the control module performs the above-mentioned operation S250, the control module first performs operation S310 to determine whether the number of resistance adjustment times is greater than a preset number.
[0110] According to an embodiment of the present application, when the number of resistance adjustment times is less than or equal to the preset number, operation S320 is performed; when the number of resistance adjustment times is greater than the preset number, operation S340 is performed.
[0111] In operation S320 , the control module sends a resistance adjustment signal to the controllable pull-up resistor based on the comprehensive deviation value.
[0112] In operation S330 , the controllable pull-up resistor adjusts a resistance value of the controllable pull-up resistor according to the resistance adjustment signal.
[0113] According to an embodiment of the present application, when the controllable pull-up resistor completes resistance adjustment, since the number of resistance adjustments is less than or equal to the preset number, the signal detection module performs operation S210 to detect the timing signal of the target bus again.
[0114] In operation S340 , an alarm message is issued.
[0115] Based on the above, after the controllable pull-up resistor completes its resistance adjustment, the signal detection module can re-detect the target bus's timing signal to obtain a new detection value. This new detection value is then fed back to the control module, which repeats the aforementioned steps of calculating the comprehensive deviation value, comparing the comprehensive deviation value with the predetermined value, and adjusting the controllable pull-up resistor's resistance, forming a closed-loop control process. Through continuous detection, adjustment, and feedback, the target bus's driving capability is consistently optimized to accommodate frequent or intermittent changes in the number of slave devices.
[0116] According to an embodiment of the present application, the controllable pull-up resistor is further used to adjust the resistance value according to a preset resistance adjustment step.
[0117] According to an embodiment of the present application, the controllable pull-up resistor is further provided with a preset resistance adjustment step, wherein the preset resistance adjustment step is set according to needs.
[0118] For example, the preset resistance adjustment step may be 10Ω, that is, the resistance of the controllable pull-up resistor may be increased or decreased by 10Ω each time based on the resistance adjustment signal.
[0119] In one embodiment, the controllable pull-up resistor is configured to have a wider adjustment range, higher adjustment accuracy, shorter adjustment step length, and support a fast response mode to sudden load changes.
[0120] According to an embodiment of the present application, by setting a preset resistance adjustment step of the controllable pull-up resistor, drastic fluctuations in the quality of the signal transmitted in the target bus due to excessive adjustment amplitude can be avoided, thereby achieving a softer and slower adjustment process.
[0121] According to an embodiment of the present application, the control module and the controllable pull-up resistor are integrated.
[0122] According to an embodiment of the present application, the control module and the controllable pull-up resistor in the control device are integrated, that is, the control module and the controllable pull-up resistor in the control device can be integrated into the same circuit board.
[0123] On this basis, in one embodiment, the control module, the signal detection module and the controllable pull-up resistor in the control device are integrated into the same circuit board.
[0124] According to an embodiment of the present application, by integrating a control module and a controllable pull-up resistor in a control device, the hardware design complexity of the control device can be reduced.
[0125] According to an embodiment of the present application, the signal detection module is further used to detect the rise time and fall time in the timing signal at a predetermined frequency; the control module is further used to generate a resistance adjustment signal based on the difference between the rise time, fall time and the preset range.
[0126] According to an embodiment of the present application, the rise time and fall time in the detection values of the timing signal in the target bus are parameter values that have a greater impact on the signal transmission in the target bus, so the signal detection module can directly detect only the two detection values of the rise time and fall time in the timing signal of the target bus.
[0127] However, since the signal detection module only detects the rise time and fall time, the detection frequency requirement of the signal detection module is relatively high. The detection frequency of the signal detection module can be set to a predetermined frequency so that the signal detection module detects the rise time and fall time in the timing signal at a predetermined frequency.
[0128] In one embodiment, the predetermined frequency is set according to needs, and the predetermined frequency is greater than 100 MHz.
[0129] According to the embodiments of the present application, since the signal detection module only detects the rise and fall times of the timing signal and does not detect other detection values such as setup time, the amount of data calculation required by the subsequent control module is reduced, thereby improving calculation speed. Furthermore, since rise and fall times are parameters that have a significant impact on target bus transmission, the impact of other detection values is minimal. Therefore, if the combined deviation value calculated based on these two detection values is consistent with a predetermined value, the target bus's drive capability can be maintained at an optimal state.
[0130] According to an embodiment of the present application, the signal detection module includes a first storage unit, which is used to store the detection value of the timing signal; the control module includes a second storage unit, which is used to store the sub-ranges and weights of multiple detection values.
[0131] According to an embodiment of the present application, the signal detection module can detect the timing signal of the target bus at a predetermined frequency. Each time the signal detection module detects, it samples and analyzes the timing signal within a complete target bus communication cycle to obtain an accurate detection value.
[0132] Thus, the signal detection module can store the detection value of the detected timing signal in an internal first storage unit, wherein the first storage unit can be a register.
[0133] According to an embodiment of the present application, the second storage unit may be an EEPROM (Electrically Erasable Programmable Read-Only Memory). The second storage unit in the control module may be used to store the sub-ranges and weights of the plurality of detection values.
[0134] According to an embodiment of the present application, the first storage unit in the signal detection module can store the detection value of the detected timing signal; the second storage unit based on the control module can store the sub-ranges and weights of multiple detection values, so that the comprehensive deviation value can be calculated directly based on the sub-ranges and weights stored in the second storage unit.
[0135] According to an embodiment of the present application, the signal detection module is further configured to obtain a detection value from the first storage unit and transmit the detection value to the control module.
[0136] According to an embodiment of the present application, the signal detection module may obtain a detection value of the timing signal from the first storage unit and transmit the detection value to the control module.
[0137] In one embodiment, the signal detection module includes a communication interface, which may be a Serial Peripheral Interface (SPI).
[0138] Specifically, the signal detection module may transmit the detection value obtained from the first storage unit to the control module through the communication interface.
[0139] According to an embodiment of the present application, based on the first storage unit, the signal detection module can transmit the detection value of the timing signal stored in the first storage unit to the control module, so that the control module can directly calculate the comprehensive deviation value based on the detection value and the sub-range and weight corresponding to the detection value stored in the second storage unit in the control module, thereby determining whether it is necessary to adjust the resistance value of the controllable pull-up resistor.
[0140] Figure 4 A flow chart of a control method according to an embodiment of the present application is shown.
[0141] like Figure 4 As shown, the control method 400 includes operations S410 to S430.
[0142] According to the embodiments of the present application, Figure 1 The control device shown in can perform the above operations S410 to S430.
[0143] In operation S410 , a timing signal of a target bus is detected using a signal detection module.
[0144] In operation S420 , a resistance adjustment signal is generated according to a difference between the detection value of the timing signal and a preset range using a control module.
[0145] In operation S430 , the resistance value of the controllable pull-up resistor is adjusted according to the resistance adjustment signal using the controllable pull-up resistor.
[0146] According to an embodiment of the present application, a signal detection module detects the timing signal of a target bus to obtain a detection value that can reflect the quality and characteristics of the signal transmitted by the target bus from different dimensions. Thus, a control module can generate a resistance adjustment signal based on the difference between the detection value and a preset range. The difference between the detection value and the preset range can reflect whether the driving capability of the target bus is in an optimal state and the direction in which the resistance of the pull-up resistor needs to be adjusted. Based on the resistance adjustment signal, the controllable pull-up resistor adjusts the resistance of the pull-up resistor accordingly to optimize the driving capability of the target bus. On this basis, adaptive adjustment of the driving capability of the target bus is achieved.
[0147] According to an embodiment of the present application, the target bus is configured to transmit signals in an open-drain output manner.
[0148] According to an embodiment of the present application, the target bus is configured to transmit signals in an open drain output manner, that is, the above control method is applicable to detecting signals whose signal output type is OD (Open Drain).
[0149] According to the embodiments of the present application, the target bus that transmits signals in an open-drain output manner can be detected by the above control method and the driving capability of the target bus can be controlled to always be maintained in an optimal state.
[0150] Figure 5 A flowchart of initializing a control device according to an embodiment of the present application is shown.
[0151] like Figure 5 As shown, the method 500 includes operations S510 to S530.
[0152] According to an embodiment of the present application, the above operations S510 to S530 are performed when the control device is reset. Figure 1 In the case where the control device 100 is reset, that is, the control device 100 is powered on, the hardware of the control device 100 may be initialized.
[0153] In operation S510, a detection frequency of a signal detection module is set.
[0154] The detection frequency is greater than the frequency of the target bus transmission signal.
[0155] Specifically, the signal detection module in the control device may be initialized and configured, the detection frequency of the signal detection module may be set, and the measurement accuracy of the signal detection module may also be set.
[0156] The measurement accuracy of the signal detection module is related to the accuracy of the components of the signal detection module itself. If the accuracy of the components itself is higher, the accuracy of the signal detection module will also be higher.
[0157] According to an embodiment of the present application, setting the detection frequency of the signal detection module to be greater than the frequency of the target bus transmission signal and measurement accuracy and other parameters can ensure the detection accuracy of the signal detection module for the timing signal of the target bus.
[0158] In operation S520 , a transmission rate and a data format of the control module are set to support communication between the signal detection module and the controllable pull-up resistor.
[0159] In one embodiment, the control module may be initialized to set the transmission rate and data format of the communication interface of the control module.
[0160] Specifically, the receiving rate of the control module is set to match the sending rate of the signal detection module, and the sending rate of the control module is set to match the receiving rate of the controllable pull-up resistor; the data format of the control module transmission data is set to be the same as the data format of the controllable pull-up resistor and the signal detection module.
[0161] In operation S530 , an initial resistance value of the controllable pull-up resistor is set.
[0162] In one embodiment, the controllable pull-up resistor may be initialized to set an initial resistance value of the controllable pull-up resistor.
[0163] Specifically, the initial resistance value of the controllable pull-up resistor can be reasonably set according to the default load condition of the target bus, so that the target bus is in a moderate driving capability state.
[0164] According to an embodiment of the present application, when the control device is reset, the signal detection module, control module, and controllable pull-up resistor in the control device can be initialized separately. By initializing the detection frequency, measurement accuracy, and other parameters of the signal detection module, it is ensured that the timing signal of the target bus can be accurately detected and the detection accuracy is improved; by initializing the transmission rate and data format of the control module, it is ensured that the signal detection module and the controllable pull-up resistor communicate normally. By setting the transmission rate to avoid data loss, etc., and by setting the data format to ensure that the sent data can be correctly processed; by initializing the resistance value of the controllable pull-up resistor, the target bus is placed in a moderate driving capacity state.
[0165] The control device and control method described above can be applied to various application scenarios, such as dynamic hot-swap adjustment, increasing the number of slave devices, and intermittent load changes.
[0166] The dynamic hot-swap adjustment solution based on the aforementioned control device is specifically designed for a specific application scenario: within a server, the I2C bus often connects multiple devices (such as temperature sensors, power management chips, and storage modules). Because servers must support hot-swap functionality, the bus load capacity fluctuates in real time when devices are dynamically connected or removed. Traditional fixed pull-up resistor designs are inadequate for such scenarios and can easily lead to signal degradation (e.g., excessive setup time and signal jitter), thus impacting system stability.
[0167] Therefore, the control device capable of adaptively adjusting the driving capability of the I2C bus can ensure that the quality of the signal transmitted on the I2C always meets the specification requirements.
[0168] In one embodiment, the signal detection module may be an integrated high-precision ADC (Analog-to-Digital Converter) and a high-speed sampling circuit (sampling rate ≥ 100 MHz). The signal detection module may be capable of capturing the timing parameters (such as setup time, hold time, and rise / fall time) of the SDA and SCL signals of the I2C bus in real time.
[0169] In one embodiment, the controllable pull-up resistor can be a digitally controlled potentiometer (e.g., AD5270), which supports a wide resistance adjustment range (e.g., 1 kΩ to 100 kΩ) and a fine step size (0.1 Ω / step). The controllable pull-up resistor can also receive control instructions, such as resistance adjustment signals, via an SPI interface.
[0170] In one embodiment, the control module may be an embedded microcontroller on a server motherboard, and may run a PID (Proportional-Integral-Derivative) control algorithm to dynamically generate a resistance adjustment signal according to the deviation value.
[0171] According to the embodiments of the present application, the signal detection module and the controllable pull-up resistor can be integrated into a single chip, thereby reducing the area occupied by the PCB (Printed Circuit Board), improving the response speed, and achieving integrated optimization.
[0172] On this basis, an independent I2C bus monitoring channel can also be set up to avoid interference with main business communications.
[0173] The specific dynamic adjustment process includes the following operations: (1) Initialization configuration: Initialize the detection frequency (100MHz) and measurement mode (full cycle capture) of the signal detection module; the initial resistance of the controllable pull-up resistor can be set to an intermediate value (such as 10kΩ) to adapt to the default bus load. (2) Real-time monitoring and feedback: After each I2C communication cycle, the signal detection module uploads the detection value of the timing signal to the control module; the control module is used to calculate the comprehensive deviation value based on the detection value.
[0174] In one embodiment, the resistance of a controllable pull-up resistor can be dynamically adjusted based on a comprehensive deviation value. A positive comprehensive deviation value indicates deteriorating signal quality on the I2C bus, requiring a reduction in resistance to increase drive current. A negative comprehensive deviation value indicates signal quality on the I2C bus, requiring an increase in resistance to reduce drive current. Furthermore, a gradual resistance adjustment method, such as setting resistance adjustment steps (e.g., 1% resistance adjustment each time), can be used to avoid signal oscillations caused by sudden changes.
[0175] If the deviation is not eliminated after 10 consecutive adjustments after reaching the maximum resistance adjustment number, the control module can trigger an alarm, such as logging or lighting an LED (Light Emitting Diode). Regarding hot plug event response, when a slave device is detected to be connected or removed, a complete signal quality test and adjustment is immediately initiated.
[0176] Regarding the scenario where the number of slave devices increases, for example, in a smart home control system, the I2C bus connects multiple sensors (slave devices), such as temperature sensors, humidity sensors, and light sensors. As system functionality expands, several new slave devices are added, increasing the I2C bus load and causing signal quality to degrade.
[0177] According to an embodiment of the present application, the signal detection module can detect the timing signal of the I2C bus every 100ms. When a new slave device is connected, it detects that the setup time of the timing signal increases from 300ns to 550ns, exceeding the preset ideal range (200ns-500ns); the rise time increases from 120ns to 250ns, also exceeding the ideal range (100ns-200ns). The signal detection module transmits these detection values to the control module via the SPI interface.
[0178] After receiving the test values, the control module calculates the deviation of each test value. The setup time deviation is 550ns - 500ns = 50ns, and the rise time deviation is 250ns - 200ns = 50ns. Then, based on the preset weights (for example, a setup time weight of 0.3 and a rise time weight of 0.2), the combined deviation is calculated as: 50ns × 0.3 + 50ns × 0.2 = 15ns + 10ns = 25ns. Since the combined deviation is positive, it is determined that the drive capability needs to be increased.
[0179] Specifically, the control module sends a resistance reduction instruction to the controllable pull-up resistor, with the adjustment step size set to 10Ω. The controllable pull-up resistor reduces the current resistance from 100Ω to 90Ω.
[0180] The signal detection module again monitored the I2C bus signal and found that the setup time had dropped to 450ns and the rise time had dropped to 200ns. The integrated deviation value was recalculated and found to have decreased somewhat, but still not fully within the ideal range. The control module continued to control the controllable pull-up resistor to reduce its value, repeating the detection, analysis, and adjustment process until the detected value returned to the ideal range.
[0181] For intermittent load changes, consider a scenario where the I2C bus in a smart medical device connects multiple functional modules (slave devices). Some modules are intermittently turned on and off depending on the device's operating status, causing intermittent changes in the I2C bus load.
[0182] The signal detection module continuously monitors the I2C bus signal. When a module operating intermittently is turned on, it detects that the high hold time increases from 500ns to 700ns, exceeding the preset ideal range (400ns to 600ns). The signal detection module transmits the detected value to the control module.
[0183] The control module calculates the deviation of the high hold time as 700ns - 600ns = 100ns. Since the high hold time weight is 0.1, the combined deviation is 100ns x 0.1 = 10ns. This combined deviation is positive, indicating that the drive capability needs to be increased.
[0184] The control module sends a command to the controllable pull-up resistor to reduce its resistance in 10Ω increments. The controllable pull-up resistor reduces its resistance from 90Ω to 80Ω.
[0185] When the intermittently operating module is shut down, the signal detection module detects that the high hold time has dropped to 300ns, below the ideal range. The control module calculates the deviation as 400ns - 300ns = 100ns. The combined deviation is 100ns x 0.1 = 10ns (negative), and determines that the drive capability needs to be reduced. The control module increases the resistance of the controllable pull-up resistor from 80Ω to 90Ω. This continuous adaptive adjustment based on the module's operating status ensures stable signal quality on the I2C bus despite intermittent load fluctuations.
[0186] Based on the above, it can be seen that the control device and control method of the present application optimize the driving capability by monitoring the signal quality of the I2C bus in real time and adjusting the resistance of the pull-up resistor based on detection values such as setup time and hold time. Taking the server hot-swap scenario as an example, it can ensure stable signal quality when devices are connected or removed, avoid problems such as setup time exceeding the limit and signal jitter, prevent the system stability affected by signal quality degradation, and ensure stable system operation. By integrating the signal detection module and controllable pull-up resistor into a single chip design, the hardware design complexity is reduced and the PCB area occupied is reduced. At the same time, there is no need for manual frequent calculation and replacement of pull-up resistors, which reduces labor costs and the cost of system power outage time caused by resistor replacement, and improves the practicality and maintainability of the system. On this basis, it can adapt to various scenarios where the number of slave devices on the I2C bus changes frequently or intermittently, so that when the load changes intermittently, the driving capability can be automatically adjusted to keep the bus in a stable and efficient working state, broadening the applicability of the I2C bus in different application scenarios.
[0187] Those skilled in the art will appreciate that the features described in the various embodiments of this application may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in this application. In particular, the features described in the various embodiments of this application may be combined and / or coupled in various ways without departing from the spirit and teachings of this application. All such combinations and / or couplings fall within the scope of this application.
[0188] The embodiments of the present application have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present application. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be advantageously used in combination. Without departing from the scope of the present application, those skilled in the art may make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present application.
Claims
1. A control device, characterized in that: The control device includes: a signal detection module, wherein an input end of the signal detection module is connected to a target bus and is used to detect a timing signal of the target bus, wherein the target bus is used to electrically connect a master device with a plurality of slave devices; a control module, configured to generate a resistance adjustment signal according to a difference between a detected value of the timing signal and a preset range; A controllable pull-up resistor is electrically connected to the target bus and is used to adjust the resistance of the controllable pull-up resistor according to the resistance adjustment signal, wherein the controllable pull-up resistor is used to pull up the voltage of the signal line in the target bus to a preset level.
2. The control device according to claim 1, characterized in that The timing signal has multiple detection values, and the preset range includes multiple sub-ranges corresponding to the multiple detection values respectively; the control module is further configured to: For any one of the plurality of detection values, When any of the detection values is within the sub-range, determining a deviation value of the any of the detection values as a predetermined value; In a case where any of the detected values is outside the sub-range, a smaller difference between the detected value and an upper limit value and a lower limit value of the sub-range is determined as a deviation value; Obtaining a weighted value of any detection value according to the deviation value of any detection value and the weight of any detection value; Based on the weighted values of the plurality of detection values, a comprehensive deviation value is obtained.
3. The control device according to claim 2, characterized in that The signal detection module is further configured to: re-detect the timing signal of the target bus when the comprehensive deviation value is the predetermined value.
4. The control device according to claim 2, characterized in that The controllable pull-up resistor is also used to: When the comprehensive deviation value is inconsistent with the predetermined value, The resistance value of the controllable pull-up resistor is reduced or increased according to the resistance adjustment signal.
5. The control device according to claim 4, characterized in that The control module is further configured to: Repeat the following operations until the number of resistance adjustments is equal to the preset number, or the comprehensive deviation value is the predetermined value: sending the resistance adjustment signal to the controllable pull-up resistor to enable the controllable pull-up resistor to perform resistance adjustment.
6. The control device according to claim 5, characterized in that The signal detection module is further configured to: detect the timing signal of the target bus again when the controllable pull-up resistor completes resistance adjustment and the number of resistance adjustments is less than or equal to the preset number of times.
7. The control device according to claim 6, characterized in that The control module is further configured to issue an alarm message when the resistance adjustment times are greater than the preset times and the comprehensive deviation value is inconsistent with the predetermined value.
8. The control device according to any one of claims 1 to 7, characterized in that: The controllable pull-up resistor is further used to adjust the resistance value according to a preset resistance adjustment step.
9. The control device according to claim 1, characterized in that The control module and the controllable pull-up resistor are integrated.
10. The control device according to claim 1, characterized in that The signal detection module is further configured to detect a rise time and a fall time in the timing signal at a predetermined frequency; The control module is further configured to generate a resistance adjustment signal according to a difference between the rise time, the fall time and a preset range.
11. The control device according to claim 2, characterized in that The signal detection module includes a first storage unit, and the first storage unit is used to store the detection value of the timing signal; The control module includes a second storage unit configured to store respective sub-ranges and weights of a plurality of detection values.
12. The control device according to claim 11, characterized in that The signal detection module is further configured to obtain the detection value from the first storage unit and transmit the detection value to the control module.
13. A control method, applied to the control device according to any one of claims 1 to 12, characterized in that: The method comprises: Utilize the signal detection module to detect the timing signal of the target bus; generating, by a control module, a resistance adjustment signal according to a difference between a detected value of the timing signal and a preset range; The controllable pull-up resistor is utilized to adjust the resistance value of the controllable pull-up resistor according to the resistance adjustment signal.
14. The method according to claim 13, characterized in that The target bus is configured to transmit signals in an open-drain output manner.
15. The method according to claim 13, characterized in that The method further comprises: In case of a control device reset, Setting a detection frequency of the signal detection module, wherein the detection frequency is greater than a frequency of the target bus transmission signal; Setting the transmission rate and data format of the control module to support communication between the signal detection module and the controllable pull-up resistor; Set the initial resistance value of the controllable pull-up resistor.
Citation Information
Patent Citations
Dynamic regulation method and device for signal quality of I2C bus
CN107301147A
Pull-up resistor adjusting method, control chip and electronic equipment
CN112765064A
I2c bus system and method for selectively connecting in an i2c bus system a plurality of slaves to a master
EP4564183A1
I2C bus controller capable of automatic switchingoperation mode
KR1020050072502A
Bus energy consumption reduction apparatus and method
US20150205341A1
Cited By
I2C bus communication optimization method and device, equipment and storage medium
CN120892381A
An I2C bus communication optimization method, device, equipment and storage medium
CN120892381B
