A burning voltage generating circuit, an OTP type MCU and a burning method

By generating the self-programming high voltage and LCD driving voltage of the OTP MCU through a single circuit, the problems of circuit complexity and high cost in the prior art are solved, and the circuit is simplified and the reliability is improved.

CN121077451BActive Publication Date: 2026-07-21WUXI CHIP PLUS INTEGRATED CIRCUIT CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUXI CHIP PLUS INTEGRATED CIRCUIT CO LTD
Filing Date
2025-09-02
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Existing OTP-type MCU self-programming technology requires two power supply circuits to generate high voltage and LCD driving voltage respectively, resulting in complex circuit structure and high cost.

Method used

A programming voltage generation circuit is adopted to generate a high voltage for self-programming and an LCD driving voltage for LCD display. The highest voltage is selected by a substrate voltage selection unit and the switching of the MOS transistor is controlled by the driving unit to achieve safe voltage isolation.

Benefits of technology

The circuit structure was simplified, the cost was reduced, and the reliability and programming success rate of the circuit were improved through voltage selection and safe isolation of MOSFETs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121077451B_ABST
    Figure CN121077451B_ABST
Patent Text Reader

Abstract

The application relates to the field of self-burning technology, and discloses a burning voltage generation circuit, an OTP (One Time Programmable) type MCU (Micro Control Unit) and a burning method. The burning voltage generation circuit comprises a substrate voltage selection unit, a driving voltage generation unit, a driving unit, MOS tubes M1, M2 and M3. In use, the driving voltage generation unit generates a burning voltage or an LCD driving voltage based on a first enable signal EN1, and the driving unit controls the on-off of the MOS tubes M1, M2 and M3 based on the first enable signal EN1 and a second enable signal EN2, so that the output of the burning voltage or the LCD driving voltage is realized. The high voltage for self-burning and the LCD driving voltage for LCD display can be generated by using only one circuit. In addition, the substrate voltage selection unit is used to select a highest voltage to be input to the substrates of the MOS tubes M1, M2 and M3, so that voltage backflow can be avoided, the safety isolation of the MOS tubes can be realized, and the reliability of the circuit and the burning success rate can be effectively ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of self-programming technology, specifically to a programming voltage generation circuit, an OTP-type MCU, and a programming method. Background Technology

[0002] OTP (One-Time Programmable Microcontroller) is an important branch of microcontrollers (MCUs). Its core feature is that the program memory can only be programmed once; once the program is written, it cannot be modified or erased. This characteristic makes it widely used in scenarios with specific requirements for cost, security, and stability.

[0003] For more flexible OTP-type MCUs, in addition to supporting programming mode, self-programming is also supported; the self-programming technology means that the MCU can complete the internal ROM programming by itself in a specific way, thereby effectively eliminating the need for external EEPROM.

[0004] For self-programming technology, a stable high voltage is required for programming, so a power supply circuit is needed to generate the high voltage. In addition, for OTP MCUs with LCD display function, an LCD driving voltage is also required. If the high voltage for programming and the LCD driving voltage are generated separately by two power supply circuits, the circuit structure will be complex and the cost will be high. Summary of the Invention

[0005] In view of the shortcomings of the prior art, the present invention provides a programming voltage generation circuit, an OTP type MCU, and a programming method, which can generate a high voltage for self-programming and an LCD driving voltage for LCD display through a programming voltage generation circuit.

[0006] To solve the above technical problems, in a first aspect, the present invention provides the following technical solution: a programming voltage generation circuit, comprising a substrate voltage selection unit, a driving voltage generation unit, a driving unit, a MOS transistor M1, a MOS transistor M2, and a MOS transistor M3;

[0007] The source of MOSFET M1 is used to input a high-voltage programming signal; the source of MOSFET M2 is electrically connected to the output terminal of the drive voltage generation unit; and the source of MOSFET M3 is used to input a power supply voltage. The drains of MOSFET M1, MOSFET M2, and MOSFET M3 are electrically connected. The drive unit controls the on / off state of MOSFETs M1, M2, and M3 based on the input first enable signal EN1 and second enable signal EN2. The first enable signal EN1 is input to the driving voltage generating unit. The driving voltage generating unit generates a programming voltage when the first enable signal is high and generates an LCD driving voltage when the first enable signal is low. The substrate voltage selection unit is electrically connected to the source of MOS transistor M1, the source of MOS transistor M2, and the source of MOS transistor M3, respectively, and is used to select the highest voltage among the sources of MOS transistor M1, MOS transistor M2, and MOS transistor M3 for output. The voltage output terminal of the substrate voltage selection unit is electrically connected to the substrate of MOS transistor M1, the substrate of MOS transistor M2, and the substrate of MOS transistor M3, respectively.

[0008] In one embodiment of the first aspect, the substrate voltage selection unit includes MOSFET M21, MOSFET M22, MOSFET M23 and MOSFET M24; The source of MOS transistor M21 is electrically connected to the source of MOS transistor M1 and the gate of MOS transistor M22, respectively; the source of MOS transistor M22 is electrically connected to the source of MOS transistor M2 and the gate of MOS transistor M21, respectively. The drain of MOS transistor M21 is electrically connected to the source of MOS transistor M23, the drain of MOS transistor M22, and the gate of MOS transistor M24, respectively. The source of the MOS transistor M24 is electrically connected to the source of the MOS transistor M3 and the gate of the MOS transistor M23, respectively. The drain of MOS transistor M23 is electrically connected to the drain of MOS transistor M24, which is the voltage output terminal of the substrate voltage selection unit.

[0009] In one embodiment of the first aspect, the driving unit drives the MOS transistor M2 to turn on when both the first enable signal EN1 and the second enable signal EN2 are at a high level. The driving unit drives the MOS transistor M1 to conduct when the first enable signal EN1 is low and the second enable signal EN2 is high. The driving unit drives the MOS transistor M3 to conduct when the second enable signal EN2 is low.

[0010] In one embodiment of the first aspect, the driving voltage generating unit includes a control signal generating unit, a voltage divider branch, a first voltage divider switch, a second voltage divider switch, a comparator CMP1, a D flip-flop Q1, a four-phase non-overlapping clock generating unit, and a voltage multiplier unit. The control signal generation unit generates control signals CN1 and CN2 based on clock signal OSC1. The clock signal OSC1, control signal CN1, and control signal CN2 have the same frequency. The rising edge of control signal CN1 is later than the rising edge of clock signal OSC1, and the rising edge of control signal CN2 is later than the rising edge of control signal CN1. The falling edge of clock signal OSC1, the falling edge of control signal CN1, and the falling edge of control signal CN2 are the same. The input terminal of the voltage divider branch is electrically connected to the source of the MOSFET M2. The output terminal of the voltage divider branch is grounded through the first voltage divider switch. The second voltage divider switch is connected in parallel to the two intermediate nodes of the voltage divider branch. The control terminal of the first voltage divider switch is used to input the control signal CN1, and the control terminal of the second voltage divider switch is used to input the first enable signal EN1. The negative input terminal of the comparator CMP1 is electrically connected to the voltage divider node of the voltage divider branch. The positive input terminal of the comparator CMP1 is used for the reference voltage VBGR. The output terminal of the comparator CMP1 is electrically connected to the D input terminal of the D flip-flop Q1. The clock terminal of the D flip-flop Q1 is used to input the control signal CN2. The output terminal of the D flip-flop Q1 is electrically connected to the four-phase non-overlapping clock generation unit. When the output terminal of the D flip-flop Q1 is high, the four-phase non-overlapping clock generation unit generates four-phase non-overlapping clock signals clk1, clk2, clk3 and clk4. The voltage multiplier unit is electrically connected to the four-phase non-overlapping clock generation unit. It outputs voltages based on the clock signals clk1, clk2, clk3, and clk4 output by the four-phase non-overlapping clock generation unit. The voltage output terminal of the voltage multiplier unit is electrically connected to the input terminal of the MOS transistor M2.

[0011] In one embodiment of the first aspect, the control signal generation unit includes an OR gate OR1, an AND gate AND1, a first delay unit de1, an AND gate AND2, a second delay unit de2, and an AND gate AND3; The two inputs of OR1 are used to input the first enable signal EN1 and the LCD enable signal LCDEN, respectively. The output of OR1 is electrically connected to one input of AND1, and the other input of AND1 is used to input the clock signal OSC1. The output of AND1 is electrically connected to the input of the first delay unit de1 and one input of AND2, respectively. The output of the first delay unit de1 is electrically connected to the other input of AND2, respectively. The output of AND2 is electrically connected to the input of the second delay unit de2 and one input of AND3, respectively, for inputting the control signal CN1. The output of the second delay unit de2 is electrically connected to the other input of AND3, and the output of AND3 is used to output the control signal CN2.

[0012] In one embodiment of the first aspect, the first voltage divider switch is turned on when the control signal CN1 is high and turned off when the control signal CN1 is low; The second voltage divider switch is turned on when the first enable signal EN1 is high and turned off when the first enable signal EN1 is low.

[0013] In one embodiment of the first aspect, the voltage multiplier unit includes switches S10, S11, S12, S13, S14, S15, S16, and S17, and capacitors C10, C11, and C12. The input terminal of switch S10 is electrically connected to the input terminal of switch S14 and the output terminal of MOSFET M3, respectively. The output terminal of switch S10 is electrically connected to one end of capacitor C10 and the input terminal of switch S11, respectively. The output terminal of switch S14 is electrically connected to the other end of capacitor C10 and is grounded through switch S15. The output terminal of switch S11 is electrically connected to the input terminals of switch S12 and switch S16 respectively, and is grounded through capacitor C11. The output terminal of switch S12 is electrically connected to one end of capacitor C12 and the input terminal of switch S13 respectively. The output terminal of switch S16 is electrically connected to the other end of capacitor C12 and is grounded through switch S17. The output terminal of switch S13 is the voltage output terminal of the voltage multiplier unit. The control terminals of switch S10 and switch S15 are used to input clock signal clk1. The control terminals of switch S11 and switch S14 are used to input clock signal clk2; The control terminals of switch S13 and switch S16 are used to input clock signal clk3; The control terminals of switch S12 and switch S17 are used to input the clock signal clk4.

[0014] In one embodiment of the first aspect, the control terminals of the switches S10-S17 are turned on when the input clock signal is high and turned off when the input clock signal is low.

[0015] Secondly, the present invention also provides an OTP-type MCU, including the above-mentioned programming voltage generation circuit, and further including a first voltage detection unit, a second voltage detection unit, a ROM, and a logic control unit; the logic control unit is used to generate a first enable signal EN1 and a second enable signal EN2, the first voltage detection unit is used to detect the source voltage of MOSFET M2 and input a first detection signal to the logic control unit, the second voltage detection unit is used to detect the source voltage of MOSFET M3 and input a second detection signal to the logic control unit; the logic control unit is electrically connected to the ROM and is used to input a mode configuration signal, an enable signal EN1, and perform data writing to the ROM.

[0016] Thirdly, the present invention also provides a programming method, implemented using the aforementioned OTP-type MCU, comprising the following steps: S1: Configure the magnitude of the clock signal OCS1, and make the first enable signal EN1 high through the logic control unit, so that the drive voltage generation unit starts to generate voltage; S2: The logic control unit detects whether the source voltage of the MOSFET M3 has reached the minimum power supply voltage through the second voltage detection unit. If it has not reached the minimum power supply voltage, step S2 ends and the programming process is exited; otherwise, step S3 is executed. S3: The logic control unit detects whether the voltage generated by the drive voltage generation unit has reached the minimum programming voltage through the first voltage detection unit. If it has not reached the minimum programming voltage, step S3 ends and programming is exited; otherwise, step S4 is executed. S4: Load the programming address and programming data into the ROM; S5: The logic control unit sets the configuration mode configuration signal to a high level to enable the ROM to enter write mode, and at the same time sets the second enable signal EN2 to a high level, thereby turning on the MOS transistor M2 and driving the programming voltage generated by the voltage generation unit to be input into the ROM. S6: The logic control unit enables the ROM to enter the enabled state by configuring the enable signal WEN1 to be high, and then performs programming, programming data into the ROM according to the loaded programming address; S7: After the data is burned, the logic control unit configuration mode configuration signal is low, the configuration enable signal WEN1 is low, and the second enable signal EN2 is low.

[0017] The beneficial effects of this invention compared with the prior art are as follows: This invention generates a programming voltage or an LCD driving voltage by having the driving voltage generation unit generate the programming voltage or LCD driving voltage based on the first enable signal EN1, and controls the on / off state of MOSFETs M1, M2 and M3 by having the driving unit control the on / off state of MOSFETs M1, M2 and M3 based on the first enable signal EN1 and the second enable signal EN2, thereby realizing the output of programming voltage or LCD driving voltage. Thus, only one circuit is needed to generate the high voltage for self-programming and the LCD driving voltage for LCD display. In addition, by using a substrate voltage selection unit to select the substrate with the highest voltage input to MOSFETs M1, M2, and M3, voltage backflow can be avoided, safe isolation of MOSFETs can be achieved, and the reliability of the circuit can be effectively guaranteed and the programming success rate can be improved. Attached Figure Description

[0018] Figure 1 This is a circuit diagram of the programming voltage generation circuit in Example 1; Figure 2 This is a circuit diagram of the substrate voltage selection unit in Embodiment 1; Figure 3 This is a circuit diagram of the driving unit in Embodiment 1; Figure 4 This is a circuit diagram of the driving voltage generation unit in Embodiment 1; Figure 5 This is a circuit diagram of the control signal generation unit in Embodiment 1; Figure 6 The waveforms of clock signal OSC1, control signal CN1, and control signal CN2 in Example 1 are shown. Figure 7 The waveforms of clock signals clk1, clk2, clk3, and clk4 generated by the four-phase non-overlapping clock generation unit in Embodiment 1 based on clock signal OSC2 are shown. Figure 8 This is a circuit diagram of the voltage multiplier unit in Example 1; Figure 9 This is a schematic diagram of the MCU structure in Example 2. Detailed Implementation

[0019] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0020] Example 1 like Figure 1As shown, this embodiment provides a programming voltage generation circuit, including a substrate voltage selection unit 2, a driving voltage generation unit 3, a driving unit 1, a MOS transistor M1, a MOS transistor M2, and a MOS transistor M3; The source of MOSFET M1 is used to input the programming high voltage signal. The source of MOSFET M2 is electrically connected to the output terminal of the drive voltage generation unit 3 and grounded through capacitor C0. Capacitor C0 is used to store charge and regulate voltage. The source of MOSFET M3 is used to input the power supply voltage. The drains of MOSFET M1, MOSFET M2 and MOSFET M3 are electrically connected. The drive unit 1 controls the on / off state of MOSFETs M1, M2, and M3 based on the input first enable signal EN1 and second enable signal EN2. The first enable signal EN1 is input to the drive voltage generation unit 3. The drive voltage generation unit 3 generates a programming voltage when the first enable signal is high and generates an LCD drive voltage when the first enable signal is low. The substrate voltage selection unit 2 is electrically connected to the source of MOSFET M1, the source of MOSFET M2 and the source of MOSFET M3 respectively, and is used to select the highest voltage among the sources of MOSFET M1, MOSFET M2 and MOSFET M3 for output. The voltage output terminal of the substrate voltage selection unit 2 is electrically connected to the substrate of MOSFET M1, the substrate of MOSFET M2 and the substrate of MOSFET M3 respectively.

[0021] In practical use, the present invention generates a programming voltage or an LCD driving voltage by having the driving voltage generation unit 3 generate the programming voltage or LCD driving voltage based on the first enable signal EN1, and controls the on / off state of MOSFETs M1, M2 and M3 by having the driving unit 1 control the on / off state of MOSFETs M1, M2 and M3 based on the first enable signal EN1 and the second enable signal EN2, thereby realizing the output of programming voltage or LCD driving voltage. Thus, only one circuit is needed to generate the high voltage for self-programming and the LCD driving voltage for LCD display, simplifying the circuit structure and reducing the circuit cost. In addition, by using substrate voltage selection unit 2, the highest voltage can be selected to be input to the substrates of MOSFETs M1, M2 and M3, thereby avoiding voltage backflow, achieving safe isolation of MOSFETs, and thus effectively ensuring circuit reliability and improving programming success rate.

[0022] exist Figure 1 In practice, the source of MOSFET M1 can be connected to the EXVPP pin to input a high-voltage programming signal. The source of MOSFET M2 can be electrically connected to the OP1 pin, and the source of MOSFET M3 can be electrically connected to the VDD pin to input the power supply voltage.

[0023] exist Figure 1 In the diagram, MOS transistors M1, M2, and M3 are all PMOS transistors.

[0024] In this embodiment, the circuit of the substrate voltage selection unit is as follows: Figure 2 As shown, it includes MOSFETs M21, M22, M23, and M24; wherein MOSFETs M21, M22, M23, and M24 are all PMOS transistors; The connection relationships of MOSFETs M21, M22, M23, and M24 are as follows: The source of MOSFET M21 is electrically connected to the source of MOSFET M1 and the gate of MOSFET M22, respectively. The source of MOSFET M22 is electrically connected to the source of MOSFET M2 and the gate of MOSFET M21, respectively. The drain of MOSFET M21 is electrically connected to the source of MOSFET M23, the drain of MOSFET M22, and the gate of MOSFET M24, respectively. The source of MOSFET M24 is electrically connected to the source of MOSFET M3 and the gate of MOSFET M23, respectively. The drain of MOSFET M23 is electrically connected to the drain of MOSFET M24, which is the voltage output terminal of substrate voltage selection unit 2.

[0025] for Figure 2 In the circuit shown, the cross-coupled structure composed of MOSFETs M21 and M22 can compare the source voltages of MOSFETs M21 and M22, and the comparison output signal VA is the larger of the two. Then, the cross-coupled structure composed of MOSFETs M23 and M24 compares the comparison output signal VA with the source voltage of MOSFET M24, and outputs the larger of the two voltage values, and finally outputs voltage VBULK. Voltage VBULK is input to the substrates of MOSFETs M1, M2 and M3.

[0026] Specifically, in this embodiment, the driving unit 1 controls the on / off process of MOS transistors M1, M2, and M3 based on the first enable signal EN1 and the second enable signal EN2 as follows: When both the first enable signal EN1 and the second enable signal EN2 are high, the drive unit 1 drives the MOS transistor M2 to turn on; the programming voltage generated by the drive voltage generation unit 2 is input to the ROM through the MOS transistor M2, and the circuit mode at this time is the self-programming mode. When the first enable signal EN1 is low and the second enable signal EN2 is high, the driving unit drives the MOS transistor M1 to conduct; at this time, the programming high voltage signal is input to the ROM through the MOS transistor M1, and the corresponding mode of the circuit is the burning mode. When the second enable signal EN2 is low, the driving unit drives the MOSFET M3 to turn on; at this time, the circuit corresponds to the other operating modes.

[0027] Another implementation circuit of the driving unit 1 is as follows: Figure 3 As shown, it includes an inverter INV10, a NAND gate NAND10, a NAND gate NAND11, and a buffer BUF10.

[0028] In this embodiment, the circuit of the driving voltage generating unit 3 is as follows: Figure 4 As shown, it includes a control signal generation unit 30, a voltage divider branch 31, a first voltage divider switch K10, a second voltage divider switch K11, a comparator CMP1, a D flip-flop Q1, a four-phase non-overlapping clock generation unit 32, and a voltage multiplier unit 33. The control signal generation unit 30 generates control signals CN1 and CN2 based on the clock signal OSC1. The waveforms of the control signals CN1 and CN2 generated by the clock signal OSC1 are as follows: Figure 6 As shown, from Figure 6 From this, we can obtain: The clock signal OSC1, control signal CN1, and control signal CN2 have the same frequency. The rising edge of control signal CN1 is later than the rising edge of clock signal OSC1, and the rising edge of control signal CN2 is later than the rising edge of control signal CN1. The falling edges of clock signal OSC1, control signal CN1, and control signal CN2 are the same. exist Figure 4 In the voltage divider branch 31, the input terminal is electrically connected to the source of the MOSFET M2, the output terminal of the voltage divider branch 31 is grounded through the first voltage divider switch K101, and the second voltage divider switch K11 is connected in parallel to the two intermediate nodes of the voltage divider branch 31. The control terminal of the first voltage divider switch K10 is used to input the control signal CN1, and the control terminal of the second voltage divider switch K11 is used to input the first enable signal EN1. The negative input of comparator CMP1 is electrically connected to the voltage divider node of voltage divider branch 31. The positive input of comparator CMP1 is used for the reference voltage VBGR. The output of comparator CMP1 is electrically connected to the D input of D flip-flop Q1. The clock terminal of D flip-flop Q1 is used to input the control signal CN2. The output of D flip-flop Q1 is electrically connected to the four-phase non-overlapping clock generation unit 32. When the output of D flip-flop Q1 is high, the four-phase non-overlapping clock generation unit 32 generates four-phase non-overlapping clock signals clk1, clk2, clk3, and clk4 based on the clock signal OSC2. The timing waveforms of clock signals clk1, clk2, clk3, and clk4 are as follows: Figure 7As shown, the other four-phase non-overlapping clock generation unit 32 is an existing circuit, and its structure will not be described further. The voltage multiplier unit 33 is electrically connected to the four-phase non-overlapping clock generation unit 32. The voltage output is based on the clock signals clk1, clk2, clk3 and clk4 output by the four-phase non-overlapping clock generation unit 32. The voltage output terminal of the voltage multiplier unit 33 is electrically connected to the source of the MOSFET M2.

[0029] for Figure 4 In the circuit shown, comparator CMP1 operates when control signal CN1 is high, and stops operating when comparator CN1 is low. In addition, the first voltage divider switch K10 is turned on when the control signal CN1 is high and turned off when the control signal CN1 is low; The second voltage divider switch K11 is turned on when the first enable signal EN1 is high and turned off when the first enable signal EN1 is low.

[0030] For voltage divider branch 31, when only the first voltage divider switch K10 is turned on, the voltage division ratio of the voltage divider node of voltage divider branch 31 is the first ratio, and the voltage output by the drive voltage generating unit 3 is the LCD drive voltage; when both the first voltage divider switch K10 and the second voltage divider switch K11 are turned on, the voltage division ratio of the voltage divider node of voltage divider branch 31 is the second ratio, and the voltage output by the drive voltage generating unit 3 is the programming voltage; in addition, the first ratio is greater than the second ratio.

[0031] The timing settings for control signals CN1 and CN2 in this embodiment serve the following purposes: First, the control signal CN1 can make the voltage divider branch 31 and comparator CMP1 work intermittently to reduce power consumption. The rising edge of the control signal CN2 is later than the rising edge of the control signal CN1, which can reserve enough time for the output of comparator CMP1 to stabilize. After the output of comparator CMP1 stabilizes, the current state value is latched by the D flip-flop Q1 when the rising edge of the control signal CN2 occurs, thereby controlling the working state of the four-phase non-overlapping clock generation unit 32. When both control signals CN1 and CN2 go low, the voltage divider branch 31 and comparator CMP1 stop working, but this does not affect the working state of the four-phase non-overlapping clock generation unit 32 until the next working cycle arrives. This timing design can save power consumption and improve the lifespan of the battery that powers the system without affecting the operation of the voltage multiplier unit 33 or the quality of the voltage multiplier output signal.

[0032] In this embodiment, the circuit of the control signal generation unit 30 is as follows: Figure 5As shown, it includes OR gate OR1, AND gate AND1, first delay unit de1, AND gate AND2, second delay unit de2, and AND gate AND3; The two inputs of OR gate OR1 are used to input the first enable signal EN1 and the LCD enable signal LCDEN, respectively. The output of OR gate OR1 is electrically connected to one input of AND gate AND1. The other input of AND gate AND1 is used to input the clock signal OSC1. The output of AND gate AND1 is electrically connected to the input of the first delay unit de1 and one input of AND gate AND2, respectively. The output of the first delay unit de1 is electrically connected to the other input of AND gate AND2, respectively. The output of AND gate AND2 is electrically connected to the input of the second delay unit de2 and one input of AND gate AND3, respectively, for inputting the control signal CN1. The output of the second delay unit de2 is electrically connected to the other input of AND gate AND3, and the output of AND gate AND3 is used to output the control signal CN2.

[0033] In this embodiment, the circuit of the voltage multiplier unit 33 is as follows: Figure 8 As shown, it includes switches S10, S11, S12, S13, S14, S15, S16, and S17, as well as capacitors C10, C11, and C12. The input terminal of switch S10 is electrically connected to the input terminal of switch S14 and the output terminal of MOSFET M3, respectively. The output terminal of switch S10 is electrically connected to one end of capacitor C10 and the input terminal of switch S11, respectively. The output terminal of switch S14 is electrically connected to the other end of capacitor C10 and is grounded through switch S15. The output terminal of switch S11 is electrically connected to the input terminals of switch S12 and switch S16 respectively, and is grounded through capacitor C11. The output terminal of switch S12 is electrically connected to one end of capacitor C12 and the input terminal of switch S13 respectively. The output terminal of switch S16 is electrically connected to the other end of capacitor C12 and is grounded through switch S17. The output terminal of switch S13 is the voltage output terminal of the voltage multiplier unit. The control terminals of switch S10 and switch S15 are used to input the clock signal clk1. The control terminals of switch S11 and switch S14 are used to input the clock signal clk2. The control terminals of switch S13 and switch S16 are used to input the clock signal clk3. The control terminals of switch S12 and switch S17 are used to input the clock signal clk4.

[0034] Specifically, the control terminals of switches S10-S17 are turned on when the input clock signal is high and turned off when the input clock signal is low. Furthermore, in this embodiment, controlling the voltage multiplier unit 33 with a high-speed four-phase non-overlapping clock signal effectively reduces charge leakage, resulting in extremely high efficiency for the drive voltage generation unit 3. This allows it to output a voltage multiplier of up to three times VDD while maintaining driving capability.

[0035] Example 2 like Figure 9 As shown, this embodiment also provides an OTP-type MCU, including a programming voltage generation circuit as described in Embodiment 1, and further including a first voltage detection unit 4, a second voltage detection unit 5, a ROM, and a logic control unit; the logic control unit is used to generate a first enable signal EN1 and a second enable signal EN2, the first voltage detection unit 4 is used to detect the source voltage of MOSFET M2 and input a first detection signal VD1 to the logic control unit, the second voltage detection unit 5 is used to detect the source voltage of MOSFET M3 and input a second detection signal VD2 to the logic control unit; the logic control unit is electrically connected to the ROM and is used to input a mode configuration signal MODE, an enable signal WEN1 to the ROM, and to write data.

[0036] The mode configuration signal MODE controls whether the ROM is in write mode or standby mode. Specifically, when the mode configuration signal MODE is high, the ROM is in write mode, and when the mode configuration signal MODE is low, the ROM is in standby mode. The enable signal WEN1 controls the ROM programming enable. The logic control unit writes data through the data port DATA and the address port ADDR.

[0037] In practical use, the logic control unit can start self-programming by generating the first enable signal EN1 and the second enable signal EN2 in sequence. At the same time, it can control whether to continue programming based on the detection results of the first voltage detection unit 4 and the second voltage detection unit 5. The specific programming process is described in Example 3.

[0038] Example 3 This embodiment provides a programming method, implemented using the OTP-type MCU in Embodiment 2, including the following steps: S1: Configure the magnitude of the clock signal OCS1, and make the first enable signal EN1 high through the logic control unit, so that the drive voltage generation unit 3 starts to generate voltage; S2: The logic control unit detects whether the source voltage of the MOSFET M3 has reached the minimum power supply voltage through the second voltage detection unit 5. If it has not reached the minimum power supply voltage, step S2 ends and the programming process is exited; otherwise, step S3 is executed. S3: The logic control unit detects whether the voltage generated by the drive voltage generation unit 3 has reached the minimum programming voltage through the first voltage detection unit 4. If it has not reached the minimum programming voltage, step S3 ends and programming is exited; otherwise, step S4 is executed. S4: Load the programming address and programming data into the ROM; S5: The logic control unit sets the configuration mode signal MODE to a high level to enable the ROM to enter write mode, and at the same time sets the second enable signal EN2 to a high level, thereby turning on the MOS transistor M2 and driving the programming voltage generated by the voltage generation unit 3 to be input into the ROM. S6: The logic control unit enables the ROM to enter the enabled state by configuring the enable signal WEN1 to be high, and then performs programming, programming data into the ROM according to the loaded programming address; S7: After the data is burned, the logic control unit configuration mode signal MODE is low, the configuration enable signal WEN1 is low, and the second enable signal EN2 is low.

[0039] Based on the above description, those skilled in the art can make various changes and modifications without departing from the technical concept of this invention. The technical scope of this invention is not limited to the contents of the specification, but must be determined according to the scope of the claims.

Claims

1. A programming voltage generation circuit, characterized in that, It includes a substrate voltage selection unit, a drive voltage generation unit, a drive unit, and MOS transistors M1, M2, and M3; The source of M1 is used to input the programming high voltage signal; the source of M2 is electrically connected to the output terminal of the drive voltage generation unit and grounded through capacitor C0; the source of M3 is used to input the power supply voltage; the drains of M1, M2 and M3 are electrically connected. The drive unit controls the on / off state of M1, M2 and M3 based on the input first enable signal EN1 and second enable signal EN2; The first enable signal EN1 is input to the driving voltage generating unit. The driving voltage generating unit generates a programming voltage when the first enable signal is high and generates an LCD driving voltage when the first enable signal is low. The substrate voltage selection unit is electrically connected to the source of M1, M2 and M3 respectively, and is used to select the highest voltage among the sources of M1, M2 and M3 for output. The voltage output terminal of the substrate voltage selection unit is electrically connected to the substrate of M1, M2 and M3 respectively. The driving unit drives M2 to conduct when both the first enable signal EN1 and the second enable signal EN2 are at a high level; The driving unit drives M1 to conduct when the first enable signal EN1 is low and the second enable signal EN2 is high. The driving unit turns on M3 when the second enable signal EN2 is low. The driving voltage generation unit includes a control signal generation unit, a voltage divider branch, a first voltage divider switch, a second voltage divider switch, a comparator CMP1, a D flip-flop Q1, a four-phase non-overlapping clock generation unit, and a voltage multiplier unit. The control signal generation unit generates control signals CN1 and CN2 based on clock signal OSC1. The clock signal OSC1, control signal CN1, and control signal CN2 have the same frequency. The rising edge of control signal CN1 is later than the rising edge of clock signal OSC1, and the rising edge of control signal CN2 is later than the rising edge of control signal CN1. The falling edge of clock signal OSC1, the falling edge of control signal CN1, and the falling edge of control signal CN2 are the same. The input terminal of the voltage divider branch is electrically connected to the source of M2, and the output terminal of the voltage divider branch is grounded through the first voltage divider switch. The second voltage divider switch is connected in parallel to the two intermediate nodes of the voltage divider branch. The control terminal of the first voltage divider switch is used to input the control signal CN1, and the control terminal of the second voltage divider switch is used to input the first enable signal EN1. The negative input terminal of the comparator CMP1 is electrically connected to the voltage divider node of the voltage divider branch. The positive input terminal of the comparator CMP1 is used for the reference voltage VBGR. The output terminal of the comparator CMP1 is electrically connected to the D input terminal of the D flip-flop Q1. The clock terminal of the D flip-flop Q1 is used to input the control signal CN2. The output terminal of the D flip-flop Q1 is electrically connected to the input terminal of the four-phase non-overlapping clock generation unit. The input terminal of the voltage multiplier unit is electrically connected to the four-phase non-overlapping clock generation unit, and the voltage output terminal of the voltage multiplier unit is electrically connected to the input terminal of M2.

2. The programming voltage generation circuit according to claim 1, characterized in that, The substrate voltage selection unit includes MOSFETs M21, M22, M23, and M24. The source of MOS transistor M21 is electrically connected to the source of MOS transistor M1 and the gate of MOS transistor M22, respectively; the source of MOS transistor M22 is electrically connected to the source of MOS transistor M2 and the gate of MOS transistor M21, respectively. The drain of MOS transistor M21 is electrically connected to the source of MOS transistor M23, the drain of MOS transistor M22, and the gate of MOS transistor M24, respectively. The source of the MOS transistor M24 is electrically connected to the source of the MOS transistor M3 and the gate of the MOS transistor M23, respectively. The drain of MOS transistor M23 is electrically connected to the drain of MOS transistor M24, which is the voltage output terminal of the substrate voltage selection unit.

3. The programming voltage generation circuit according to claim 1, characterized in that, The control signal generation unit includes an OR gate OR1, an AND gate AND1, a first delay unit de1, an AND gate AND2, a second delay unit de2, and an AND gate AND3; The two inputs of OR1 are used to input the first enable signal EN1 and the LCD enable signal LCDEN, respectively. The output of OR1 is electrically connected to one input of AND1, and the other input of AND1 is used to input the clock signal OSC1. The output of AND1 is electrically connected to the input of the first delay unit de1 and one input of AND2, respectively. The output of the first delay unit de1 is electrically connected to the other input of AND2, respectively. The output of AND2 is electrically connected to the input of the second delay unit de2 and one input of AND3, respectively, for inputting the control signal CN1. The output of the second delay unit de2 is electrically connected to the other input of AND3, and the output of AND3 is used to output the control signal CN2.

4. The programming voltage generation circuit according to claim 3, characterized in that, The first voltage divider switch is turned on when the control signal CN1 is high and turned off when the control signal CN1 is low. The second voltage divider switch is turned on when the first enable signal EN1 is high and turned off when the first enable signal EN1 is low.

5. The programming voltage generation circuit according to claim 4, characterized in that, The four-phase non-overlapping clock generation unit generates four-phase non-overlapping clock signals clk1, clk2, clk3, and clk4 when the output of the D flip-flop Q1 is high. The voltage multiplier unit includes switches S10, S11, S12, S13, S14, S15, S16, and S17, as well as capacitors C10, C11, and C12. The input terminal of switch S10 is electrically connected to the input terminal of switch S14 and the source of MOSFET M3, respectively. The output terminal of switch S10 is electrically connected to one end of capacitor C10 and the input terminal of switch S11, respectively. The output terminal of switch S14 is electrically connected to the other end of capacitor C10 and is grounded through switch S15. The output terminal of switch S11 is electrically connected to the input terminals of switch S12 and switch S16 respectively, and is grounded through capacitor C11. The output terminal of switch S12 is electrically connected to one end of capacitor C12 and the input terminal of switch S13 respectively. The output terminal of switch S16 is electrically connected to the other end of capacitor C12 and is grounded through switch S17. The output terminal of switch S13 is the voltage output terminal of the voltage multiplier unit. The control terminals of switch S10 and switch S15 are used to input clock signal clk1. The control terminals of switch S11 and switch S14 are used to input clock signal clk2; The control terminals of switch S13 and switch S16 are used to input clock signal clk3; The control terminals of switch S12 and switch S17 are used to input the clock signal clk4.

6. The programming voltage generation circuit according to claim 5, characterized in that, The control terminals of switches S10-S17 are turned on when the input clock signal is high and turned off when the input clock signal is low.

7. An OTP-type MCU, characterized in that, The circuit includes a programming voltage generation circuit as described in claim 6, further comprising a first voltage detection unit, a second voltage detection unit, a ROM, and a logic control unit; the logic control unit is used to generate a first enable signal EN1 and a second enable signal EN2; the first voltage detection unit is used to detect the source voltage of MOSFET M2 and input a first detection signal to the logic control unit; the second voltage detection unit is used to detect the source voltage of MOSFET M3 and input a second detection signal to the logic control unit; the logic control unit is electrically connected to the ROM and is used to input a mode configuration signal, an enable signal EN1, and perform data writing to the ROM.

8. A programming method, characterized in that, The implementation using the OTP-type MCU as described in claim 7 includes the following steps: S1: Configure the magnitude of the clock signal OCS1, and make the first enable signal EN1 high through the logic control unit, so that the drive voltage generation unit starts to generate voltage; S2: The logic control unit detects whether the source voltage of the MOSFET M3 has reached the minimum power supply voltage through the second voltage detection unit. If it has not reached the minimum power supply voltage, step S2 ends and the programming process is exited; otherwise, step S3 is executed. S3: The logic control unit detects whether the voltage generated by the drive voltage generation unit has reached the minimum programming voltage through the first voltage detection unit. If it has not reached the minimum programming voltage, step S3 ends and programming is exited; otherwise, step S4 is executed. S4: Load the programming address and programming data into the ROM; S5: The logic control unit sets the configuration mode configuration signal to a high level to enable the ROM to enter write mode, and at the same time sets the second enable signal EN2 to a high level, thereby turning on the MOS transistor M2 and driving the programming voltage generated by the voltage generation unit to be input into the ROM. S6: The logic control unit enables the ROM to enter the enabled state by configuring the enable signal WEN1 to be high, and then performs programming, programming data into the ROM according to the loaded programming address; S7: After the data is burned, the logic control unit configuration mode configuration signal is low, the configuration enable signal WEN1 is low, and the second enable signal EN2 is low.