An I / O interface multiplexing circuit and its control method, and electronic equipment.

By connecting the LED display driver interface to the anode and cathode of the light-emitting unit and using the display driver interface to output level combinations, the resource occupation problem caused by the independent interfaces of LED display driver and PWM driver is solved, realizing the reuse of I/O interface and cost reduction.

CN123124165APending Publication Date: 2026-11-17GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611586760.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-14
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In the existing technology, LED display drivers and PWM drivers usually use independent chip I/O interfaces, resulting in high chip resource consumption and high cost.

Method used

By connecting the PWM drive interface to the anode and cathode of all light-emitting units, and using the control signal output from the display drive interface to form different level combinations with the drive signal, the multiplexing of the PWM signal and the LED on/off state is realized, reducing the number of I/O interfaces.

Benefits of technology

It effectively reduces the number of I/O interfaces, lowers chip resource consumption and overall cost, while enabling control of multiple light-emitting units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123124165A_ABST
    Figure CN123124165A_ABST
Patent Text Reader

Abstract

This application relates to the field of chip interface multiplexing technology, and discloses an I / O interface multiplexing circuit and its control method, as well as an electronic device. The circuit includes: a controller, at least one first light-emitting unit, and at least one second light-emitting unit, wherein each first light-emitting unit and each second light-emitting unit has an anode and a cathode; the PWM drive interface of the controller is connected to the anodes of all first light-emitting units, the cathodes of all second light-emitting units, and the load, respectively; the display drive interface of the controller is connected to the cathodes of all first light-emitting units and the anodes of all second light-emitting units, respectively. This application multiplexes the PWM drive interface as a load drive and a light-emitting unit drive source. The display drive interface outputs a control signal and a drive signal to form different level combinations to control the on / off state of multiple light-emitting units connected in reverse. No separate I / O interface is required, thereby reducing the number of interfaces and lowering chip resource consumption and cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of chip interface multiplexing technology, specifically to an I / O interface multiplexing circuit and its control method, and electronic equipment. Background Technology

[0002] In related technologies, LED (Light-Emitting Diode) display drivers and PWM (Pulse Width Modulation) drivers typically use independent chip I / O (Input / Output) interfaces. For example, an LED indicator is controlled by a separate I / O interface, while a PWM load is controlled by a PWM signal output from another I / O interface. If controlling two LEDs and one PWM output is required, three chip I / O interfaces are usually needed. As chip functionality increases, I / O interface resources become scarce, and using independent I / O interfaces leads to higher chip resource consumption and higher costs. Summary of the Invention

[0003] This application provides an I / O interface multiplexing circuit and its control method, as well as an electronic device, to solve the problem of excessive chip I / O interface resource consumption in related technologies.

[0004] In a first aspect, this application provides an I / O interface multiplexing circuit, the circuit comprising: a controller, at least one first light-emitting unit, and at least one second light-emitting unit, wherein, Each of the first light-emitting unit and each of the second light-emitting units has an anode and a cathode; The controller's PWM drive interface is connected to the anodes of all first light-emitting units, the cathodes of all second light-emitting units, and the load, respectively. The display driver interface of the controller is connected to the cathodes of all the first light-emitting units and the anodes of all the second light-emitting units, respectively. The PWM drive interface is used to output a drive signal, which is output to the load connected to the PWM drive interface and serves as the drive signal source for the first light-emitting unit and the second light-emitting unit. The display driver interface is used to output control signals. The driver signals and the control signals form different level combinations to control the first light-emitting unit and the second light-emitting unit to present different on / off states.

[0005] In an optional implementation, when the drive signal is a PWM signal: If the target illumination state is that the first light-emitting unit is on and the second light-emitting unit is off, then the display driver interface is controlled to continuously output a low level, so that the first light-emitting unit is turned on and lit when the PWM signal is high. If the target illumination state is such that the second light-emitting unit is on and the first light-emitting unit is off, then the display driver interface is controlled to continuously output a high level, so that the second light-emitting unit is turned on and lit when the PWM signal is low.

[0006] In an optional implementation, when the drive signal is a PWM signal: If the target's on / off state is that the first light-emitting unit and the second light-emitting unit are both on, then the control signal output by the display driver interface is reversed with the PWM signal, so that the first light-emitting unit lights up when the PWM signal is high and the second light-emitting unit lights up when the PWM signal is low. If the target illumination state is that the first light-emitting unit and the second light-emitting unit are both off, then the control signal output by the display driver interface is in phase with the PWM signal, so that the first light-emitting unit and the second light-emitting unit are both off when the PWM signal is high or low.

[0007] In one alternative implementation, when the drive signal is at a fixed level: If the target's on / off state is that the second light-emitting unit is on and the first light-emitting unit is off, then the PWM drive interface is controlled to output a low level and the display drive interface is controlled to output a high level. If the target illumination state is that the first light-emitting unit is on and the second light-emitting unit is off, then the PWM drive interface is controlled to output a high level and the display drive interface is controlled to output a low level. If the target illumination state is such that both the first and second light-emitting units are off, then the PWM drive interface and the display drive interface are controlled to output a high level or a low level simultaneously.

[0008] In one alternative implementation, Each of the first light-emitting units includes: a first light-emitting diode and a first resistor, wherein the anode of the first light-emitting diode is connected to the PWM drive interface of the controller, the cathode of the first light-emitting diode is connected to one end of the first resistor, and the other end of the first resistor is connected to the display drive interface of the controller; Each of the second light-emitting units includes a second light-emitting diode and a second resistor, wherein the cathode of the second light-emitting diode is connected to the PWM drive interface of the controller, the anode of the second light-emitting diode is connected to one end of the second resistor, and the other end of the second resistor is connected to the display drive interface of the controller.

[0009] Secondly, this application provides a control method for an I / O interface multiplexing circuit. Based on the I / O interface multiplexing circuit of the first aspect above or any corresponding embodiment, the control method includes: The PWM drive interface is controlled to output a drive signal, which is output to the load connected to the PWM drive interface and serves as the drive signal source for the first and second light-emitting units. Based on the target on / off state of the first and second light-emitting units, the display driver interface is controlled to output a control signal, so that the drive signal and the control signal form a corresponding level combination.

[0010] In an optional implementation, when the driving signal is a PWM signal, according to the target on / off state of the first and second light-emitting units, the display driving interface is controlled to output a control signal, so that the driving signal and the control signal form a corresponding level combination, including: If the target on / off state is that the first light-emitting unit is on and the second light-emitting unit is off, then the display driver interface is controlled to continuously output a low level, so that the first light-emitting unit is turned on and lit when the PWM signal is high. If the target on / off state is that the second light-emitting unit is on and the first light-emitting unit is off, then the display driver interface is controlled to continuously output a high level, so that the second light-emitting unit is turned on and lit when the PWM signal is low.

[0011] In an optional implementation, when the driving signal is a PWM signal, according to the target on / off state of the first and second light-emitting units, the display driving interface is controlled to output a control signal, so that the driving signal and the control signal form a corresponding level combination, further comprising: If the target on / off state is that the first light-emitting unit and the second light-emitting unit are lit at the same time, then the control signal output by the display driver interface is reversed with the PWM signal, so that the first light-emitting unit lights up when the PWM signal is high and the second light-emitting unit lights up when the PWM signal is low. If the target illumination state is that the first light-emitting unit and the second light-emitting unit are both off, then the control signal output by the display driver interface is in phase with the PWM signal, so that the first light-emitting unit and the second light-emitting unit are both off when the PWM signal is high or low.

[0012] In one optional implementation, when the driving signal is at a fixed level, the display driving interface is controlled to output a control signal according to the target on / off state of the first and second light-emitting units, so that the driving signal and the control signal form a corresponding level combination, including: If the target illumination state is such that the second light-emitting unit is on and the first light-emitting unit is off, then the PWM drive interface is controlled to output a low level and the display drive interface is controlled to output a high level. If the target illumination state is such that the first light-emitting unit is on and the second light-emitting unit is off, then the PWM drive interface is controlled to output a high level and the display drive interface is controlled to output a low level. If the target illumination state is such that both the first and second light-emitting units are off, then the PWM drive interface and the display drive interface are controlled to output a high level or a low level simultaneously.

[0013] Thirdly, this application provides an electronic device including the I / O interface multiplexing circuit of the first aspect or any corresponding embodiment described above.

[0014] The technical solution provided in this application has at least the following beneficial effects: This application connects the PWM drive interface to the anodes of all first light-emitting units, the cathodes of all second light-emitting units, and the load, respectively. This allows the PWM drive interface to simultaneously output drive signals to drive the load and serve as the drive signal source for the first and second light-emitting units. The display drive interface outputs control signals, forming different level combinations with the drive signals. Since the first and second light-emitting units are connected to the two interfaces in reverse order, their responses to different level combinations differ. Therefore, by controlling the display drive interface alone, the first and second light-emitting units can present different on / off states. Thus, the PWM drive interface achieves multiplexing of load drive and light-emitting unit drive. The display drive interface can simultaneously control multiple light-emitting units without requiring a dedicated I / O interface for each unit, effectively reducing the number of required I / O interfaces, lowering chip resource consumption, and reducing overall cost. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0016] Figure 1 This is the circuit schematic diagram of LED display driver and PWM driver in the relevant technical solution; Figure 2 This is a schematic block diagram of an I / O interface multiplexing circuit according to an embodiment of this application; Figure 3 This is a schematic diagram of an I / O interface multiplexing circuit according to an embodiment of this application; Figure 4 This is a logic control diagram of the LED display driver and PWM driver circuit according to an embodiment of this application; Figure 5 This is a flowchart of a control method for an I / O interface multiplexing circuit according to an embodiment of this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0018] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0019] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0020] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal connection of two components; and they can refer to a wireless connection or a wired connection. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0021] like Figure 1 The diagram shown illustrates the circuit schematics for the LED display driver and PWM driver in the relevant technical solution. In this solution, the LED display driver and PWM driver use independent chip I / O interfaces.

[0022] like Figure 1As shown, the anode of LED D0 is connected to the positive terminal of the power supply, and the cathode is connected to one end of the current-limiting resistor R0. The other end of the current-limiting resistor R0 is connected to the display driver interface LEDEN of the chip. When LED D0 needs to be lit, the chip controls the display driver interface LEDEN to output a low level. At this time, the anode potential of LED D0 is higher than the cathode potential, and LED D0 conducts and lights up. When LED D0 does not need to be lit, the chip controls the display driver interface LEDEN to output a high level. At this time, there is no sufficient positive voltage between the anode and cathode of LED D0, and LED D0 is turned off.

[0023] The chip's PWM driver interface directly outputs a PWM signal to drive loads that require PWM signal control, such as DC motors and stepper motors. This PWM signal is independent of the LED display driver and is used solely for controlling the PWM load.

[0024] Therefore, in the relevant technical solutions, if it is necessary to control two LEDs and one PWM output, three chip I / O interfaces are required: two I / O interfaces are used to control the on / off state of the two LEDs respectively, and one I / O interface is used to output the PWM signal. The LED display driver and the PWM driver are independent of each other and cannot share I / O interfaces, resulting in a large number of chip I / O interfaces, high chip resource consumption, and high overall cost.

[0025] In view of this, this application provides an I / O interface multiplexing circuit and its control method, which multiplexes LED display driver and PWM driver, and realizes PWM signal output and LED driving simultaneously through the same PWM driver interface, and controls the on / off state of multiple LEDs in conjunction with the display driver interface, thereby reducing the number of required I / O interfaces, reducing chip resource consumption and overall cost.

[0026] like Figure 2 As shown, this application provides an I / O interface multiplexing circuit, including: a controller, at least one first light-emitting unit, and at least one second light-emitting unit. Each first light-emitting unit and each second light-emitting unit has an anode and a cathode; the controller's PWM drive interface is connected to the anodes of all first light-emitting units, the cathodes of all second light-emitting units, and a load, respectively; the controller's display drive interface is connected to the cathodes of all first light-emitting units and the anodes of all second light-emitting units, respectively.

[0027] The PWM drive interface is used to output drive signals, which are then output to the load connected to the PWM drive interface and serve as the drive signal source for the first and second light-emitting units. The display drive interface is used to output control signals, which, together with the drive signals, form different level combinations to control the first and second light-emitting units to exhibit different on / off states.

[0028] Specifically, the controller outputs a drive signal through the PWM drive interface. This drive signal is used to drive the load connected to the PWM drive interface and also serves as the drive signal source for the first and second light-emitting units. The controller also outputs control signals through the display drive interface.

[0029] Because the first and second light-emitting units have opposite connection directions relative to the PWM drive interface and the display drive interface, their responses to the same voltage level combination differ. When the drive signal and control signal are in different voltage level combinations, at least one of the first and second light-emitting units will be forward-biased and conduct, or both will be reverse-biased and cut off, thus exhibiting different on / off states. Furthermore, when multiple first and / or multiple second light-emitting units are included, the same type of light-emitting units will conduct or cut off simultaneously due to their identical connection directions, exhibiting the same on / off state.

[0030] For example, under one level combination, the first light-emitting unit can be turned on while the second light-emitting unit is turned off; under another level combination, the second light-emitting unit can be turned on while the first light-emitting unit is turned off; under yet another level combination, both can be turned on or off simultaneously. The controller adjusts the output of the drive signal and control signal according to actual needs, thereby controlling the first and second light-emitting units to present the desired on / off combination.

[0031] Since the PWM drive interface can drive the load by outputting drive signals, it can also be used as the drive signal source for the first and second light-emitting units. Therefore, there is no need to set up a dedicated PWM drive interface for the first and second light-emitting units. Only one display drive interface needs to be added to control the two light-emitting units, thereby reducing the number of I / O interfaces, realizing I / O interface multiplexing, and reducing chip resource consumption and cost.

[0032] Optionally, the load can be a DC motor, stepper motor, fan motor, etc., that requires PWM signal drive. The first light-emitting unit and the second light-emitting unit can be light-emitting elements such as light-emitting diodes (LEDs). The controller can be a microcontroller, digital signal processor, or application-specific integrated circuit, etc., and this application does not limit it.

[0033] This application connects the PWM drive interface to the anodes of all first light-emitting units, the cathodes of all second light-emitting units, and the load, respectively. This allows the PWM drive interface to simultaneously output drive signals to drive the load and serve as the drive signal source for the first and second light-emitting units. The display drive interface outputs control signals, forming different level combinations with the drive signals. Since the first and second light-emitting units are connected to the two interfaces in reverse order, their responses to different level combinations differ. Therefore, by controlling the display drive interface alone, the first and second light-emitting units can present different on / off states. Thus, the PWM drive interface achieves multiplexing of load drive and light-emitting unit drive. The display drive interface can simultaneously control multiple light-emitting units without requiring a dedicated I / O interface for each unit, effectively reducing the number of required I / O interfaces, lowering chip resource consumption, and reducing overall cost.

[0034] In one optional implementation, the first light-emitting units have the same structure, and the second light-emitting units have the same structure. For example... Figure 3 As shown, taking a first light-emitting unit and a second light-emitting unit as an example. The first light-emitting unit includes a first light-emitting diode D1 and a first resistor R1, wherein the anode of the first light-emitting diode D1 is connected to the PWM drive interface of the controller, the cathode of the first light-emitting diode D1 is connected to one end of the first resistor R1, and the other end of the first resistor R1 is connected to the display drive interface of the controller. The second light-emitting unit includes a second light-emitting diode D2 and a second resistor R2, wherein the cathode of the second light-emitting diode D2 is connected to the PWM drive interface of the controller, the anode of the second light-emitting diode D2 is connected to one end of the second resistor R2, and the other end of the second resistor R2 is connected to the display drive interface of the controller.

[0035] Specifically, the first LED D1 and the second LED D2 are connected in reverse between the PWM drive interface and the display drive interface, and the first resistor R1 and the second resistor R2 are used to limit the current flowing through the first LED D1 and the second LED D2, respectively.

[0036] When the PWM driver interface outputs a PWM signal, the on / off state of the first LED D1 and the second LED D2 can be controlled by adjusting the output level of the display driver interface. For example, by continuously outputting a low or high level from the display driver interface, or by making the control signal output by the display driver interface in phase or out of phase with the PWM signal, different on / off combinations can be achieved for the first LED D1 and the second LED D2. Because the PWM signal frequency is usually high, and the human eye has a persistence of vision effect, the rapid alternation of on / off states of the first LED D1 and the second LED D2 appears to the human eye as a stable on or off state.

[0037] When multiple first light-emitting units and / or multiple second light-emitting units are included, the first light-emitting units can be connected in parallel in the same way, and the second light-emitting units can also be connected in parallel in the same way. Since light-emitting units of the same type have the same connection direction, they will simultaneously turn on or off, exhibiting the same on / off state. Therefore, multiple light-emitting units can be controlled using only two I / O interfaces: the PWM drive interface and the display drive interface. Simultaneously, the PWM drive interface can also be used to output drive signals to drive the load, thereby achieving I / O interface multiplexing, reducing the number of I / O interfaces, and lowering chip resource consumption and cost.

[0038] In one alternative implementation, when the drive signal is a PWM signal: If the target's on / off state is that the first light-emitting unit is on and the second light-emitting unit is off, then the control display driver interface continuously outputs a low level, so that the first light-emitting unit is turned on and lit when the PWM signal is high. If the target's on / off state is such that the second light-emitting unit is on and the first light-emitting unit is off, then the control display driver interface continuously outputs a high level, causing the second light-emitting unit to conduct and light up when the PWM signal is low.

[0039] Specifically, when the drive signal is a PWM signal, combined with Figure 4 As shown in the waveform diagram, the PWM signal remains low during the standby phases 1 and 6, and the control signal output from the display driver interface also remains low. During this time, neither the first LED D1 nor the second LED D2 is lit. Starting from phase 2, the PWM signal alternates between high and low levels: phase 2 is high, phase 3 is low, phase 4 is high, phase 5 is low, and so on.

[0040] If the target's on / off state is that the first LED D1 is on and the second LED D2 is off, then the controller controls the display driver interface to continuously output a low level, such as... Figure 4 The control signal waveform corresponding to "D1 on, D2 off" is shown in the diagram. In stage 2, the PWM signal is high and the control signal is low. The first LED D1 is forward-biased and conducts, while the second LED D2 is reverse-biased and cut off. In stage 3, the PWM signal is low and the control signal remains low, so neither LED D1 nor LED D2 conducts. Stages 4 and 5 repeat the processes of stages 2 and 3. Because the frequency of the PWM signal is usually high, the human eye has a persistence of vision effect. Therefore, what the human eye actually observes is that the first LED D1 remains lit while the second LED D2 remains off.

[0041] If the target's on / off state is such that the second LED D2 is on and the first LED D1 is off, then the controller controls the display driver interface to continuously output a high level, such as... Figure 4 The control signal waveforms corresponding to "D1 off, D2 on" are shown in the diagram. In stage 2, the PWM signal is high, the control signal is high, and both LEDs D1 and D2 are off. In stage 3, the PWM signal is low, the control signal is high, LED D2 is forward-biased and turns on, while LED D1 is reverse-biased and turns off. Stages 4 and 5 repeat the processes of stages 2 and 3. Due to the high-frequency alternation of the PWM signal and the persistence of vision, the human eye actually observes that LED D2 remains continuously lit, while LED D1 remains off.

[0042] In this way, while the PWM drive interface outputs a PWM signal, the display drive interface can be controlled to continuously output a low level or a high level, thereby enabling the control of one of the first LEDs D1 and the second LED D2 to light up while the other is turned off. This reduces the number of I / O interfaces while meeting the control requirements of multiple light-emitting units.

[0043] In one alternative implementation, when the drive signal is a PWM signal: If the target's on / off state is that the first and second light-emitting units are lit simultaneously, then the control signal output by the control display driver interface is inverted with the PWM signal, so that the first light-emitting unit lights up when the PWM signal is high and the second light-emitting unit lights up when the PWM signal is low. If the target illumination state is that the first and second light-emitting units are both off, then the control signal output by the control display driver interface is in phase with the PWM signal, so that the first and second light-emitting units are both off when the PWM signal is high or low.

[0044] Specifically, when the drive signal is a PWM signal, combined with Figure 4 The waveform diagram shows that the PWM signal is high in stages 2 and 4, low in stages 3 and 5, and low in stages 1 and 6, which are standby stages.

[0045] If the target's on / off state is that both the first LED D1 and the second LED D2 are lit simultaneously, then the control signal output from the controller's display driver interface is inverted compared to the PWM signal. Figure 4The control signal waveform corresponding to "D1 and D2 lighting up simultaneously" is shown in the diagram. In stage 2, the PWM signal is high and the control signal is low. The first LED D1 is forward-biased and lit, while the second LED D2 is reverse-biased and cut off. In stage 3, the PWM signal is low and the control signal is high. The second LED D2 is forward-biased and lit, while the first LED D1 is reverse-biased and cut off. Stages 4 and 5 repeat the processes of stages 2 and 3. Because the frequency of the PWM signal is usually high, the human eye has a persistence of vision effect; therefore, what the human eye actually observes is that the first LED D1 and the second LED D2 are continuously lit up simultaneously.

[0046] If the target's on / off state is that both the first LED D1 and the second LED D2 are off, then the control signal output by the controller's display driver interface is in phase with the PWM signal, such as... Figure 4 The control signal waveform corresponding to "D1 and D2 are both off" is shown in the diagram. In stage 2, the PWM signal is high, and the control signal is also high, so neither the first LED D1 nor the second LED D2 is conducting. In stage 3, the PWM signal is low, and the control signal is also low, so neither the first LED D1 nor the second LED D2 is conducting. Stages 4 and 5 repeat the processes of stages 2 and 3 respectively. Therefore, the first LED D1 and the second LED D2 remain off throughout.

[0047] In this way, while the PWM drive interface outputs the PWM signal, the control signal output by the display drive interface and the PWM signal are controlled to achieve the simultaneous lighting or extinguishing of the first LED D1 and the second LED D2, thereby reducing the number of I / O interfaces while meeting the control requirements of multiple light-emitting units.

[0048] In one alternative implementation, when the drive signal is at a fixed level: If the target's on / off state is that the second light-emitting unit is on and the first light-emitting unit is off, then the control PWM drive interface outputs a low level and the display drive interface outputs a high level. If the target's on / off state is that the first light-emitting unit is on and the second light-emitting unit is off, then the control PWM drive interface outputs a high level and the display drive interface outputs a low level. If the target's on / off state is such that both the first and second light-emitting units are off, then the control PWM drive interface and the display drive interface will simultaneously output a high level or simultaneously output a low level.

[0049] Specifically, when the drive signal is at a fixed level, both the PWM drive interface and the display drive interface output constant level signals, instead of outputting alternating PWM signals. At this time, the on / off state of the first LED D1 and the second LED D2 is directly determined by the fixed level combination between the PWM drive interface and the display drive interface.

[0050] If the target illumination state is such that the second LED D2 is on and the first LED D1 is off, the controller keeps the PWM drive interface at a low level and the display drive interface at a high level. At this time, the second LED D2 is forward-biased and conducts, while the first LED D1 is reverse-biased and cut off. Therefore, the second LED D2 remains on and the first LED D1 remains off.

[0051] If the target illumination state is such that the first LED D1 is on and the second LED D2 is off, the controller keeps the PWM drive interface at a high level and the display drive interface at a low level. At this time, the first LED D1 is forward-biased and conducts, while the second LED D2 is reverse-biased and cut off. Therefore, the first LED D1 remains on, and the second LED D2 remains off.

[0052] If the target illumination state is such that both the first LED D1 and the second LED D2 are off, the controller will simultaneously output a high level or a low level on both the PWM drive interface and the display drive interface. Regardless of the combination, neither the first LED D1 nor the second LED D2 can withstand a forward voltage, therefore both will remain off.

[0053] Therefore, when the PWM drive interface does not output a PWM signal, the first LED D1 and the second LED D2 can be selectively lit or simultaneously turned off by controlling the fixed level combination of the PWM drive interface and the display drive interface. This reduces the number of I / O interfaces while meeting the control requirements of multiple light-emitting units in standby or fixed states.

[0054] In one optional implementation, since the first LED D1 and the second LED D2 cannot be lit simultaneously when there is no PWM signal output, either the first LED D1 or the second LED D2 can be selected as the status indicator of the PWM signal. For example, the first LED D1 can be selected as the status indicator of the PWM signal: when the PWM drive interface outputs a PWM signal, the first LED D1 is controlled to light up; when the PWM drive interface has no PWM signal output, the first LED D1 is controlled to turn off. Thus, the presence or absence of a PWM signal output can be intuitively determined through the first LED D1.

[0055] In a specific application scenario, the PWM signal is used to drive the fan motor. The first LED D1 serves as a fan speed indicator, and the second LED D2 serves as an indicator for other functions, such as the negative ion switch. When a PWM signal is output, the fan motor rotates, and the first LED D1 illuminates to indicate the current speed. Simultaneously, depending on whether the negative ion function is enabled, the second LED D2 is either illuminated or turned off. When there is no PWM signal output, the fan motor does not rotate, and the first LED D1 remains off; however, the second LED D2 can still be illuminated depending on whether the negative ion function is enabled. For example, when the negative ion function is enabled, the PWM drive interface outputs a low level, and the display drive interface outputs a high level, illuminating the second LED D2. When the negative ion function is disabled, both the PWM drive interface and the display drive interface output a high level simultaneously or both output a low level simultaneously, illuminating the second LED D2.

[0056] Therefore, without increasing the number of I / O interfaces, it achieves both PWM load drive and multiple light-emitting unit multiplexing control, and can also indicate the working status of the PWM signal through one of the light-emitting units, overcoming the limitation that two light-emitting units cannot be lit at the same time when there is no PWM signal.

[0057] This application provides a control method for an I / O interface multiplexing circuit, based on the aforementioned I / O interface multiplexing circuit, such as... Figure 5 As shown, the control method includes the following steps: Step S1: Control the PWM drive interface to output a drive signal, which serves as the drive signal source for the first and second light-emitting units.

[0058] Specifically, the controller outputs a drive signal through its PWM drive interface. This drive signal can be directly transmitted to the first and second light-emitting units, providing driving energy to them. The drive signal can be a PWM signal or a fixed-level signal, depending on the actual control requirements. Since both the first and second light-emitting units are connected to this PWM drive interface, the PWM drive interface, while outputting the drive signal, also serves as the drive signal source for both units, thus achieving I / O interface multiplexing.

[0059] Step S2: Based on the target on / off state of the first and second light-emitting units, control the display driver interface to output a control signal, so that the drive signal and the control signal form a corresponding level combination.

[0060] Specifically, the controller controls the display driver interface to output corresponding control signals based on the desired on / off state of the first and second light-emitting units. Since the first and second light-emitting units are connected in opposite directions relative to the PWM drive interface and the display driver interface, their responses to the same level combination differ. The drive signal and control signal together constitute different level combinations, causing the first and second light-emitting units to experience positive or reverse voltages respectively, thus exhibiting a conducting or cut-off state. Therefore, by adjusting the control signal output from the display driver interface to form a level combination corresponding to the target on / off state with the drive signal output from the PWM drive interface, the controller can control the first and second light-emitting units to achieve the expected on / off state.

[0061] Through the above steps, the control method can control the on / off state of the first and second light-emitting units by outputting the corresponding control signal through the display drive interface while outputting the drive signal through the PWM drive interface. This eliminates the need to set up a dedicated drive interface for each light-emitting unit, thereby reducing the number of I / O interfaces and lowering chip resource consumption and cost.

[0062] In one optional implementation, when the driving signal is a PWM signal, the display driving interface outputs a control signal according to the target on / off state of the first and second light-emitting units, so that the driving signal and the control signal form a corresponding level combination, including: If the target's on / off state is that the first light-emitting unit is on and the second light-emitting unit is off, then the control display driver interface continuously outputs a low level, so that the first light-emitting unit is turned on and lit when the PWM signal is high. If the target's on / off state is such that the second light-emitting unit is on and the first light-emitting unit is off, then the control display driver interface continuously outputs a high level, causing the second light-emitting unit to conduct and light up when the PWM signal is low.

[0063] Specifically, when the drive signal is a PWM signal, combined with Figure 4 As shown in the waveform diagram, the PWM signal remains low during the standby phases 1 and 6, and the control signal output from the display driver interface also remains low. During this time, neither the first LED D1 nor the second LED D2 is lit. Starting from phase 2, the PWM signal alternates between high and low levels: phase 2 is high, phase 3 is low, phase 4 is high, phase 5 is low, and so on.

[0064] If the target's on / off state is that the first LED D1 is on and the second LED D2 is off, then the controller controls the display driver interface to continuously output a low level, such as... Figure 4The control signal waveform corresponding to "D1 on, D2 off" is shown in the diagram. In stage 2, the PWM signal is high and the control signal is low. The first LED D1 is forward-biased and conducts, while the second LED D2 is reverse-biased and cut off. In stage 3, the PWM signal is low and the control signal remains low, so neither LED D1 nor LED D2 conducts. Stages 4 and 5 repeat the processes of stages 2 and 3. Because the frequency of the PWM signal is usually high, the human eye has a persistence of vision effect. Therefore, what the human eye actually observes is that the first LED D1 remains lit while the second LED D2 remains off.

[0065] If the target's on / off state is such that the second LED D2 is on and the first LED D1 is off, then the controller controls the display driver interface to continuously output a high level, such as... Figure 4 The control signal waveforms corresponding to "D1 off, D2 on" are shown in the diagram. In stage 2, the PWM signal is high, the control signal is high, and both LEDs D1 and D2 are off. In stage 3, the PWM signal is low, the control signal is high, LED D2 is forward-biased and turns on, while LED D1 is reverse-biased and turns off. Stages 4 and 5 repeat the processes of stages 2 and 3. Due to the high-frequency alternation of the PWM signal and the persistence of vision, the human eye actually observes that LED D2 remains continuously lit, while LED D1 remains off.

[0066] In this way, while the PWM drive interface outputs a PWM signal, the display drive interface can be controlled to continuously output a low level or a high level, thereby enabling the control of one of the first LEDs D1 and the second LED D2 to light up while the other is turned off. This reduces the number of I / O interfaces while meeting the control requirements of multiple light-emitting units.

[0067] In an optional implementation, when the driving signal is a PWM signal, the display driving interface outputs a control signal according to the target on / off state of the first and second light-emitting units, so that the driving signal and the control signal form a corresponding level combination, and further includes: If the target's on / off state is that the first and second light-emitting units are lit simultaneously, then the control signal output by the control display driver interface is inverted with the PWM signal, so that the first light-emitting unit lights up when the PWM signal is high and the second light-emitting unit lights up when the PWM signal is low. If the target illumination state is that the first and second light-emitting units are both off, then the control signal output by the control display driver interface is in phase with the PWM signal, so that the first and second light-emitting units are both off when the PWM signal is high or low.

[0068] Specifically, when the drive signal is a PWM signal, combined with Figure 4 The waveform diagram shows that the PWM signal is high in stages 2 and 4, low in stages 3 and 5, and low in stages 1 and 6, which are standby stages.

[0069] If the target's on / off state is that both the first LED D1 and the second LED D2 are lit simultaneously, then the control signal output from the controller's display driver interface is inverted compared to the PWM signal. Figure 4 The control signal waveform corresponding to "D1 and D2 lighting up simultaneously" is shown in the diagram. In stage 2, the PWM signal is high and the control signal is low. The first LED D1 is forward-biased and lit, while the second LED D2 is reverse-biased and cut off. In stage 3, the PWM signal is low and the control signal is high. The second LED D2 is forward-biased and lit, while the first LED D1 is reverse-biased and cut off. Stages 4 and 5 repeat the processes of stages 2 and 3. Because the frequency of the PWM signal is usually high, the human eye has a persistence of vision effect; therefore, what the human eye actually observes is that the first LED D1 and the second LED D2 are continuously lit up simultaneously.

[0070] If the target's on / off state is that both the first LED D1 and the second LED D2 are off, then the control signal output by the controller's display driver interface is in phase with the PWM signal, such as... Figure 4 The control signal waveform corresponding to "D1 and D2 are both off" is shown in the diagram. In stage 2, the PWM signal is high, and the control signal is also high, so neither the first LED D1 nor the second LED D2 is conducting. In stage 3, the PWM signal is low, and the control signal is also low, so neither the first LED D1 nor the second LED D2 is conducting. Stages 4 and 5 repeat the processes of stages 2 and 3 respectively. Therefore, the first LED D1 and the second LED D2 remain off throughout.

[0071] In this way, while the PWM drive interface outputs the PWM signal, the control signal output by the display drive interface and the PWM signal are controlled to achieve the simultaneous lighting or extinguishing of the first LED D1 and the second LED D2, thereby reducing the number of I / O interfaces while meeting the control requirements of multiple light-emitting units.

[0072] In one optional implementation, when the driving signal is at a fixed level, the display driving interface outputs a control signal according to the target on / off state of the first and second light-emitting units, so that the driving signal and the control signal form a corresponding level combination, including: If the target's on / off state is that the second light-emitting unit is on and the first light-emitting unit is off, then the control PWM drive interface outputs a low level and the display drive interface outputs a high level. If the target's on / off state is that the first light-emitting unit is on and the second light-emitting unit is off, then the control PWM drive interface outputs a high level and the display drive interface outputs a low level. If the target's on / off state is such that both the first and second light-emitting units are off, then the control PWM drive interface and the display drive interface will simultaneously output a high level or simultaneously output a low level.

[0073] When the drive signal is at a fixed level, both the PWM drive interface and the display drive interface output constant level signals, instead of outputting alternating PWM signals. At this time, the on / off state of the first LED D1 and the second LED D2 is directly determined by the fixed level combination between the PWM drive interface and the display drive interface.

[0074] If the target illumination state is such that the second LED D2 is on and the first LED D1 is off, the controller keeps the PWM drive interface at a low level and the display drive interface at a high level. At this time, the second LED D2 is forward-biased and conducts, while the first LED D1 is reverse-biased and cut off. Therefore, the second LED D2 remains on and the first LED D1 remains off.

[0075] If the target illumination state is such that the first LED D1 is on and the second LED D2 is off, the controller keeps the PWM drive interface at a high level and the display drive interface at a low level. At this time, the first LED D1 is forward-biased and conducts, while the second LED D2 is reverse-biased and cut off. Therefore, the first LED D1 remains on, and the second LED D2 remains off.

[0076] If the target illumination state is such that both the first LED D1 and the second LED D2 are off, the controller will simultaneously output a high level or a low level on both the PWM drive interface and the display drive interface. Regardless of the combination, neither the first LED D1 nor the second LED D2 can withstand a forward voltage, therefore both will remain off.

[0077] Therefore, when the PWM drive interface does not output a PWM signal, the first LED D1 and the second LED D2 can be selectively lit or simultaneously turned off by controlling the fixed level combination of the PWM drive interface and the display drive interface. This reduces the number of I / O interfaces while meeting the control requirements of multiple light-emitting units in standby or fixed states.

[0078] This application provides an electronic device including the aforementioned I / O interface multiplexing circuit.

[0079] Specifically, the electronic device can be a fan, air conditioner, motor drive device, household appliance, or other electronic device that requires PWM drive and light indication. The specific structure, connection relationship, and control method of the I / O interface multiplexing circuit have been described in detail in the foregoing embodiments and will not be repeated here.

[0080] The PWM drive interface in electronic devices is used to connect loads, such as fan motors, DC motors, or stepper motors; the first and second light-emitting units serve as function indicator lights for the electronic devices. Because the I / O interface multiplexing circuit can control multiple light-emitting units while driving the load, the electronic device does not need a dedicated I / O interface for each light-emitting unit, thus reducing the number of chip I / O interfaces, lowering chip resource consumption, and reducing overall cost.

[0081] The electronic device controls the first and second light-emitting units to display different on / off states based on whether the PWM drive interface outputs a PWM signal and the control signal output by the display drive interface, in order to indicate the operating or functional status of the electronic device. For example, in a fan motor drive application, the first light-emitting unit can be used as a gear indicator, and the second light-emitting unit can be used as another function indicator.

[0082] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. An I / O interface multiplexing circuit, characterized in that, The circuit includes: a controller, at least one first light-emitting unit, and at least one second light-emitting unit, wherein, Each of the first light-emitting unit and each of the second light-emitting units has an anode and a cathode; The controller's PWM drive interface is connected to the anodes of all first light-emitting units, the cathodes of all second light-emitting units, and the load, respectively. The display driver interface of the controller is connected to the cathodes of all the first light-emitting units and the anodes of all the second light-emitting units, respectively. The PWM drive interface is used to output a drive signal, which is output to the load connected to the PWM drive interface and serves as the drive signal source for the first light-emitting unit and the second light-emitting unit. The display driver interface is used to output control signals. The driver signals and the control signals form different level combinations to control the first light-emitting unit and the second light-emitting unit to present different on / off states.

2. The I / O interface multiplexing circuit according to claim 1, characterized in that, When the driving signal is a PWM signal: If the target illumination state is that the first light-emitting unit is on and the second light-emitting unit is off, then the display driver interface is controlled to continuously output a low level, so that the first light-emitting unit is turned on and lit when the PWM signal is high. If the target illumination state is such that the second light-emitting unit is on and the first light-emitting unit is off, then the display driver interface is controlled to continuously output a high level, so that the second light-emitting unit is turned on and lit when the PWM signal is low.

3. The I / O interface multiplexing circuit according to claim 1, characterized in that, When the driving signal is a PWM signal: If the target's on / off state is that the first light-emitting unit and the second light-emitting unit are both on, then the control signal output by the display driver interface is reversed with the PWM signal, so that the first light-emitting unit lights up when the PWM signal is high and the second light-emitting unit lights up when the PWM signal is low. If the target illumination state is that the first light-emitting unit and the second light-emitting unit are both off, then the control signal output by the display driver interface is in phase with the PWM signal, so that the first light-emitting unit and the second light-emitting unit are both off when the PWM signal is high or low.

4. The I / O interface multiplexing circuit according to claim 1, characterized in that, When the drive signal is at a fixed level: If the target's on / off state is that the second light-emitting unit is on and the first light-emitting unit is off, then the PWM drive interface is controlled to output a low level and the display drive interface is controlled to output a high level. If the target illumination state is that the first light-emitting unit is on and the second light-emitting unit is off, then the PWM drive interface is controlled to output a high level and the display drive interface is controlled to output a low level. If the target illumination state is such that both the first and second light-emitting units are off, then the PWM drive interface and the display drive interface are controlled to output a high level or a low level simultaneously.

5. The I / O interface multiplexing circuit according to claim 1, characterized in that, Each of the first light-emitting units includes: a first light-emitting diode and a first resistor, wherein the anode of the first light-emitting diode is connected to the PWM drive interface of the controller, the cathode of the first light-emitting diode is connected to one end of the first resistor, and the other end of the first resistor is connected to the display drive interface of the controller; Each of the second light-emitting units includes a second light-emitting diode and a second resistor, wherein the cathode of the second light-emitting diode is connected to the PWM drive interface of the controller, the anode of the second light-emitting diode is connected to one end of the second resistor, and the other end of the second resistor is connected to the display drive interface of the controller.

6. A control method for an I / O interface multiplexing circuit, characterized in that, Based on the I / O interface multiplexing circuit according to any one of claims 1-5, the control method includes: The PWM drive interface is controlled to output a drive signal, which is output to the load connected to the PWM drive interface and serves as the drive signal source for the first and second light-emitting units. Based on the target on / off state of the first and second light-emitting units, the display driver interface is controlled to output a control signal, so that the drive signal and the control signal form a corresponding level combination.

7. The control method for the I / O interface multiplexing circuit according to claim 6, characterized in that, When the driving signal is a PWM signal, according to the target on / off state of the first and second light-emitting units, the display driving interface is controlled to output a control signal, so that the driving signal and the control signal form a corresponding level combination, including: If the target on / off state is that the first light-emitting unit is on and the second light-emitting unit is off, then the display driver interface is controlled to continuously output a low level, so that the first light-emitting unit is turned on and lit when the PWM signal is high. If the target on / off state is that the second light-emitting unit is on and the first light-emitting unit is off, then the display driver interface is controlled to continuously output a high level, so that the second light-emitting unit is turned on and lit when the PWM signal is low.

8. The control method for the I / O interface multiplexing circuit according to claim 6, characterized in that, When the driving signal is a PWM signal, according to the target on / off state of the first and second light-emitting units, the display driving interface is controlled to output a control signal, so that the driving signal and the control signal form a corresponding level combination, and the method further includes: If the target on / off state is that the first light-emitting unit and the second light-emitting unit are lit at the same time, then the control signal output by the display driver interface is reversed with the PWM signal, so that the first light-emitting unit lights up when the PWM signal is high and the second light-emitting unit lights up when the PWM signal is low. If the target illumination state is that the first light-emitting unit and the second light-emitting unit are both off, then the control signal output by the display driver interface is in phase with the PWM signal, so that the first light-emitting unit and the second light-emitting unit are both off when the PWM signal is high or low.

9. The control method for the I / O interface multiplexing circuit according to claim 6, characterized in that, When the driving signal is at a fixed level, according to the target on / off state of the first and second light-emitting units, the display driving interface is controlled to output a control signal, so that the driving signal and the control signal form a corresponding level combination, including: If the target illumination state is such that the second light-emitting unit is on and the first light-emitting unit is off, then the PWM drive interface is controlled to output a low level and the display drive interface is controlled to output a high level. If the target illumination state is such that the first light-emitting unit is on and the second light-emitting unit is off, then the PWM drive interface is controlled to output a high level and the display drive interface is controlled to output a low level. If the target illumination state is such that both the first and second light-emitting units are off, then the PWM drive interface and the display drive interface are controlled to output a high level or a low level simultaneously.

10. An electronic device, characterized in that, Includes the I / O interface multiplexing circuit as described in any one of claims 1-5.