A method for protecting, by an integrated circuit, an output circuit,
- wherein the output circuit includes a first transistor and a second transistor that are coupled in series between a terminal and an output stage, the terminal is configured to receive a signal at a rated voltage level that is capable of increasing to a maximum voltage level, and
- wherein the method comprises:
- generating, by a protection circuit, a first voltage that controls the first transistor;
- and
- generating, by the protection circuit, a second voltage that controls the second transistor, wherein:
- in an activated state, the first voltage and the second voltage are both generated by dividing the voltage level of the signal;
- and
- in a deactivated state, the first voltage is generated to be the same as the voltage level of the signal, the second voltage is generated to be a level of a control voltage minus a threshold voltage of a protection transistor, and the protection circuit and the output circuit are unable to pass a current between the terminal and a ground terminal.