Circuit for driving segment code screen, electronic equipment and vehicle

Through the general input and output ports and voltage divider module driving segment code screen, the problem of dependence on special LCD driver chips and peripherals is solved, cost-saving and flexible product development is achieved, and the effective driving and display effect of segment code screen is ensured.

CN222071524UActive Publication Date: 2024-11-26SHENZHEN XIHUA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420349585.7
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-02-23
Publication Date
2024-11-26
Estimated Expiration
2034-02-23

AI Technical Summary

Technical Problem

In the prior art, the drive segment code screen requires a dedicated LCD driver chip or microcontroller with special peripherals, which increases costs and limits the range of product development and selection.

Method used

The segment code screen is driven through a general input and output port (GPIO), and the voltage divider module and resistor network are used to realize voltage control of the COM port and SEG port, avoiding the dependence on dedicated liquid crystal driver chips and peripherals.

Benefits of technology

It realizes cost savings and flexibility in product development, reduces the requirements for the number of microcontroller GPIO ports, ensures that the segments that do not need to be lit do not emit light, and improves the display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222071524U_ABST
    Figure CN222071524U_ABST
Patent Text Reader

Abstract

The utility model relates to the technical field of segment code screens, and provides a circuit for driving a segment code screen, electronic equipment and a vehicle. A second general purpose input / output port; n first sub-circuits, each first sub-circuit comprising a first voltage dividing module and a COM port, the first end of the first voltage dividing module being connected to the first universal input / output port, the second end being connected to the second universal input / output port, and the third end being connected to the COM port; and each second sub-circuit comprises a second voltage division module and an SEG port, the first end of the second voltage division module is connected to the first general input / output port, the second end of the second voltage division module is connected to the second general input / output port, and the third end of the second voltage division module is connected to the SEG port. The voltage of the COM port and the SEG port of the segment code screen is controlled through the first universal input and output port and the second universal input and output port, a special segment code liquid crystal driving chip and extra segment code liquid crystal peripherals do not need to be used, product development is facilitated, and cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of segment code screens, and in particular to a circuit, electronic equipment and a vehicle for driving a segment code screen. Background Art

[0002] Segment code screens are low-cost, low-power display devices that can be seen everywhere in daily life. However, driving segment code screens generally requires a dedicated segment code LCD driver chip, or a microcontroller with peripherals for driving segment code LCDs.

[0003] Using dedicated segment code LCD driver chips will increase additional costs, and there are few automotive-grade segment code LCD driver chips on the market; if the microcontroller is limited to having segment code LCD peripherals, the selection range of the microcontroller will be narrowed, which is not conducive to product development and cost control. Utility Model Content

[0004] In view of the deficiencies in the prior art, the present application provides a circuit, an electronic device and a vehicle for driving a segment code screen, which can drive the segment code screen through a universal input and output port.

[0005] In order to solve the above problems, the utility model provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a circuit for driving a segment code screen, the circuit comprising:

[0007] The first general purpose input and output port;

[0008] The second general purpose input and output port;

[0009] N first sub-circuits, each of which includes a first voltage divider module and a COM port, a first end of the first voltage divider module is connected to the first general input / output port, a second end of the first voltage divider module is connected to the second general input / output port, and a third end of the first voltage divider module is connected to the COM port;

[0010] M second sub-circuits, each of which includes a second voltage divider module and a SEG port, the first end of the second voltage divider module is connected to the first universal input / output port, the second end of the second voltage divider module is connected to the second universal input / output port, and the third end of the second voltage divider module is connected to the SEG port.

[0011] In some embodiments, the first voltage divider module includes a first voltage divider unit and a second voltage divider unit, the first end of the first voltage divider unit is connected to the first general input / output port, the second end of the first voltage divider unit is connected to the first end of the second voltage divider unit and the COM port, and the second end of the second voltage divider unit is connected to the second general input / output port.

[0012] In some embodiments, the first voltage dividing unit includes at least one resistor, and the second voltage dividing unit includes at least one resistor.

[0013] In some embodiments, the second voltage divider module includes a third voltage divider unit and a fourth voltage divider unit, the first end of the third voltage divider unit is connected to the first universal input / output port, the second end of the third voltage divider unit is connected to the first end of the fourth voltage divider unit and the SEG port, and the second end of the fourth voltage divider unit is connected to the second universal input / output port.

[0014] In some embodiments, the third voltage dividing unit includes at least one resistor, and the fourth voltage dividing unit includes at least one resistor.

[0015] In some embodiments, a first ratio is defined as equal to the resistance of the first voltage divider unit divided by the resistance of the first voltage divider module, and a second ratio is defined as equal to the resistance of the third voltage divider unit divided by the resistance of the second voltage divider module, and the absolute value of the difference between the first ratio and the second ratio multiplied by the high-level voltage output by the general input / output port is less than or equal to the driving voltage of the segment code screen multiplied by the bias ratio.

[0016] In some embodiments, a third ratio is defined as equal to the resistance of the second voltage divider unit divided by the resistance of the first voltage divider module, and a fourth ratio is defined as equal to the resistance of the fourth voltage divider unit divided by the resistance of the second voltage divider module, and the absolute value of the difference between the third ratio and the fourth ratio multiplied by the high-level voltage output by the general input / output port is less than or equal to the driving voltage of the segment code screen multiplied by the bias ratio.

[0017] In some embodiments, the circuit further comprises:

[0018] N third general purpose input and output ports, each COM port in the first sub-circuit is connected to one of the third general purpose input and output ports.

[0019] In some embodiments, the circuit further comprises:

[0020] M fourth general purpose input and output ports, each SEG port in the second sub-circuit is connected to one of the fourth general purpose input and output ports.

[0021] In a second aspect, an embodiment of the present application further provides an electronic device, which includes a circuit for driving a segment code screen as in the first aspect.

[0022] In a third aspect, an embodiment of the present application further provides a vehicle, comprising the electronic device as in the second aspect.

[0023] The present application provides a circuit, electronic device and vehicle for driving a segment code screen, the circuit comprising: a first general purpose input and output port; a second general purpose input and output port; N first sub-circuits, each of which comprises a first voltage divider module and a COM port, a first end of the first voltage divider module is connected to the first general purpose input and output port, a second end of the first voltage divider module is connected to the second general purpose input and output port, and a third end of the first voltage divider module is connected to the COM port; M second sub-circuits, each of which comprises a second voltage divider module and a SEG port, a first end of the second voltage divider module is connected to the first general purpose input and output port, a second end of the second voltage divider module is connected to the second general purpose input and output port, and a third end of the second voltage divider module is connected to the SEG port. The present application controls the voltage of the COM port and SEG of the segment code screen through the first general purpose input and output port and the second general purpose input and output port, without using a dedicated segment code liquid crystal driver chip and additionally setting up segment code liquid crystal peripherals, which is conducive to product development and cost saving. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a first structural schematic diagram of a circuit for driving a segment code screen provided in an embodiment of the present application.

[0025] Figure 2 It is a schematic diagram of the structure of the first sub-circuit provided in an embodiment of the present application.

[0026] Figure 3 It is a schematic diagram of the structure of the second sub-circuit provided in an embodiment of the present application.

[0027] Figure 4 This is a second structural schematic diagram of a circuit for driving a segment code screen provided in an embodiment of the present application.

[0028] Figure 5 The embodiment of this application provides Figure 4 Schematic diagram of the waveform of the COM port of the circuit driving the segment code screen.

[0029] Figure 6 It is a structural block diagram of an electronic device provided in an embodiment of the present application.

[0030] Figure 7 It is a structural block diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0032] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present utility model, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0033] For the convenience of describing the first direction and the second direction in the embodiment of the present application, the first direction is the up-down direction in the drawings, the second direction is the front-back direction in the drawings, and the third direction is the left-right direction in the drawings. The x-axis arrow direction is referred to as the "up" direction in the following text, the y-axis arrow direction is referred to as the "back" direction in the following text, and the z-axis arrow direction is referred to as the "right" direction in the following text, which is not limited to the actual application of the present application.

[0034] The segment code screen belongs to the LCD screen, also known as the segment code LCD screen. The parameters of the segment code screen are introduced below. The parameters of the segment code screen include: driving voltage, duty cycle, and bias ratio.

[0035] Driving voltage: When a segment in the segment code LCD screen is lit, the absolute value of the voltage difference between the corresponding COM port and the SEG port needs to be greater than or equal to the driving voltage. That is, when the absolute value of the voltage difference between the COM port and the SEG port corresponding to the segment is greater than or equal to the driving voltage, the segment is lit.

[0036] Duty cycle, the segments on the segment code LCD screen can be understood as a two-dimensional matrix, the horizontal ones are COM ports, and the vertical ones are SEG ports. At the same time, only one COM port can be selected, but multiple SEG ports can be selected. In one cycle, the ratio of the time each COM port is selected to the entire cycle is the duty cycle, which is generally equal to 1 / the number of COM ports.

[0037] Bias ratio: When the ratio of the voltage between the COM port and the SEG port to the driving voltage is less than the bias ratio, the corresponding segment will hardly light up. When it is greater than the bias ratio, the corresponding segment will light up slightly.

[0038] When using a segment code LCD screen, try to avoid the situation where the voltage difference between the COM port and the SEG port of the segment that does not need to be lit is greater than 1 / 3. When the voltage difference between the COM port and the SEG port of the segment that does not need to be lit is greater than 1 / 3, the contrast of the segment code screen is low and the display effect is poor.

[0039] See also Figure 1 , Figure 1 1 is a first structural diagram of a circuit for driving a segment code screen provided in an embodiment of the present application. The segment code screen includes at least one COM port and at least one SEG port, such as Figure 1As shown, the circuit 1 for driving the segment code screen includes: a first general purpose input and output port, a second general purpose input and output port, N third general purpose input and output ports, M fourth general purpose input and output ports, N first sub-circuits and M second sub-circuits.

[0040] In some embodiments, each of the first sub-circuits includes a first voltage divider module and a COM port, the first end of the first voltage divider module is connected to the first general input / output port, the second end of the first voltage divider module is connected to the second general input / output port, the third end of the first voltage divider module is connected to the COM port, and the COM port is connected to one of the third general input / output ports.

[0041] For example, Figure 1 As shown, Figure 1 The circuit for driving the segment code screen includes N COM ports and N third general input and output ports. The N COM ports are COM1 to COMN, and each COM port is connected to a different third general input and output port.

[0042] The first subcircuit 11 includes a first voltage divider module 111 and COM1, the first end of the first voltage divider module 111 is connected to the first universal input / output port, the second end of the first voltage divider module 111 is connected to the second universal input / output port, the third end of the first voltage divider module 111 is connected to COM1, and COM1 is connected to one of the third universal input / output ports.

[0043] The first sub-circuit 12 includes a first voltage divider module 121 and COMN, wherein the first end of the first voltage divider module 121 is connected to the first universal input / output port, the second end of the first voltage divider module 121 is connected to the second universal input / output port, the third end of the first voltage divider module 121 is connected to COMN, and COMN is connected to one of the third universal input / output ports.

[0044] Understandably, Figure 1 N-2 first sub-circuits are omitted and not shown, and the N-2 first sub-circuits are respectively a first sub-circuit including COM2, a first sub-circuit including COM3, ..., a first sub-circuit including COM(N-1).

[0045] In some embodiments, each of the second sub-circuits includes a second voltage divider module and a SEG port, the first end of the second voltage divider module is connected to the first general input / output port, the second end of the second voltage divider module is connected to the second general input / output port, the third end of the second voltage divider module is connected to the SEG port, and the SEG port is connected to one of the fourth general input / output ports.

[0046] For example, Figure 1 As shown, Figure 1 The circuit 1 for driving the segment code screen includes M SEG ports and M fourth general input and output ports. The M SEG ports are SEG1 to SEGM, and each SEG port is connected to a different fourth general input and output port.

[0047] The second sub-circuit 21 includes a second voltage divider module 211 and SEG1, wherein the first end of the second voltage divider module 211 is connected to the first universal input / output port, the second end of the second voltage divider module 211 is connected to the second universal input / output port, the third end of the second voltage divider module 211 is connected to the SEG1, and the SEG1 is connected to one of the fourth universal input / output ports.

[0048] The second sub-circuit 22 includes a second voltage divider module 221 and a SEGM, wherein a first end of the second voltage divider module 221 is connected to the first universal input / output port, a second end of the second voltage divider module 221 is connected to the second universal input / output port, a third end of the second voltage divider module 221 is connected to the SEGM, and the SEGM is connected to one of the fourth universal input / output ports.

[0049] Understandably, Figure 1 M-2 second sub-circuits are omitted and not shown, and the M-2 second sub-circuits are respectively a second sub-circuit including SEG2, a second sub-circuit including SEG3, ..., a second sub-circuit including SEG(M-1).

[0050] The following is an introduction to the General Purpose I / O (GPIO).

[0051] The GPIO port has three states: output high level, output low level and floating state. When the GPIO is in the floating state, the GPIO port can be regarded as a high-impedance state, that is, it will not affect the external voltage.

[0052] when Figure 1 When the GPIOs connected to the COM port and the SEG port are in a floating state, the voltages of the COM port and the SEG port are determined by the voltage divider module connected thereto and the voltages output by the first general purpose input / output port and the second general purpose input / output port; when the GPIOs connected to the COM port and the SEG port output a high level, the COM port and the SEG port are both at a high level; when the GPIOs connected to the COM port and the SEG port output a low level, the COM port and the SEG port are both at a low level.

[0053] Define that the COM port corresponding to segment A in the segment code LCD screen is COM1, and the corresponding SEG port is SEG1. When the voltage difference between COM1 and SEG1 is greater than the driving voltage, segment A is lit. However, in order to ensure the display effect, we hope that none of the segments except segment A will emit light, that is, the voltage difference between the COM port and SEG corresponding to the segments except segment A is less than the driving voltage multiplied by the bias ratio.

[0054] See also Figure 2 and Figure 3 , Figure 2 is a schematic diagram of the structure of the first sub-circuit provided in an embodiment of the present application, Figure 3 It is a schematic diagram of the structure of the second sub-circuit provided in an embodiment of the present application.

[0055] like Figure 2 As shown, the first subcircuit includes a voltage divider module 111 and COM1, the voltage divider module 111 includes a first voltage divider unit 1111 and a second voltage divider unit 1112, the first end of the first voltage divider unit 1111 is connected to the first universal input / output port, the second end of the first voltage divider unit 1111 is connected to the first end of the second voltage divider unit 1112 and COM1, and the second end of the second voltage divider unit 1112 is connected to the second universal input / output port.

[0056] When the first general purpose input / output port outputs a high level and the second general purpose input / output port outputs a low level, the high level voltage is defined as 1 and the low level voltage is defined as 0. The resistance of the first voltage divider unit 1111 is R1 and the resistance of the second voltage divider unit 1112 is R2. If the third general purpose input / output port is in a floating state, the voltage applied to COM1 is 1 multiplied by (R2 divided by (R2 plus R1)); when the third general purpose input / output port outputs a high level, the voltage applied to COM1 is 1; when the third general purpose input / output port outputs a low level, the voltage applied to COM1 is 0.

[0057] In some embodiments, the first voltage dividing unit 1111 includes at least one resistor, and the second voltage dividing unit 1112 includes at least one resistor.

[0058] The structure of the remaining first sub-circuit is the same as Figure 2 The same as shown, no further description is given here.

[0059] like Figure 3 As shown, the second sub-circuit includes a voltage divider module 211 and SEG1, the voltage divider module 211 includes a third voltage divider unit 2111 and a fourth voltage divider unit 2112, the first end of the third voltage divider unit 2111 is connected to the first general input / output port, the second end of the third voltage divider unit 2111 is connected to the first end of the fourth voltage divider unit 2112 and SEG1, and the second end of the fourth voltage divider unit 2112 is connected to the second general input / output port.

[0060] When the first general purpose input / output port outputs a high level and the second general purpose input / output port outputs a low level, the high level voltage is defined as 1 and the low level voltage is defined as 0. The resistance of the third voltage divider unit 2111 is R3 and the resistance of the second voltage divider unit 2112 is R4. If the fourth general purpose input / output port is in a floating state, the voltage applied to SEG1 is 1 multiplied by (R4 divided by (R4 plus R3)); when the fourth general purpose input / output port outputs a high level, the voltage applied to SEG1 is 1; when the fourth general purpose input / output port outputs a low level, the voltage applied to SEG1 is 0.

[0061] In some embodiments, the third voltage dividing unit 2111 includes at least one resistor, and the fourth voltage dividing unit 2112 includes at least one resistor.

[0062] In the above structure, when we want to light up a certain segment, we only need to set the third general input / output port connected to the COM port corresponding to the segment to output high level and set the fourth general input / output port connected to the SEG port corresponding to the segment to output low level, or set the third general input / output port connected to the COM port corresponding to the segment to output low level and set the fourth general input / output port connected to the SEG port corresponding to the segment to output high level.

[0063] In the present application, when the segments corresponding to the COM port and the SEG port do not need to be lit, the third general-purpose input / output port connected to the COM port is set to a floating state, and the fourth general-purpose input / output port connected to the SEG port is set to a floating state. When the first general-purpose input / output port outputs a high level and the second general-purpose input / output port outputs a low level, the voltage applied to the COM port is 1 times (R2 divided by (R2 plus R1)), and the voltage applied to the SEG port is 1 times (R4 divided by (R4 plus R3)). At this time, the voltages of the COM port and the SEG port are The difference is the absolute value of (R2 divided by (R2 plus R1)) minus (R4 divided by (R4 plus R3)). If the voltage difference is less than the driving voltage multiplied by the bias ratio, the segments corresponding to the COM port and the SEG port will not light up, so that the segments that do not need to be lit in the segment code screen will not light up. Therefore, in this application, by selecting the resistance value of the voltage divider unit in the voltage divider module, the two GPIO ports can be used to achieve the purpose of making the segments that do not need to be lit not light up. Combined with the above-mentioned method of lighting up the segments that need to be lit in the segment code screen, the driving of the segment code screen through GPIO is realized.

[0064] When the first general purpose input and output port outputs a low level and the second general purpose input and output port outputs a high level, the voltage applied to the COM port is 1 multiplied by (R1 divided by (R2 plus R1)), and the voltage applied to the SEG port is 1 multiplied by (R3 divided by (R4 plus R3)). At this time, the voltage difference between the COM port and the SEG port is the absolute value of (R1 divided by (R2 plus R1)) minus (R3 divided by (R4 plus R3)). If the voltage difference is less than the driving voltage multiplied by the bias ratio, the segments corresponding to the COM port and the SEG port will not light up, so that the segments that do not need to be lit in the segment code screen will not light up. Therefore, in this application, by selecting the resistance value of the voltage divider unit in the voltage divider module, the two GPIO ports can be used to achieve the purpose of making the segments that do not need to be lit not light up. Combined with the above-mentioned method of lighting up the segments that need to be lit in the segment code screen, the driving of the segment code screen through GPIO is realized.

[0065] In some embodiments, a first ratio is defined as equal to the resistance of the first voltage divider unit divided by the resistance of the first voltage divider module, and a second ratio is defined as equal to the resistance of the third voltage divider unit divided by the resistance of the second voltage divider module, and the absolute value of the difference between the first ratio and the second ratio multiplied by the high level voltage is less than or equal to the bias ratio of the segment code screen multiplied by the driving voltage.

[0066] A third ratio is defined as equal to the resistance of the second voltage divider unit divided by the resistance of the first voltage divider module, and a fourth ratio is defined as equal to the resistance of the fourth voltage divider unit divided by the resistance of the second voltage divider module, and the absolute value of the difference between the third ratio and the fourth ratio multiplied by the high level voltage is less than or equal to the bias ratio of the segment code screen multiplied by the driving voltage.

[0067] Specifically, the high-level voltage is the voltage when the GPIO outputs a high level.

[0068] Exemplarily, for a segment code screen with a bias ratio of 1 / 3, the resistance value of the first voltage divider unit R1 of the first voltage divider module can be 20K, the resistance value of the second voltage divider unit R2 can be 40K, the resistance value of the third voltage divider unit R3 of the second voltage divider module can be 40K, and the resistance value of the fourth voltage divider unit R4 can be 20K. At this time, when the first general input and output port outputs a high level and the second general input and output port outputs a low level, the voltage applied to the COM port is 1 times (R2 divided by (R2 plus R1)) equals 2 / 3, and the voltage applied to the SEG port is 1 times (R4 divided by (R4 plus R3)) equals 1 / 3. The absolute value of the voltage difference between the COM port and the SEG port when the connected GPIO is in a floating state is equal to 1 / 3, which is equal to the bias ratio. When the driving voltage is equal to the high level voltage, it can be ensured that the segments that do not need to be lit will not light up.

[0069] When the first general purpose input and output port outputs a low level and the second general purpose input and output port outputs a high level, the voltage applied to the COM port is 1 times (R1 divided by (R2 plus R1)) equals 1 / 3, and the voltage applied to the SEG port is 1 times (R3 divided by (R4 plus R3)) equals 2 / 3. The absolute value of the voltage difference between the COM port and the SEG port when the connected GPIO is in a floating state is equal to 1 / 3, which is equal to the bias ratio. When the driving voltage is equal to the high level voltage, it can ensure that the segments that do not need to be lit will not light up.

[0070] For example, for a segment code screen with a bias ratio of 1 / 2, the resistance values ​​of the first voltage divider unit R1 and the second voltage divider unit R2 may both be 20K, and the resistance values ​​of the third voltage divider unit R3 and the fourth voltage divider unit R4 may both be 20K.

[0071] For example, for a segment code screen with a bias ratio of 1 / 4, the resistance value of the first voltage divider unit R1 can be 10K, the resistance value of the second voltage divider unit R2 can be 30K, the resistance values ​​of the third voltage divider unit R3 and the fourth voltage divider unit R4 can both be 20K. At this time, the absolute value of the voltage difference between the COM port and the SEG port of the connected GPIO in a floating state is equal to 1 / 4, which is equal to the bias ratio.

[0072] Exemplarily, for a segment code screen with a bias ratio of 1 / 4, the resistance value of the first voltage divider unit R1 can be 10K, the resistance value of the second voltage divider unit R2 can be 20K, the resistance values ​​of the third voltage divider unit R3 and the fourth voltage divider unit R4 can both be 20K. At this time, the absolute value of the voltage difference between the COM port and the SEG port of the connected GPIO in a floating state is equal to 1 / 6, which is less than the bias ratio. At this time, when the high-level voltage is greater than the driving voltage, it can also ensure that the segments that do not need to be lit will not light up.

[0073] See also Figure 4 , Figure 4 1 is a second structural diagram of a circuit for driving a segment code screen provided in an embodiment of the present application. Figure 4 As shown, Figure 4 The segment code screen includes a first general purpose input and output port GPIO3, a second general purpose input and output port GPIO4, 4 COM ports, 22 SEG ports, and resistors R1 to R52.

[0074] Specifically, Figure 4 The bias ratio of the segment code screen is 1 / 3.

[0075] In some embodiments, Figure 4 Each COM port and each SEG port is also connected to a GPIO port (not shown in the figure).

[0076] It is understandable that the present application does not limit the number of COM ports and SEG ports.

[0077] Figure 4 For the first sub-circuit including the COM port, when the GPIO connected to the COM port is in a floating state, the high-level voltage is defined as 1, and the voltage of the COM port is 1 / 3 or 3 / 2. For the second sub-circuit including the SEG port, when the GPIO connected to the SEG is in a floating state, the high-level voltage is defined as 1, and the voltage of the SEG port is 1 / 2. When the driving voltage is equal to the high-level voltage, it is ensured that the absolute value of the voltage difference between the COM port and the SEG port when the connected GPIO is in a floating state is less than or equal to the driving voltage multiplied by the bias ratio.

[0078] Please refer to Figure 5 , Figure 5 The embodiment of this application provides Figure 4 Schematic diagram of the waveform of the COM port of the circuit driving the segment code screen.

[0079] like Figure 5 As shown, from time 0 to T1, COM1 is selected and is at a high level; from time T1 to T2, COM2 is selected and is at a high level; from time T2 to T3, COM3 is selected and is at a high level; from time T3 to T4, COM4 is selected and is at a high level.

[0080] like Figure 5 As shown, from T4 to T5, COM1 is selected and is at a low level; from T5 to T6, COM2 is selected and is at a low level; from T6 to T7, COM3 is selected and is at a low level; from T7 to T8, COM4 is selected and is at a low level.

[0081] In some embodiments, the characteristics of the segment code LCD screen determine that the voltage across each segment cannot remain in one state for a long time and the average voltage should be kept at 0, so the voltages of the same COM port and SEG port are opposite in the first half cycle and the second half cycle.

[0082] It is understandable that the number of GPIO ports of electronic devices is limited. For example, when a segment code screen is used on a vehicle, the number of GPIO ports of the microcontroller on the vehicle is not enough to configure multiple GPIO ports for each COM port and SEG. In this application, only two additional GPIO ports are needed to provide an intermediate voltage for the COM port and SEG port corresponding to the segments that you do not want to light up, so that the voltage difference between the COM port and the SEG port corresponding to the segments that you do not want to light up is less than the driving voltage multiplied by the bias ratio, thereby saving costs and reducing development conditions by only driving the segment code screen through the GPIO port.

[0083] Please refer to Figure 6 , Figure 6 is a structural block diagram of an electronic device provided in an embodiment of the present application. Figure 6As shown, the electronic device 2 includes the above-mentioned circuit 1 for driving the segment code screen.

[0084] In some embodiments, the electronic device includes a microcontroller, which includes the above-mentioned first general purpose input and output port, second general purpose input and output port, N third general purpose input and output ports, and M fourth general purpose input and output ports, and the operating voltage of the microcontroller is the high-level voltage output by the GPIO port.

[0085] Please refer to Figure 7 , Figure 7 is a structural block diagram of a vehicle provided in an embodiment of the present application. Figure 7 As shown, the vehicle 3 includes the electronic device 2 described above.

[0086] In some embodiments, the vehicle includes a car, a motorcycle, an electric car, etc., which is not limited in this application.

[0087] In some implementations, the electronic device 2 is not limited to being used in automobiles, and may also be used in, for example, an air conditioning panel of an air conditioner, etc., and this application does not impose any limitation thereto.

[0088] In summary, the present application provides a circuit, electronic device and vehicle for driving a segment code screen, the circuit comprising: a first general purpose input and output port; a second general purpose input and output port; N first sub-circuits, each of which comprises a first voltage divider module and a COM port, the first end of the first voltage divider module is connected to the first general purpose input and output port, the second end is connected to the second general purpose input and output port, and the third end is connected to the COM port; M second sub-circuits, each of which comprises a second voltage divider module and a SEG port, the first end of the second voltage divider module is connected to the first general purpose input and output port, the second end is connected to the second general purpose input and output port, and the third end is connected to the SEG port. The present application controls the voltage of the COM port and SEG of the segment code screen through the first general purpose input and output port and the second general purpose input and output port, without the need to use a dedicated segment code liquid crystal driver chip and additional segment code liquid crystal peripherals, which is conducive to product development and cost savings.

[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A circuit for driving a segment code screen, It is characterized in that The circuit comprises: The first general purpose input and output port; The second general purpose input and output port; N first sub-circuits, each of which includes a first voltage divider module and a COM port, a first end of the first voltage divider module is connected to the first general input / output port, a second end of the first voltage divider module is connected to the second general input / output port, and a third end of the first voltage divider module is connected to the COM port; M second sub-circuits, each of which includes a second voltage divider module and a SEG port, the first end of the second voltage divider module is connected to the first universal input / output port, the second end of the second voltage divider module is connected to the second universal input / output port, and the third end of the second voltage divider module is connected to the SEG port.

2. The circuit according to claim 1, It is characterized in that The first voltage divider module includes a first voltage divider unit and a second voltage divider unit. The first end of the first voltage divider unit is connected to the first general input / output port, the second end of the first voltage divider unit is connected to the first end of the second voltage divider unit and the COM port, and the second end of the second voltage divider unit is connected to the second general input / output port.

3. The circuit according to claim 1, It is characterized in that The first voltage dividing unit includes at least one resistor, and the second voltage dividing unit includes at least one resistor.

4. The circuit according to claim 2, It is characterized in that The second voltage divider module includes a third voltage divider unit and a fourth voltage divider unit, the first end of the third voltage divider unit is connected to the first general input / output port, the second end of the third voltage divider unit is connected to the first end of the fourth voltage divider unit and the SEG port, and the second end of the fourth voltage divider unit is connected to the second general input / output port.

5. The circuit according to claim 4, It is characterized in that The third voltage dividing unit includes at least one resistor, and the fourth voltage dividing unit includes at least one resistor.

6. The circuit according to claim 4, It is characterized in that A first ratio is defined as equal to the resistance of the first voltage divider unit divided by the resistance of the first voltage divider module, and a second ratio is defined as equal to the resistance of the third voltage divider unit divided by the resistance of the second voltage divider module. The absolute value of the difference between the first ratio and the second ratio multiplied by the high-level voltage output by the general input and output port is less than or equal to the driving voltage of the segment code screen multiplied by the bias ratio.

7. The circuit according to claim 4, It is characterized in that A third ratio is defined as equal to the resistance of the second voltage divider unit divided by the resistance of the first voltage divider module, and a fourth ratio is defined as equal to the resistance of the fourth voltage divider unit divided by the resistance of the second voltage divider module, and the absolute value of the difference between the third ratio and the fourth ratio multiplied by the high-level voltage output by the general input and output port is less than or equal to the driving voltage of the segment code screen multiplied by the bias ratio.

8. The circuit according to claim 1, It is characterized in that The circuit further comprises: N third general purpose input and output ports, each COM port in the first sub-circuit is connected to one of the third general purpose input and output ports.

9. The circuit according to claim 1, It is characterized in that The circuit further comprises: M fourth general purpose input and output ports, each SEG port in the second sub-circuit is connected to one of the fourth general purpose input and output ports.

10. An electronic device, It is characterized in that The electronic device comprises the circuit for driving the segment code screen as claimed in claim 1.

11. A vehicle, It is characterized in that The vehicle includes the electronic device as claimed in claim 10.