Summary of the invention
Embodiments of the invention provide a kind of self coupling capacitance determining method and circuit, can solve self coupling electricity
Hold the problem that detection scheme speed is unstable.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
First aspect, it is provided that a kind of self coupling capacitance determining method, including:
Being sent by emission port and launch signal, described transmitting signal is in default fixed time period
Pulse number is fixed;
Described transmitting signal is received by the first reception signal after load, acquisition institute by receiving port
State each pulse of the first reception signal rising edge and trailing edge sampled voltage signal first
Pressure difference Vpp1, described first receives signal pulse number within the described default time cycle fixes;
Afterwards during other detection identical with the described default time cycle, by described reception
Port receives described transmitting signal and receives signal by second after load, obtains described second and receives letter
Number each pulse at the second pressure difference Vpp2 of the sampled voltage signal of rising edge and trailing edge,
Described second receives signal pulse number within the described default time cycle fixes;
Described second pressure difference Vpp2 and right is obtained in identical described default fixed time period
Answer the difference voltage Δ V of described first pressure difference Vpp1, and judge institute according to described difference voltage Δ V
State the changing value Δ C of receiving port self coupling electric capacity;
When the changing value Δ C of described self coupling electric capacity exceedes default fiducial value, it is judged that with described reception
The touch port generation touch event that port connects.
In the implementation that the first is possible, in conjunction with first aspect, the method also includes:
Preset the described first frequency launching signal and launch duration.
In the implementation that the second is possible, in conjunction with first aspect or realization side that the first is possible
Formula, described obtains described second pressure difference Vpp2 in identical described default fixed time period
The difference voltage Δ V of first pressure difference Vpp1 described with correspondence, and sentence according to described difference voltage Δ V
The changing value Δ C of disconnected described receiving port self coupling electric capacity specifically includes:
Each described second pressure difference Vpp2 is obtained in identical described default fixed time period
Each difference voltage Δ V with each described first pressure difference Vpp1 described in correspondence;
Carry out described each difference voltage Δ V adding up and obtain cumulative magnitude of voltage Vs;
The changing value Δ C of described receiving port self coupling electric capacity is judged according to described cumulative magnitude of voltage Vs.
In the implementation that the third is possible, in conjunction with first aspect, implementation that the first is possible
Or the implementation that the second is possible, the method also includes:
Described transmitting signal includes square wave, triangular wave or sine wave.
Second aspect, it is provided that a kind of self coupling capacitive detection circuit, including:
Detect emission port and receiving port that integrated circuit is connected with described detection integrated circuit, described
Being connected load between emission port with described receiving port, described receiving port is also connected with touching port,
Wherein:
Described detection integrated circuit launches signal for being sent by emission port, and described transmitting signal exists
In the fixed time period preset, pulse number is fixed, and receives described transmitting signal by receiving port and leads to
The first reception signal after overload, obtains described first and receives each pulse of signal at rising edge
With the first pressure difference Vpp1 of the sampled voltage signal of trailing edge, described first receives signal described pre-
If time cycle in pulse number fix;Other is identical with the described default time cycle afterwards
During detection, receive described transmitting signal by receiving port and receive signal by second after load,
Obtain the described second each pulse sampled voltage signal at rising edge and trailing edge receiving signal
Second pressure difference Vpp2, described second reception signal pulse number within the described default time cycle is solid
Fixed;Described second pressure difference Vpp2 and right is obtained in identical described default fixed time period
Answer the difference voltage Δ V of described first pressure difference Vpp1, and judge institute according to described difference voltage Δ V
State the changing value Δ C of receiving port self coupling electric capacity;When the changing value Δ C of described self coupling electric capacity exceedes default
Fiducial value time, it is judged that the touch port generation touch event being connected with described receiving port.
In the implementation that the first is possible, in conjunction with first aspect, this equipment also includes:
Described detection integrated circuit is additionally operable to preset the described first frequency launching signal and launch duration.
In the implementation that the second is possible, in conjunction with first aspect or realization side that the first is possible
Formula, described detection integrated circuit is each specifically for obtaining within the identical described default time cycle
Individual described second pressure difference Vpp2 and the described second pressure difference Vpp2 of correspondence each described first
Each difference voltage Δ V of pressure difference Vpp1;Described each difference voltage Δ V is added up
Obtain cumulative magnitude of voltage Vs;Described receiving port self coupling electric capacity is judged according to described cumulative magnitude of voltage Vs
Changing value Δ C.
In the implementation that the third is possible, in conjunction with first aspect, implementation that the first is possible
Or the implementation that the second is possible, also include:
Described transmitting signal includes square wave, triangular wave or sine wave.
The self coupling capacitance determining method of embodiment of the present invention offer and equipment, by default transmitting signal
Frequency and launch duration and detect self coupling electric capacity time use first reception signal and second receive signal
The pattern Tong Bu with launching signal, solves the problem that self coupling capacitive detection scheme speed is unstable.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is entered
Row clearly and completely describes, it is clear that described embodiment is only a part of embodiment of the present invention,
Rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having
Have and make the every other embodiment obtained under creative work premise, broadly fall into present invention protection
Scope.
Embodiments of the invention provide a kind of self coupling capacitance determining method, as it is shown in figure 1, include following
Step:
101, self coupling capacitive detection circuit is sent by emission port and launches signal, and this transmitting signal exists
In the fixed time period preset, pulse number is fixed.
Certainly optional, launch signal and include but not limited to square wave, triangular wave or sine wave, certainly this
In launch signal cycle of individual pulse can not fix.
102, transmitting signal is received by the first reception signal after load, acquisition by receiving port
First each pulse the first pressure at the sampled voltage signal of rising edge and trailing edge receiving signal
Difference Vpp1, this first reception signal pulse number within the default time cycle is fixed.
103, other, with during the time cycle identical detection preset, passes through receiving terminal afterwards
Mouth receives transmitting signal and receives signal by second after load, obtains each second reception signal and exists
Second pressure difference Vpp2 of the sampled voltage signal of rising edge and trailing edge, this second reception signal exists
In the time cycle preset, pulse number is fixed.
104, in the identical fixed time period preset, obtain the second pressure difference Vpp2 and corresponding the
The difference voltage Δ V of one pressure difference Vpp1, and judge receiving port self coupling electricity according to difference voltage Δ V
The changing value Δ C held.
105, when the changing value Δ C of self coupling electric capacity exceedes default fiducial value, it is judged that with receiving terminal
The touch port generation touch event that mouth connects.
Concrete each provides the interior waveform launching signal of fixed time period, Yi Ji with reference to Fig. 4
Launch the waveform of the first reception signal corresponding to signal when touch event does not occurs and send out at touch event
The waveform of the second reception signal corresponding to signal is launched time raw.Use analog-digital converter (Analog
To Digital Converter, is called for short ADC) impulse level that receives receiving port samples,
As shown in Figure 4 B1, B2 are respectively and touch receiving port docking when port does not occurs touch event
The impulse level received is at rising edge and the sampled point of trailing edge, and C1, C2 are respectively touch port and send out
During raw touch event, the receiving port impulse level to receiving is at rising edge and the sampled point of trailing edge;
Substantially, when touch event does not occurs, owing to receiving port self coupling electric capacity is less, therefore receiving port arteries and veins
The charge/discharge rates rushing signal is fast, so the sampled voltage signal at B1, B2 two of correspondence
Difference amplitude Vpp1 is less;And during touch event generation, owing to self coupling electric capacity increases, receiving port
Charge/discharge rates slows down, so the difference amplitude of the sampled voltage signal at C1, C2 two of correspondence
The amplitude of Vpp2 is bigger.Receiving port is judged here by the difference judging Vpp2 and Vpp1 with this
The change of self coupling electric capacity, additionally due to the speed of detection relatively of pulse signals will not change, thus examines
The survey time will not change compared to before touching.
The self coupling capacitance determining method that the embodiment of the present invention provides, by the frequency of default transmitting signal and
Launch duration and use when detecting self coupling electric capacity the first reception signal and second to receive signal and transmitting
The pattern that signal synchronizes, solves the problem that self coupling capacitive detection scheme speed is unstable.
Embodiments of the invention provide a kind of self coupling capacitance determining method, as in figure 2 it is shown, include following
Step:
201, preset the frequency of transmitting signal and launch duration.
Here by default transmitting signal discharge and recharge frequency and transmitting duration so that at default transmitting duration
Time cycle in launch the number of times of pulse in signal and fix, owing to frequency can be arranged so that launch
The frequency of signal can distinguish the frequency of background noise as far as possible, improves certainly during follow-up detection
The ability of coupling capacitance measurement technique anti-noise jamming.
Optionally, launch signal and include but not limited to square wave, triangular wave or sine wave.
202, send transmitting signal by emission port, launch signal at default fixed time period
Interior pulse number is fixed, and the cycle of the individual pulse launching signal the most here can not be fixed.
The transmitting duration wherein preset in the fixed time period in step 202 and frequency i.e. step 201
And frequency.
203, transmitting signal is received by the first reception signal after load, acquisition by receiving port
First each pulse the first pressure at the sampled voltage signal of rising edge and trailing edge receiving signal
Difference Vpp1, this first reception signal pulse number within the default time cycle is fixed.
204, other, with during the time cycle identical detection preset, passes through receiving terminal afterwards
Mouth receives launches signal by the second reception signal after load, each of acquisition the second reception signal
Pulse at the second pressure difference Vpp2 of the sampled voltage signal of rising edge and trailing edge, this second receive
Signal pulse number within the default time cycle is fixed.
Owing to receiving signal and all use fixing duration at transmitting signal, the first reception signal and second and consolidate
Determine the detection mode of frequency so that three achieves synchronicity when detection, it is to avoid appearance existing skill
Art detects the unstability of time change.
205, in the identical fixed time period preset, each second pressure difference Vpp2 is obtained
Each difference voltage Δ V with each the first pressure difference Vpp1 corresponding;
206, being carried out by each difference voltage Δ V adds up obtains cumulative magnitude of voltage Vs;
207, the changing value Δ C of receiving port self coupling electric capacity is judged according to cumulative magnitude of voltage Vs;
208, when the changing value Δ C of self coupling electric capacity exceedes default fiducial value, it is judged that with receiving terminal
The touch port generation touch event that mouth connects.
Concrete still as a example by Fig. 4, launch the waveform of signal in each providing fixed time period,
And launch the waveform of the first reception signal corresponding to signal when touch event does not occurs and touching
The waveform of the second reception signal corresponding to signal is launched when event occurs.Use analog-digital converter
The impulse level that receiving port is received by (Analog To Digital Converter is called for short ADC)
Sampling, B1, B2 as shown in Figure 4 are respectively touch port and do not occur to connect during touch event
The receiving end mouth impulse level to receiving is respectively at rising edge and the sampled point of trailing edge, C1, C2
When touching port generation touch event, the receiving port impulse level to receiving is in rising edge and decline
The sampled point on edge;Substantially, when touch event does not occurs, owing to receiving port self coupling electric capacity is less, because of
The charge/discharge rates of this receiving port pulse signal is fast, so the sampling at B1, B2 two of correspondence
Difference amplitude Vpp1 of voltage signal is less;And during touch event generation, owing to self coupling electric capacity increases,
Receiving port charge/discharge rates slows down, so the sampled voltage signal at C1, C2 two of correspondence
The amplitude of difference amplitude Vpp2 is bigger.Here correspondence launches signal each time, each of acquisition
A difference voltage can be there is in two pressure difference Vpp2 and each first pressure difference Vpp1 corresponding
Δ V, and along with umber of pulse increases, after these minor variations Δ V is accumulated in a certain way just
There is an obvious signal intensity amplitude.By this signal intensity amplitude with the most do not touch before letter
Number change amplitude (this change amplitude of certain perfect condition is zero) compare, it can be determined that receiving port
The change of self coupling electric capacity.By the data of real-time sampling are calculated, and then during touching detection
Do not have the problem that electric charge is saturated and overflows.
Certainly after touch event occurs, the self coupling electric capacity of receiving port changes, by above-mentioned enforcement
Example provide method, detection receiving port self coupling electric capacity change judge the tool that touch event occurs
Body position.
The self coupling capacitance determining method that the embodiment of the present invention provides, by the frequency of default transmitting signal and
Launch duration and use when detecting self coupling electric capacity the first reception signal and second to receive signal and transmitting
The pattern that signal synchronizes, solves the problem that self coupling capacitive detection scheme speed is unstable;Simultaneously because
The frequency launching signal can arbitrarily arrange the energy that improve self coupling capacitance measurement technique anti-noise jamming
Power.
Embodiments of the invention provide a kind of self coupling capacitive detection circuit 3, and with reference to shown in Fig. 3, this sets
For including:
Detection IC, the emission port SH being connected with detection IC and receiving terminal
Mouth RE, is connected load R, receiving port RE and also connects between emission port SH with receiving port RE
Port HA is touched in contact;
Wherein, detection IC launches signal for being sent by emission port SH, launches letter
Pulse number is fixed number in default fixed time period, launches the individual pulse of signal the most here
Cycle can not fix.Receive transmitting signal by receiving port RE to be connect by first after load
The collection of letters number, each pulse obtaining the first reception signal is believed at the sampled voltage of rising edge and trailing edge
Number the first pressure difference Vpp1, first receive signal pulse number within the default time cycle fixes;
Afterwards during other detection identical with the time cycle preset, received by receiving port RE
Launch signal to be existed by the second reception signal after load, each pulse obtaining the second reception signal
Second pressure difference Vpp2 of the sampled voltage signal of rising edge and trailing edge, second receives signal is presetting
Time cycle in pulse number fix;The second pressure is obtained in the identical fixed time period preset
Difference Vpp2 and the difference voltage Δ V of corresponding first pressure difference Vpp1, and according to difference voltage Δ V
Judge the changing value Δ C of receiving port RE self coupling electric capacity;When the changing value Δ C of self coupling electric capacity exceedes pre-
If fiducial value time, it is judged that the touch port generation touch event being connected with receiving port.
Here, launch signal and include but not limited to the multiple waveforms such as square wave, triangular wave or sine wave.
Concrete, detection IC is for having pulse width modulation function and Analog-digital Converter
Device ADC (Analog To Digital Converter) detects the module of function or has logical operations
With the processor of programing function, such as read-write single-chip microcomputer, microcontroller (Micro Controller
The common chip such as Unit).
Emission port SH, receiving port RE can be common input/output interface (input/output,
It is called for short IO), certain emission port needs to connect the pulse width modulation function of detection IC
Module, receiving port RE connection has analog-digital converter ADC (Analog To Digital
Converter) module of function is detected.
For touching port device, touch the pad that port HA can be electric capacity button, it is also possible to be
The electrode etc. of touch screen.
The self coupling capacitive detection circuit that the embodiment of the present invention provides, by the frequency of default transmitting signal and
Launch duration and use when detecting self coupling electric capacity the first reception signal and second to receive signal and transmitting
The pattern that signal synchronizes, solves the problem that self coupling capacitive detection scheme speed is unstable.
Further, detection IC is additionally operable to preset and launches the frequency of signal and launch duration.
Preset here by detection IC and launch signal discharge and recharge frequency and launch duration, make
The number of times that must launch signal within the time cycle of default transmitting duration is fixed, owing to frequency can set
Put so that the frequency launching signal can distinguish the frequency of background noise, in follow-up detection as far as possible
Journey improves the ability of self coupling capacitance measurement technique anti-noise jamming.
Concrete optional, detection IC is additionally operable to obtain within the identical time cycle preset
Each first pressure difference Vpp1 of each second pressure difference Vpp2 and corresponding second pressure difference Vpp2
Each difference voltage Δ V;Carry out each difference voltage Δ V adding up and obtain cumulative magnitude of voltage Vs;
The changing value Δ C of receiving port RE self coupling electric capacity is judged according to cumulative magnitude of voltage Vs;When self coupling electric capacity
When changing value Δ C exceedes default fiducial value, it is judged that the touch port being connected with receiving port touches
Event.
Concrete operation principle is referred to the description in embodiment of the method that Fig. 4 is corresponding, the most not
Repeat again.
The self coupling capacitive detection circuit that the embodiment of the present invention provides, by the frequency of default transmitting signal and
Launch duration and use when detecting self coupling electric capacity the first reception signal and second to receive signal and transmitting
The pattern that signal synchronizes, solves the problem that self coupling capacitive detection scheme speed is unstable;Simultaneously because
Emission signal frequency can arbitrarily arrange the ability that improve self coupling capacitance measurement technique anti-noise jamming;
Owing to have employed the circuit in the present invention so that touch detection and use common chip just can realize, and
Implementation method is simple, flexibly.
One of ordinary skill in the art will appreciate that: realize all or part of step of said method embodiment
Suddenly can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer
In read/write memory medium, this program upon execution, performs to include the step of said method embodiment;
And aforesaid storage medium includes: ROM, RAM, magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention not office
Being limited to this, any those familiar with the art, can in the technical scope that the invention discloses
Readily occur in change or replace, all should contain within protection scope of the present invention.Therefore, the present invention
Protection domain should be as the criterion with described scope of the claims.