CN106777685A - A kind of touch key-press chip based on MCU - Google Patents

A kind of touch key-press chip based on MCU Download PDF

Info

Publication number
CN106777685A
CN106777685A CN201611157029.6A CN201611157029A CN106777685A CN 106777685 A CN106777685 A CN 106777685A CN 201611157029 A CN201611157029 A CN 201611157029A CN 106777685 A CN106777685 A CN 106777685A
Authority
CN
China
Prior art keywords
mcu
oscillator
touch key
press
osc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611157029.6A
Other languages
Chinese (zh)
Inventor
万上宏
叶媲舟
黎冰
涂柏生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Original Assignee
SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd filed Critical SHENZHEN BOJUXING INDUSTRIAL DEVELOPMENT Co Ltd
Priority to CN201611157029.6A priority Critical patent/CN106777685A/en
Publication of CN106777685A publication Critical patent/CN106777685A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2115/00Details relating to the type of the circuit
    • G06F2115/10Processors

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of touch key-press chip based on MCU, including reference oscillator REF_OSC, touch sensible oscillator SENS_OSC, clock gating unit CG1, clock gating unit CG2, touch key-press detection unit TK_DET and MCU kernel MCU_CORE, reference oscillator REF_OSC oscillators are responsible for producing reference clock clk_ref.The present invention realizes effective touch key-press and detects with succinct inside structure, there is low production cost, based on MCU kernels, when applying, user can set different detection threshold values according to the sensitivity of different application scenarios requirements, so the range of application of chip is wider;After detecting that effective degree exceedes n times, so that detection mistake caused by preventing from disturbing, chip user can be arranged in a period of time, just make touch key-press is effectively judged, so that application system has stronger antijamming capability.

Description

A kind of touch key-press chip based on MCU
Technical field
The present invention relates to a kind of chip, specifically a kind of touch key-press chip based on MCU.
Background technology
The sensitivity calibration of touch key-press chip and functional simulation checking are all realized in plate level in current IC designs, is being passed The IC performance functional simulations of system are confined to simulation hardware functional verification, are confined to the exploitation of bottom, do not form intelligentized people Machine interactive system, each function needs to be tested by a set of hardware, with test performance and the in-depth of emulation, work( The performance for being required for increasing substantially hardware with analog simulation is able to verify that, accurately to be tested and simulated effect, but this Hardware system cost will certainly be caused to be continuously increased, effect is not significantly increased but, cause the construction cycle elongated, cost is increasing Plus.
The content of the invention
It is an object of the invention to provide a kind of touch key-press chip based on MCU, to solve to be carried in above-mentioned background technology The problem for going out.
To achieve the above object, the present invention provides following technical scheme:
A kind of touch key-press chip based on MCU, including reference oscillator REF_OSC, touch sensible oscillator SENS_OSC, when Clock door control unit CG1, clock gating unit CG2, touch key-press detection unit TK_DET and MCU kernel MCU_CORE, reference Oscillator REF_OSC oscillators are responsible for producing reference clock clk_ref.Clock gating unit CG1 is responsible for reference clock clk_ Ref is gated, and when it is effective status high that reference oscillator enables signal ren, clock gating unit CG1 is opened, by referring to The reference clock clk_ref that oscillator REF_OSC oscillators are produced is transported to touch key-press detection unit TK_DET, works as button When effectively being pressed, the frequency of touch sensible oscillator SENS_OSC diminishes;Clock gating unit CG2 is responsible for button clock clk_ Key is gated, and when it is effective status high that touch sensible oscillator enables signal sen, clock gating unit CG2 is opened, by Touch sensible oscillator produces button clock clk_key to be transported to touch key-press detection unit TK_DET, MCU kernel MCU_ CORE performs corresponding operation according to user-defined instruction.
As further scheme of the invention:Touch sensible oscillator SENS_OSC can be considered as a pressure by sensing Device, under the cooperation of some external circuits, the pressure on button can be converted into the change of the frequency of certain amplitude.
As further scheme of the invention:MCU kernels MCU_CORE exports effective reference oscillator and enables signal After ren and touch sensible oscillator enable signal sen, touch key-press detection unit TK_DET could obtain having for need of work Effect clock.
Compared with prior art, the beneficial effects of the invention are as follows:The present invention is realized effectively with succinct inside structure Touch key-press detects there is low production cost, based on MCU kernels, in use, user can be according to different applications The sensitivity of scene requirement sets different detection threshold values, so the range of application of chip is wider;In order to prevent interference caused Detection mistake, chip user can be arranged on a period of time in, when detect effective degree exceed n times after, just make will touch by Key effectively judges, so that application system has stronger antijamming capability.
Brief description of the drawings
Fig. 1 is the schematic diagram of the touch key-press effective detection of the touch key-press chip based on MCU.
Fig. 2 is the process chart for obtaining detecting count value det_cnt of touch key-press detection unit.
Specific embodiment
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 carried out clear, complete Site preparation is described.
Fig. 1~2 are referred to, in the embodiment of the present invention, a kind of touch key-press chip based on MCU, chip internal includes ginseng Examine oscillator REF_OSC, touch sensible oscillator SENS_OSC, clock gating unit CG1, clock gating unit CG2, touch by Key detection unit TK_DET and MCU kernel MCU_CORE.
Reference oscillator REF_OSC oscillators are responsible for producing reference clock clk_ref.Clock gating unit CG1 is responsible for right Reference clock clk_ref is gated, when it is effective status high that reference oscillator enables signal ren, clock gating unit CG1 Open, the reference clock clk_ref produced by reference oscillator REF_OSC oscillators is transported to touch key-press detection unit TK_DET。
Touch sensible oscillator SENS_OSC can also be considered as a pressure by sensor, and it matches somebody with somebody some external circuits Under conjunction, the pressure on button can be converted into the change of the frequency of certain amplitude.In the application, when button is effectively pressed When, the frequency of touch sensible oscillator SENS_OSC will diminish.Clock gating unit CG2 is responsible for button clock clk_key and enters Row gate, when it is effective status high that touch sensible oscillator enables signal sen, clock gating unit CG2 is opened, and is felt by touching Oscillator is answered to produce button clock clk_key to be transported to touch key-press detection unit TK_DET.
MCU kernels MCU_CORE can perform corresponding operation according to user-defined instruction.Touch key-press is effectively examined The principle of survey is as shown in Figure 1.In touch key-press application scenarios, by the course of work of the whole chip of nuclear control in MCU.In MCU After core exports effective reference oscillator enable signal ren and touch sensible oscillator enable signal sen, touch key-press detection Unit TK_DET could obtain the efficient clock of need of work.Some configuration informations of touch key-press detection unit TK_DET work Config also goes control by user by MCU kernels.Be delivered to for time slot configuration information cfg_slot tactile by MCU kernels MCU_CORE Button detection unit TK_DET is touched, touch key-press detection unit is produced according to clock configuration information and refers to time slot accordingly, is passed through After the treatment of the synchronization unit SYNC inside touch key-press detection unit, then by working in the detection meter of button clock clk_key Number device is obtained detecting count value det_cnt, then returns to detection count value with reference to being counted in the time slot effective time Into MCU kernels.When being triggered in the absence of effective touch key-press, touch sensible oscillator SENS_OSC does not have change substantially Change, or the only deviation of very little.When there is effective touch key-press and trigger, touch sensible oscillator SENS_OSC outputs when Clock frequency occurs the negative offset of certain amplitude.When the scheme of touch key-press detection is based on the button in effective touch key-press The clock frequency of clock clk_key occurs the principle that certain amplitude diminishes.When user uses chip, parameter configuration product is first passed through The a certain reference time slot of life, then obtains detection count value false by the detection counter inside touch key-press detection unit TK_DET If value is A.Then MCU kernels are repeated continuously the same reference time slot of generation, and again by touch key-press detection unit TK_DET is assumed to be B to reference to being counted in time slot effective time, obtaining detection count value.User can an advance detection Threshold value, works as B<When the value of A and A-B is more than detection threshold value, there is effective touch key-press triggering in judgement.In use, user Different detection threshold values can be set according to the sensitivity of different application scenarios requirements.In order to detection is wrong caused by preventing from disturbing By mistake, user can be arranged in a period of time, after detecting that effective degree exceedes n times, just made and effectively judged touch key-press, So that application system has stronger antijamming capability.
The course of work for obtaining detection count value det_cnt of touch key-press detection unit is as shown in Figure 2.MCU kernels are defeated After going out effective reference oscillator enable signal ren, touch key-press detection unit TK_DET obtains effective reference clock clk_ ref.When rising edge detection circuit RISE_DET detects the rising edge saltus step of effective reference oscillator enable signal ren, will Can be high level effective status by time slot register SLOT set, and time slot counter is zeroed out, time slot counter Since then, start from scratch carries out accumulated counts to SLOT_CNT.When the count value of time slot counter SLOT_CNT is matched somebody with somebody equal to time slot When putting the value of register CFG_SLOT, the signal exported by comparator will effectively trigger time slot register SLOT by high level shape State is reset to low level state.By above-mentioned process, obtain effectively referring to time slot signal slot.With reference to time slot signal slot By after the treatment of the synchronization unit SYNC inside touch key-press detection unit, then by working in button clock clk_key's Detection counter obtains detection count value det_cnt with reference to being counted in the effective window of time slot.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be in other specific forms realized.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit requires to be limited rather than described above, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference in claim should not be considered as the claim involved by limitation.
Moreover, it will be appreciated that although the present specification is described in terms of embodiments, not each implementation method is only wrapped Containing an independent technical scheme, this narrating mode of specification is only that for clarity, those skilled in the art should Specification an as entirety, the technical scheme in each embodiment can also be formed into those skilled in the art through appropriately combined May be appreciated other embodiment.

Claims (3)

1. a kind of touch key-press chip based on MCU, including reference oscillator REF_OSC, touch sensible oscillator SENS_OSC, Clock gating unit CG1, clock gating unit CG2, touch key-press detection unit TK_DET and MCU kernel MCU_CORE, its It is characterised by, reference oscillator REF_OSC oscillators are responsible for producing reference clock clk_ref, clock gating unit CG1 to be responsible for right Reference clock clk_ref is gated, when it is effective status high that reference oscillator enables signal ren, clock gating unit CG1 Open, the reference clock clk_ref produced by reference oscillator REF_OSC oscillators is transported to touch key-press detection unit TK_DET, when button is effectively pressed, the frequency of touch sensible oscillator SENS_OSC diminishes;Clock gating unit CG2 bears Duty button clock clk_key is gated, when it is effective status high that touch sensible oscillator enables signal sen, Clock gating Unit CG2 is opened, and produces button clock clk_key to be transported to touch key-press detection unit TK_ by touch sensible oscillator DET, MCU kernel MCU_CORE perform corresponding operation according to user-defined instruction.
2. the touch key-press chip based on MCU according to claim 1, it is characterised in that touch sensible oscillator SENS_ OSC can be considered as a pressure by sensor, under the cooperation of some external circuits, the pressure on button can be converted into one The change of the frequency of tentering degree.
3. the touch key-press chip based on MCU according to claim 2, it is characterised in that MCU kernels MCU_CORE is exported After effective reference oscillator enables signal ren and touch sensible oscillator enable signal sen, touch key-press detection unit TK_DET could obtain the efficient clock of need of work.
CN201611157029.6A 2016-12-15 2016-12-15 A kind of touch key-press chip based on MCU Pending CN106777685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611157029.6A CN106777685A (en) 2016-12-15 2016-12-15 A kind of touch key-press chip based on MCU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611157029.6A CN106777685A (en) 2016-12-15 2016-12-15 A kind of touch key-press chip based on MCU

Publications (1)

Publication Number Publication Date
CN106777685A true CN106777685A (en) 2017-05-31

Family

ID=58888986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611157029.6A Pending CN106777685A (en) 2016-12-15 2016-12-15 A kind of touch key-press chip based on MCU

Country Status (1)

Country Link
CN (1) CN106777685A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201294510Y (en) * 2008-10-08 2009-08-19 四川长虹空调有限公司 Touch key device
CN104216580A (en) * 2013-06-05 2014-12-17 硕呈科技股份有限公司 Integratable circuit achieving touch capacitor sensing through electric charge sharing
CN204537702U (en) * 2015-01-21 2015-08-05 深圳市汇顶科技股份有限公司 Low power consumption memories interface circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201294510Y (en) * 2008-10-08 2009-08-19 四川长虹空调有限公司 Touch key device
CN104216580A (en) * 2013-06-05 2014-12-17 硕呈科技股份有限公司 Integratable circuit achieving touch capacitor sensing through electric charge sharing
CN204537702U (en) * 2015-01-21 2015-08-05 深圳市汇顶科技股份有限公司 Low power consumption memories interface circuit

Similar Documents

Publication Publication Date Title
US8850608B2 (en) Embedded ring oscillator network for integrated circuit security and threat detection
Narasimhan et al. Hardware Trojan detection by multiple-parameter side-channel analysis
Forte et al. Temperature tracking: An innovative run-time approach for hardware Trojan detection
Nguyen et al. Creating a backscattering side channel to enable detection of dormant hardware trojans
Agrawal et al. Trojan detection using IC fingerprinting
CN105531654B (en) Injection touch noise analysis
Narasimhan et al. Improving IC security against Trojan attacks through integration of security monitors
US10783248B2 (en) Determining an aspect of behavior of an embedded device such as, for example, detecting unauthorized modifications of the code and/or behavior of an embedded device
Zheng et al. SeMIA: Self-similarity-based IC integrity analysis
CN104881174B (en) A kind of method and device of dynamic adjustment sensitivity of touch screen
Chen et al. Toward FPGA security in IoT: a new detection technique for hardware Trojans
Ma et al. Entropy evaluation for oscillator-based true random number generators
EP3232312B1 (en) Method, apparatus and terminal device for setting interrupt threshold for fingerprint identification device
CN101598986B (en) Touch detection device capable of saving power source consumption
Zheng et al. DScanPUF: A delay-based physical unclonable function built into scan chain
CN111027270A (en) Method and circuit for credible design of integrated circuit design flow
Chen et al. A general framework for hardware trojan detection in digital circuits by statistical learning algorithms
CN209562594U (en) Smart machine key control device
Zheng et al. SACCI: Scan-based characterization through clock phase sweep for counterfeit chip detection
Jin et al. Real-time trust evaluation in integrated circuits
Anik et al. Detecting failures and attacks via digital sensors
Kutzner et al. Hardware trojan design and detection: a practical evaluation
CN105204319B (en) A kind of measurement method and device of PET single events time of origin
Wei et al. Gate characterization using singular value decomposition: Foundations and applications
WO2021082007A1 (en) Device opening/closing cover detection method, touch controller, touchpad and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531