Utility model content
The trigger control circuit that the purpose of the utility model embodiment is to provide a kind of starting or closes, to utilize pen cap
Plug, carry out the switching on and shutting down of pen.
To solve the above problems, the trigger control circuit that the utility model provides a kind of starting or closes, the pen
Starting or the trigger control circuit closed include: magnetic sensor circuit and on/off circuit;
First output end of the magnetic sensor circuit is connected with the first input end of the on/off circuit;
The magnetic sensor circuit judges whether to sense magnetic flux, when sensing magnetic flux, generates the first telecommunications
Number, and first electric signal is sent to control chip, the control chip controls power management according to first signal
It is electric under chip, so that the logic of the working condition of pen becomes 0 from 1;Alternatively, generating second when the magnetic flux sensed is zero
Electric signal;When penholder is entered pen cap, magnetic flux is sensed, when pen is extracted pen cap, the magnetic flux sensed is zero;
The on/off circuit receives the second electric signal that the magnetic sensor circuit is sent, and according to second electricity
Signal, the switching on and shutting down pin for controlling the on/off circuit drag down, so that the logic of the working condition of pen is 1.
In one possible implementation, the pen starting or the trigger control circuit closed further include delay circuit;
The second output terminal of the Magnetic Sensor is connected with the input terminal of the delay circuit, the delay circuit it is defeated
Outlet is connected with the second input terminal of the on/off circuit;
The delay circuit receives the second electric signal that the magnetic sensor circuit is sent, after postponing the preset time,
The second electric signal is exported, and second electric signal is sent to the on/off circuit;
The on/off circuit, in second telecommunications for after the preset time, receiving the delay circuit transmission
Number, and according to second electric signal, it controls the on/off circuit and the magnetic sensor circuit disconnects.
In one possible implementation, the magnetic sensor circuit includes Magnetic Sensor and first capacitor;
The first end of the Magnetic Sensor is grounded, the second end of the Magnetic Sensor respectively with power supply module and first capacitor
First end be connected, the second end of first capacitor ground connection.
In one possible implementation, the delay circuit includes: the second capacitor and reset chip;
The first end of the reset chip is connected with the first end of the third end of Magnetic Sensor, the second capacitor respectively, institute
The second end for stating reset chip is connected with the second end of the second capacitor and ground terminal respectively.
In one possible implementation, the on/off circuit includes: the first Metal-Oxide Semiconductor field-effect
Crystal metal-oxide-semiconductor, first resistor, second resistance, 3rd resistor and the second metal-oxide-semiconductor;
The source electrode of first metal-oxide-semiconductor and the third end of the Magnetic Sensor, the first end of the reset chip and described
The first end of second capacitor is connected, and the grid of first metal-oxide-semiconductor is connected with the third end of the reset chip, and described
The drain electrode of one metal-oxide-semiconductor is connected with the first end of the first resistor, the second end of the first resistor and the second resistance
First end be connected with the grid of second metal-oxide-semiconductor, the second end of second resistance ground connection, second metal-oxide-semiconductor
Drain electrode is connected with the first end of 3rd resistor, and the source electrode of second metal-oxide-semiconductor is grounded, the second end of the 3rd resistor with open
The switching on and shutting down pin of shutdown circuit is connected.
In one possible implementation, the pen starting or the trigger control circuit closed further include the 4th resistance;
The first end of 4th resistance is connected with the third end of the grid of first metal-oxide-semiconductor and the reset chip
It connects.
In one possible implementation, the power supply module is specially battery or battery group.
The trigger control circuit for starting or closing by application pen provided by the utility model is opened again after avoiding pen starting
The case where machine, realizes the real shutdown of pen, to save power consumption.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining relevant utility model, rather than the restriction to the utility model.It further needs exist for illustrating
, for ease of description, illustrating only part relevant to related utility model in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is the trigger control circuit schematic diagram that pen provided by the embodiment of the utility model starts or closes.Such as Fig. 1 institute
Show, this starting or the trigger control circuit closed include: magnetic sensor circuit 1, on/off circuit 2 and delay circuit 3.
First output end of magnetic sensor circuit 1 is connected with the first input end of on/off circuit 2, Magnetic Sensor U1's
Second output terminal is connected with the input terminal of delay circuit 3, the second input of the output end and on/off circuit 2 of delay circuit 3
End is connected;
Magnetic sensor circuit 1 judges whether to sense magnetic flux, when sensing magnetic flux, generates the first electric signal, and
First electric signal is sent to control chip, the control chip controls power management core according to first electric signal
It is electric under piece, so that the logic of the working condition of pen becomes 0 from 1;Alternatively, generating the second electricity when the magnetic flux sensed is zero
Signal;When penholder is entered pen cap, magnetic flux is sensed, when pen is extracted pen cap, the magnetic flux sensed is zero.Switching on and shutting down
Circuit 2 receives the second electric signal that magnetic sensor circuit 1 is sent, and according to the second electric signal, control switch electromechanics road 2 is opened
Shutdown pin drags down, to control the switching on and shutting down pin booting of power management chip by the switching on and shutting down pin dragged down, so that pen
The logic of working condition is 1.
Delay circuit 3 receives the second electric signal that magnetic sensor circuit 1 is sent, after postponing preset time, output the
Two electric signals, and the second electric signal is sent to on/off circuit 2.
On/off circuit 2, after the preset time, the second electric signal that reception delay circuit 3 is sent, and according to the
Two electric signals, the disconnection of control switch electromechanics road 2 contacts shutdown with magnetic sensor circuit 1, so that the logic of the working condition of pen
It is not influenced by magnetic sensor circuit 1.
Wherein, which, which can be from 1, becomes 0 pulse, alternatively, being to become low level letter from high level
Number.Second electric signal be the signal opposite with the first electric signal, for example, the second electric signal can be from 0 become 1 pulse, or
Person becomes the signal of high level from low level.Control chip (not shown) one end receive the first electric signal, the other end with
Power management chip is connected by preset communication protocol, and after control chip receives the first electric signal, control chip is raw
It is electric under power management chip to control at significant level signal, realize the shutdown of pen.The switching on and shutting down pin of on/off circuit 2 is
POWER_ON/OFF, the switching on and shutting down pin POWER_ON/OFF control the switching on and shutting down pin of power management chip, in the POWER_
When ON/OFF is dragged down, power management chip controls pen and is in booting.
Wherein, example and it is non-limiting, useful signal can be high level signal, be also possible to low level signal, if protect
Electricity under power management chip can be made by demonstrate,proving the signal.
Magnetic sensor circuit 1 includes Magnetic Sensor U1 and first capacitor C1;
The first end of Magnetic Sensor U1 is grounded, the second end of Magnetic Sensor U1 respectively with power supply module and first capacitor C1
First end is connected, the second end ground connection of first capacitor C1.
Delay circuit 3 includes: the second capacitor C2 and reset chip U2;
The first end of reset chip U2 is connected with the first end at the third end of Magnetic Sensor U1, the second capacitor C2 respectively,
The second end of reset chip U2 is connected with the second end of the second capacitor C2 and ground terminal respectively.
Wherein, first capacitor C1 and the second capacitor C2 is filter capacitor.
The delay time of reset chip U2, which can according to need, to be configured, such as 240ms.
On/off circuit 2 includes: the first Metal-Oxide Semiconductor field effect transistor (metal oxide
Semiconductor, MOS) pipe, first resistor R1, second resistance R2,3rd resistor R3 and the second metal-oxide-semiconductor Q2;
The source electrode of first metal-oxide-semiconductor Q1 and the third end of Magnetic Sensor U1, the first end and the second capacitor C2 of reset chip U2
First end be connected, the grid of the first metal-oxide-semiconductor Q1 is connected with the third end of reset chip U2, the drain electrode of the first metal-oxide-semiconductor Q1
It is connected with the first end of first resistor R1, the second end of first resistor R1 and the first end of second resistance R2 and the second metal-oxide-semiconductor
The grid of Q2 is connected, the second end ground connection of second resistance R2, the drain electrode and the first end phase of 3rd resistor R3 of the second metal-oxide-semiconductor Q2
Connection, the source electrode ground connection of the second metal-oxide-semiconductor Q2, the second end of the 3rd resistor R3 and the switching on and shutting down pipe of power management chip
Foot is connected.
Further, pen starting or the trigger control circuit closed further include the 4th resistance R4;
The first end of 4th resistance R4 is connected with the third end of the grid of the first metal-oxide-semiconductor Q1 and reset chip U2.4th
Resistance R4 is for dividing.
Further, power supply module is specially battery or battery group.
In the following, the course of work for the trigger control circuit for starting to this or closing is illustrated.
When extracting pen cap, far from the Magnetic Sensor U1 in magnetic sensor circuit 1, magnetic passes the magnetic force generator in pen cap
Sensor U1 is 0 from that can sense magnetic flux to the magnetic flux sensed less than magnetic flux is incuded, the 3rd pin of Magnetic Sensor U1
The second electric signal is exported, can be from the low level signal got higher.This from the low level signal got higher cause Hall_SW signal from
Low level becomes high level, and Q1_G is low level, therefore, the first metal-oxide-semiconductor Q1 conducting.Since the first metal-oxide-semiconductor Q1 is connected,
The high level of Hall_SW reaches the grid of the second metal-oxide-semiconductor Q2 by the first metal-oxide-semiconductor Q1, at this point, the Q2_G (grid of the second metal-oxide-semiconductor Q2
Pole) it gets higher, the second metal-oxide-semiconductor Q2 conducting.The switching on and shutting down pin POWER_ON/OFF of on/off circuit 2 is pulled low, power management core
Piece powers on, and pen starting, the logic of the working condition of pen becomes 1 from 0.
Meanwhile reset chip U2 receives the second electric signal that Magnetic Sensor U1 is sent, and after postponing the preset time, resets
Chip U2 exports the second electric signal, and the second electric signal is sent to the first metal-oxide-semiconductor Q1, and the Q1_G of the first metal-oxide-semiconductor Q1 is at this time
First metal-oxide-semiconductor Q1 cut-off is become from low level, so that contacting for magnetic sensor circuit 1 and on/off circuit 2 is cut off, the pen made
The logic of working condition is not influenced by Magnetic Sensor U1, even if the magnetic flux that i.e. Magnetic Sensor U1 is sensed is 0, output second
Electric signal, but the second electric signal exported no longer influences the switching on and shutting down pin of on/off circuit 2, i.e. power management chip continues
Working condition before holding, powers on or lower electricity continues to use that is, if pen is in use, if pen does not have to and oneself for a long time
Dynamic shutdown, continues to remain turned off state.
When the logic of the working condition of pen is 1, i.e., when pen is in running order, when plugging pen cap, Magnetic Sensor
U1 is zero to that can sense magnetic flux from the magnetic flux sensed, and third pin exports the first electric signal, and Hall_SW signal is
Second electric signal, i.e., the signal being lower by height, for example become 0 level from 1, at this point, control chip receives this and becomes 0 from 1
Level after, by being communicated between power management chip, control the closing that electricity under power management chip realizes pen, pen
The logic of working condition becomes 0 from 1.
Wherein, the logic of the working condition of pen is that 1 expression pen is in running order, and the logic of the working condition of pen is 0 table
Show that pen is in close state.
After extracting pen cap, pen places a period of time without meeting automatic shutdown, and the Magnetic Sensor U1 in inductive switch feels
When should be less than magnetic flux, output high level can be continued, so that postboost pen is switched on once more, thus cannot achieve really
Shutdown, power consumption is larger, and the trigger control circuit for starting or closing by application pen provided by the utility model, avoids pen and opens
The case where being switched on again after dynamic, realizes the real shutdown of pen, to save power consumption.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure
Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate
The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description.
These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.
Professional technician can use different methods to achieve the described function each specific application, but this realization
It is not considered that exceeding the scope of the utility model.
Above specific embodiment has carried out further the purpose of this utility model, technical scheme and beneficial effects
It is described in detail, it should be understood that the above is only the specific embodiments of the utility model, is not used to limit originally practical
Novel protection scope, within the spirit and principle of the utility model, any modification, equivalent substitution, improvement and etc. done,
It should be included within the scope of protection of this utility model.