CN103686010A - ADC port simulation multi-IO-port key input device, television-system and method - Google Patents

ADC port simulation multi-IO-port key input device, television-system and method Download PDF

Info

Publication number
CN103686010A
CN103686010A CN201310604069.0A CN201310604069A CN103686010A CN 103686010 A CN103686010 A CN 103686010A CN 201310604069 A CN201310604069 A CN 201310604069A CN 103686010 A CN103686010 A CN 103686010A
Authority
CN
China
Prior art keywords
module
key
analogue
resistance
mcu
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
CN201310604069.0A
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201310604069.0A priority Critical patent/CN103686010A/en
Publication of CN103686010A publication Critical patent/CN103686010A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides an ADC port simulation multi-IO-port key input device, television-system and method. The device comprises at least one simulation key module. The input end of every simulation key module is connected with a power module; the output end of every simulation key module is connected with an ADC input port of a MCU module. Each simulation key module comprises a key and a resistor which are connected in series. The power module is connected to an interrupt input port of the MCU module through the simulation key modules. When triggered, the keys of the simulation key modules send interrupt signals to the MCU module. After receiving the interrupt signals through the interrupt input port of the MCU module, the MCU module responds to the interrupt signals and reads key actions which are done by the simulation key modules and which are sampled by the ADC input port of the MCU module. Scanning IO ports constantly is not required, MCU resources are saved, and power consumption is reduced.

Description

ADC port is simulated many IO mouth press key input device, television system and method
Technical field
The present invention relates to IO(input and output) mouthful key-press input technical field, relate in particular to ADC port and simulate many IO mouth press key input device, television system and method.
Background technology
The on off state that is button by key control adopting in current existing electric equipment is to realize by the low and high level of IO mouth, or convert low and high level to ADC(analog digital conversion) form of voltage sends to MCU, MCU(microprocessor) according to level height state or voltage swing, judge kind and the state of button.But MCU mono-road ADC input port only can be simulated an IO mouth key-press input, thereby cause the IO mouth inadequate resource of MCU.
The patent CN2704982 that open day is on June 15th, 2005 discloses the TV set circuit that a kind of ADC input port is simulated a plurality of IO mouth key-press inputs, referring to Fig. 1, it adopts six resistance and connects power voltage terminal, and six resistance button of connecting respectively, being then connected in parallel becomes ADC input port and inputs to MCU.But even if button does not have any action, the MCU of prior art still needs IO mouth to be scanned always, has taken so a large amount of MCU resources, increases power consumption.
Summary of the invention
In view of this, the invention provides ADC port and simulate many IO mouth press key input device, television system and method, it,, without IO mouth is scanned always, has saved MCU resource, has reduced power consumption.
The invention provides ADC port and simulate many IO mouth press key input device, comprise at least one analogue-key module, the input of each analogue-key module connects power module, output connects the ADC input port of MCU module, described in each, analogue-key module comprises telegraph key and the resistance of series connection, and described power module connects the interrupting input port of described MCU module through described analogue-key module.
When being triggered, the telegraph key in described analogue-key module sends interrupt signal to described MCU module.
Described MCU module receives after described interrupt signal by the interrupting input port of described MCU module, responds described interrupt signal, and reads the actuation of keys information that described analogue-key module that the ADC input port of described MCU module samples is carried out.
Further, when the interrupting input port of MCU module of the present invention receives interrupt signal and is less than predeterminated voltage value, interrupt signal described in described MCU module responds.
Further, the present invention also comprises a switch module, and the input of described switch module connects respectively described analogue-key module and power module, and the output of described switch module connects the interrupting input port of described MCU module.
When the voltage of described analogue-key module output is during higher than the default conducting voltage of described switch module, described switch module conducting, described power module is the interrupting input port to MCU module through described switch module output interrupt signal, described MCU module responds interrupt signal.
Further, switch module of the present invention is further a triode, and the base stage of described triode connects described analogue-key module, and collector electrode connects respectively the interrupting input port of described power module and described MCU module, grounded emitter.
Further, the present invention also comprises that power module described in one first resistance connects one end of described the first resistance, and the other end of described the first resistance connects respectively the interrupting input port of described MCU module and the collector electrode of described triode.
Further, the resistance value of the earth resistance in each analogue-key module of the present invention is identical.
Further, the present invention also comprises one second resistance, and described analogue-key module connects the base stage of described triode through described the second resistance.
Also comprise one the 3rd resistance, described analogue-key module connects the ADC input port of described MCU module through described the 3rd resistance.
Further, the present invention also comprises a diode, one the 4th resistance and one first electric capacity, described diode, the 4th resistance and the first Capacitance parallel connection are connected between the output and ground of described analogue-key module, the output of the positive pole of described diode difference connecting analog key-press module and one end of the second resistance, minus earth, one end of described the 4th resistance connects the other end of the second resistance, other end ground connection, the base stage of one end connecting triode of described the first electric capacity, other end ground connection.
The present invention also provides ADC port to simulate the television system of many IO mouth key-press input, described television system comprises MCU module, power module and the ADC port that is connected between described MCU module, power module is simulated many IO mouth press key input device, and described ADC port is simulated many IO mouth press key input device as mentioned above.
The present invention also provides ADC port to simulate the method for many IO mouth key-press input, comprises step:
Trigger the telegraph key in simulation key-press module, to MCU module, send interrupt signal.
MCU module receives described interrupt signal by the interrupting input port of MCU module, interrupt signal described in MCU module responds.
MCU module reads the actuation of keys information that analogue-key module that its ADC input port samples is carried out.
From above technical scheme, even if the present invention can not have any action as button as prior art, MCU still needs IO mouth to be scanned always.When the telegraph key of the present invention in described analogue-key module is triggered, the interrupting input port of described MCU module can receive interrupt signal, and described MCU module just can read the actuation of keys information that described analogue-key module that the ADC input port of its MCU module samples is carried out.That is to say, when only the telegraph key in analogue-key module is triggered, MCU module just can scan its IO mouth.Therefore, the present invention has saved MCU resource, has reduced power consumption.
Further, the present invention has increased the voltage range that switch module is adjusted MCU module responds interrupt signal, has increased ADC sample range, has expanded the sampling interval of button, has avoided the button that causes due to interference chaotic.
Accompanying drawing explanation
Fig. 1 is the structure chart that in prior art, ADC port is simulated many IO mouth press key input device;
Fig. 2 is the structure drawing of device of the embodiment of the present invention one, embodiment bis-, embodiment five;
Fig. 3 is the structure drawing of device of the embodiment of the present invention three;
Fig. 4 is the structure drawing of device of the embodiment of the present invention four;
Fig. 5 is the structure drawing of device of the embodiment of the present invention six;
Fig. 6 is the structure drawing of device of the embodiment of the present invention seven;
Fig. 7 is the structure drawing of device of the embodiment of the present invention eight;
Fig. 8 is the method flow diagram of the embodiment of the present invention nine.
Embodiment
Even if the present invention can not have any action as button as prior art, MCU still needs IO mouth to be scanned always.When the telegraph key of the present invention in described analogue-key module is triggered, the interrupting input port of described MCU module can receive interrupt signal, and described MCU module just can read the actuation of keys information that described analogue-key module that its ADC input port samples is carried out.That is to say, when only the telegraph key in analogue-key module is triggered, MCU module just can scan its IO mouth.Therefore, the present invention has saved MCU resource, has reduced power consumption.
For ease of explanation, the embodiment of the present invention all be take four analogue-key modules and is described as example.
Embodiment mono-
Referring to Fig. 2, the invention provides ADC port and simulate many IO mouth press key input device 2.Described device 2 comprises four analogue-key modules 21 that are connected in parallel between power module and the ADC input port of MCU module, and each analogue-key module 21 comprises a telegraph key 211 and an earth resistance 212 of series connection.
If when the telegraph key 211 in any one analogue-key module 21 is triggered, telegraph key 211 is pressed, telegraph key 211 presents closure state.The analogue-key module 21 that power module and telegraph key 211 are closure state forms closed-loop path, and power module can produce pressure drop behind described closed-loop path, and the voltage that power module sends to the ADC input port of described MCU module to receive can reduce.The resistance size of the earth resistance 212 of the size of power module process pressure drop that described closed-loop path produces in each analogue-key module 21 determines.Described MCU module reads the actuation of keys information that described analogue-key module 21 that its ADC input port samples is carried out.Therefore, described MCU module is that the voltage swing receiving by its ADC input port completes the actuation of keys information that scans described analogue-key module 21.
Power module of the present invention connects the interrupting input port of described MCU module through described analogue-key module 21.
When the telegraph key in described analogue-key module 21 is triggered, to the interrupting input port transmission interrupt signal of described MCU module.Described MCU module responds interrupt signal, described MCU module reads the actuation of keys information that described analogue-key module 21 that its ADC input port samples is carried out, and it is carried out to ADC(analog-to-digital conversion) conversion, complete the scanning to described analogue-key module 21.
Embodiment bis-
Referring to Fig. 2, further, when the telegraph key in described analogue-key module 21 is triggered, the interrupting input port of described MCU module receives interrupt signal.When the interrupting input port of described MCU module receives interrupt signal and is less than predeterminated voltage value, described MCU module responds interrupt signal.Described MCU module responds interrupt signal, described MCU module reads the actuation of keys information of the described analogue-key module 21 sampling through the ADC of MCU module input port.
If when the telegraph key 211 in any one analogue-key module 21 is triggered, telegraph key 211 is pressed, telegraph key 211 presents closure state.The analogue-key module 21 that power module and telegraph key 211 are closure state forms closed-loop path, and power module can produce pressure drop behind described closed-loop path, and the voltage that power module sends to the interrupting input port of described MCU module to receive also can reduce.Because the interrupting input port of MCU module can respond described interrupt signal when the voltage receiving (that is, interrupt signal) is less than predeterminated voltage value.Suppose that VDD is the output voltage values of power module, when value is 3.3V conventionally, predeterminated voltage value is set as 0.2VDD, i.e. 0.66V conventionally.Therefore,, while only having telegraph key 211 in there is an analogue-key module 21 to be triggered, described MCU module just can respond interrupt signal.Described MCU module responds interrupt signal, reads the actuation of keys information of the described analogue-key module 21 sampling through the ADC of MCU module input port, and described MCU module scans the actuation of keys information of described analogue-key module 21.Therefore,, even if the present invention can not have any action as button as prior art, the MCU of prior art still needs IO mouth to be scanned always, has saved MCU resource.
Because predeterminated voltage value is set as 0.66V conventionally, and only have power module when analogue-key module 21 sends to the magnitude of voltage of the interrupting input port of described MCU module to be less than predeterminated voltage value 0.66V, just can respond interrupt signal, the actuation of keys information of scanning analogue-key module 21.Therefore, the sample range of described analogue-key module 21 being less than or equal within the scope of predeterminated voltage value (0---0.66V).
Embodiment tri-
Referring to Fig. 3, the present invention also provides ADC port to simulate many IO mouth press key input device 3.Described device 3 comprises four analogue-key modules 31 that are connected in parallel between power module and the ADC input port of MCU module, and each analogue-key module 31 comprises a telegraph key 311 and a resistance 312 of series connection.
If when the telegraph key 311 in any one analogue-key module 31 is triggered, telegraph key 311 is pressed, telegraph key 311 presents closure state.The analogue-key module 31 that power module and telegraph key 311 are closure state forms closed-loop path, and power module can produce pressure drop behind described closed-loop path, and the voltage that power module sends to the ADC input port of described MCU module to receive can reduce.The resistance size of the resistance 312 of the size of power module process pressure drop that described closed-loop path produces in each analogue-key module 31 determines.Described MCU module reads the actuation of keys information that the described analogue-key module 31 that samples through its ADC input port is carried out.Therefore, described MCU module is that the voltage swing receiving by its ADC input port completes the actuation of keys information that scans described analogue-key module 31.
Power module of the present invention connects the interrupting input port of described MCU module through described analogue-key module 31.
When the telegraph key in described analogue-key module 31 is triggered, the interrupting input port of described MCU module receives interrupt signal.When the interrupting input port of described MCU module receives interrupt signal and is less than predeterminated voltage value, described MCU module responds interrupt signal.Described MCU module responds interrupt signal, described MCU module reads the actuation of keys information that described analogue-key module 31 that its ADC input port samples is carried out.
Further, the present embodiment also comprises a switch module 32, and the input of described switch module 32 connects respectively described analogue-key module 31 and power module, and the output of described switch module 32 connects the interrupting input port of described MCU module.
When the voltage of described analogue-key module 31 outputs is during higher than the default conducting voltage of described switch module 32, described switch module 32 conductings, described power module is the interrupting input port to MCU module through described switch module 32 output interrupt signals, described MCU module responds interrupt signal.
Because power module is exported interrupt signals to the interrupting input port of MCU module, described MCU module responds interrupt signal through described switch module 32 described in when switch module 32 is switched on.So, when switch module 32 is switched on, through described switch module 32, send to the interrupt signal (magnitude of voltage) of the interrupting input port of MCU module to be less than predeterminated voltage value.When that is to say switch module 32 conducting, MCU module can respond interrupt signal, and power module sends to the magnitude of voltage of described switching circuit 32 to be greater than described default conducting voltage through analogue-key module 31, and described MCU module can respond interrupt signal.Owing to only having telegraph key 311 in there is an analogue-key module 31 to be triggered, described MCU module just can respond interrupt signal.Therefore, the sample range of four analogue-key modules 31 is less than or equal between the output voltage of power module power supply in the conducting voltage that is greater than or equal to switch module 32.Suppose that VDD is the output voltage values of power module, when value is 3.3V conventionally, while being 0.7V as the conducting voltage value of switch module 32, the sample range of described analogue-key module 31 in the conducting voltage that is greater than or equal to switch module 32, be less than or equal between the output voltage of power module power supply (0.7V---3.3V).Like this, increase ADC sample range, expanded the sampling interval of button, avoided the button confusion causing due to interference.
Embodiment tetra-
Referring to Fig. 4, switch module 42 is further a triode described in the embodiment of the present invention four, and the base stage of described triode connects described analogue-key module 41, and collector electrode connects respectively the interrupting input port of described power module and described MCU module, grounded emitter.Described power module connects one end of described the first resistance R 1, and the other end of described the first resistance R 1 connects respectively the interrupting input port of described MCU module and the collector electrode of described triode.
When triode ends, power module becomes circuit breaker through analogue-key module to transistor base.Power module sends to the voltage (interrupt signal) of the interrupting input port of MCU module to be greater than voltage preset value through the first resistance R 1.Therefore, when triode ends, the voltage receiving due to MCU module is greater than voltage preset value, and MCU module does not respond interrupt signal, and described MCU module does not scan the actuation of keys information of described analogue-key module 31.The resistance of the first resistance R 1 is chosen as required by those skilled in the art, is generally chosen for 10K ohm.
In the time of triode conducting, power module forms loop to transistor base to emitter through analogue-key module, and power module forms loop through the first resistance R 1 and collector electrode to emitter.Like this, power module sends to the voltage (interrupt signal) of MCU module to be less than voltage preset value through described triode, MCU module responds interrupt signal, and described MCU module scans the actuation of keys information of described analogue-key module 31.
Therefore, switch module adopts triode, and circuit is simple and with low cost.
Embodiment five
The resistance value of the resistance described in the embodiment of the present invention five in each analogue-key module is identical.
If while being triggered due to the telegraph key in any one analogue-key module, telegraph key is pressed, telegraph key presents closure state.The analogue-key module that power module and telegraph key are closure state forms closed-loop path, and power module can produce pressure drop behind described closed-loop path, and the voltage that power module sends to the ADC input port of described MCU module to receive can reduce.The resistance size of the resistance of the size of power module process pressure drop that described closed-loop path produces in each analogue-key module determines.
The magnitude of voltage that only has power module to give the interrupting input port of described MCU module through analogue-key module just can respond interrupt signal while being less than predeterminated voltage value, the actuation of keys information of scanning analogue-key module 21.Therefore, according to analogue-key number of modules, in sample range, sample, if the resistance value of the resistance in analogue-key module is identical, a plurality of analogue-key modules in sample range according to the number average sample of analogue-key module.In circuit design, need to know the action of telegraph key in each analogue-key module, and then carry out keyboard-coding, in sample range, according to the number average sample of analogue-key module, can realize better simple, accurate circuit design.
Embodiment six
Referring to Fig. 5, the embodiment of the present invention six also comprises one second resistance R 2, and analogue-key module 51 is through the base stage of described the second resistance connecting triode.The device 5 that the ADC input port of MCU module is simulated a plurality of IO mouth key-press inputs also comprises one the 3rd resistance R 3, and described analogue-key module 51 connects the ADC input port of MCU module through described the 3rd resistance R 3.
Described the second resistance R 2, the 3rd resistance R 3, for the protection of circuit, prevent the circuit damage that electric current increases sharply and causes.Resistance value those skilled in the art of described the second resistance R 2, the 3rd resistance R 3 choose as required, and general the second resistance R 2 is chosen for 200 ohm, and the 3rd resistance R 3 is chosen for 1K ohm.
Described device 5 also comprises a diode D1, one the 4th resistance R 4 and one first capacitor C 1, the output of the positive pole difference connecting analog key-press module 51 of described diode D1 and one end of the second resistance, minus earth.One end of described the 4th resistance R 4 connects the other end of the second resistance R 2, other end ground connection, the base stage of one end connecting triode of described the first capacitor C 1, other end ground connection.
Described diode D1, the 4th resistance R 4 and one first capacitor C 1 are for the protection of circuit structure, and the first capacitor C 1 is also for filtering Alternating Component.Value those skilled in the art of described the 4th resistance R 4 and one first capacitor C 1 choose as required, and general the 4th resistance R 4 is chosen for 47K ohm, and the first capacitor C 1 is chosen for 0.1uF.
Described device 5 also comprises a diode D2, the second capacitor C 2, and described diode D2 and the second capacitor C 2 are connected in parallel between ADC input port line described analogue-key module and MCU module and ground.Described diode D2 and the second capacitor C 2 are for the protection of circuit structure, and described the second capacitor C 2 is also for filtering Alternating Component.Value those skilled in the art of described the second capacitor C 2 choose as required, and general the second capacitor C 2 is 1000pF.
Embodiment seven
Referring to Fig. 6, the present invention also provides ADC port to simulate the television system 6 of many IO mouth key-press input.
Described television system 6 comprises MCU module 61, power module 62 and the ADC port that is connected between described MCU module 61, power module 62 is simulated many IO mouth press key input device 63.
ADC port is simulated many IO mouth press key input device 63 and is comprised four analogue-key modules 631 that are connected in parallel between power module 62 and the ADC input port of MCU module 61, and each analogue-key module 631 comprises a telegraph key 6311 and an earth resistance 6312 of series connection.
If when the telegraph key 6311 in any one analogue-key module 631 is triggered, telegraph key 6311 is pressed, telegraph key 6311 presents closure state.Power module 62 forms closed-loop path with the analogue-key module 631 that telegraph key 6311 is closure state, power module 62 can produce pressure drop behind described closed-loop path, and the voltage that power module 62 sends to the ADC input port of described MCU module 61 to receive can reduce.The resistance size of the earth resistance 6312 of the size of power module 62 process pressure drops that described closed-loop path produces in each analogue-key module 631 determines.Described MCU module 61 reads the actuation of keys information that the described analogue-key module 631 that samples through its ADC input port is carried out.Therefore, described MCU module 61 is that the voltage swing receiving by its ADC input port completes the actuation of keys information that scans described analogue-key module 631.
Power module of the present invention connects the interrupting input port of described MCU module through described analogue-key module 631.
When the telegraph key in described analogue-key module 631 is triggered, the interrupting input port of described MCU module 61 receives interrupt signal.Described MCU module 61 response interrupt signals, described MCU module 61 reads the actuation of keys information that described analogue-key module 631 that its ADC input port samples is carried out.
Embodiment eight
Referring to Fig. 7, the present invention also provides ADC port to simulate the television system 7 of many IO mouth key-press input.
Described television system 7 comprises MCU module 71, power module 72 and the ADC port that is connected between described MCU module 71, power module 72 is simulated many IO mouth press key input device 73.
ADC port is simulated many IO mouth press key input device 73 and is comprised four analogue-key modules 731 that are connected in parallel between power module 72 and the ADC input port of MCU module 71, and each analogue-key module 731 comprises a telegraph key 7311 and an earth resistance 7312 of series connection.
If when the telegraph key 7311 in any one analogue-key module 731 is triggered, telegraph key 7311 is pressed, telegraph key 7311 presents closure state.Power module 72 forms closed-loop path with the analogue-key module 731 that telegraph key 7311 is closure state, power module 72 can produce pressure drop behind described closed-loop path, and the voltage that power module 72 sends to the ADC input port of described MCU module 71 to receive can reduce.The resistance size of the earth resistance 7312 of the size of power module 72 process pressure drops that described closed-loop path produces in each analogue-key module 731 determines.Described MCU module 71 reads the actuation of keys information that the described analogue-key module 731 that samples through its ADC input port is carried out.Therefore, described MCU module 71 is that the voltage swing receiving by ADC input port completes the actuation of keys information that scans described analogue-key module 731.
Power module of the present invention connects the interrupting input port of described MCU module through described analogue-key module 731.
When the telegraph key in described analogue-key module 731 is triggered, the interrupting input port of described MCU module 71 receives interrupt signal.Described MCU module 71 response interrupt signals, described MCU module 71 reads the actuation of keys information that described analogue-key module 731 that its ADC input port samples is carried out.
Further, the present embodiment also comprises a switch module 732, and the input of described switch module 732 connects respectively described analogue-key module 731 and power module 72, and the output of described switch module 732 connects the interrupting input port of described MCU module 71.
When the voltage of described analogue-key module 731 outputs is during higher than the default conducting voltage of described switch module 732, described switch module 732 conductings, described power module 72 is the interrupting input port to MCU module 71 through described switch module 732 output interrupt signals, described MCU module 71 response interrupt signals.
Because power module 72 is exported interrupt signals to the interrupting input port of MCU module 71 through described switch module 732 described in when switch module 732 is switched on, described MCU module 71 response interrupt signals.So, when switch module 732 is switched on, through described switch module 732, send to the interrupt signal (magnitude of voltage) of the interrupting input port of MCU module 71 to be less than predeterminated voltage value.When that is to say switch module 732 conducting, MCU module 71 can respond interrupt signal, be that power module 72 sends to the magnitude of voltage of described switching circuit 732 to be greater than described default conducting voltage through analogue-key module 731, described MCU module 71 can respond interrupt signal.Owing to only having telegraph key 7311 in there is an analogue-key module 731 to be triggered, described MCU module 71 just can respond interrupt signal.Therefore, the sample range of four analogue-key modules 731 is less than or equal between the output voltage of power module 72 power supplies in the conducting voltage that is greater than or equal to switch module 732.Suppose that VDD is the output voltage values of power module 72, when value is 3.3V conventionally, while being 0.7V as the conducting voltage value of switch module 732, the sample range of described analogue-key module 731 in the conducting voltage that is greater than or equal to switch module 732, be less than or equal between the output voltage of power module 72 power supply (0.7V---3.3V).Like this, increase ADC sample range, expanded the sampling interval of button, avoided the button confusion causing due to interference.
Described switch module 732 is further a triode, and the base stage of described triode connects described analogue-key module 41, and collector electrode connects respectively the interrupting input port of described power module 72 and described MCU module 71, grounded emitter.Described power module 72 connects one end of described the first resistance R 1, and the other end of described the first resistance R 1 connects respectively the interrupting input port of described MCU module 71 and the collector electrode of described triode.
When triode ends, power module 72 becomes circuit breaker through analogue-key module to transistor base.Power module 72 sends to the voltage (interrupt signal) of the interrupting input port of MCU module 71 to be greater than voltage preset value through the first resistance R 1.Therefore, when triode ends, the voltage receiving due to MCU module 71 is greater than voltage preset value, and MCU module 71 does not respond interrupt signal, and described MCU module 71 does not scan the actuation of keys information of described analogue-key module 31.The resistance of the first resistance R 1 is chosen as required by those skilled in the art, is generally chosen for 10K ohm.
In the time of triode conducting, power module 72 forms loop to transistor base to emitter through analogue-key module 731, and power module 72 forms loop through the first resistance R 1 and collector electrode to emitter.Like this, power module 72 sends to the voltage (interrupt signal) of MCU module 71 to be less than voltage preset value through described triode, MCU module 71 response interrupt signals, the actuation of keys information of the described analogue-key module 731 of described MCU module 71 scanning.
Therefore, switch module 732 adopts triode, and circuit is simple and with low cost.
The resistance value of the earth resistance 7312 in described each analogue-key module 731 is identical.
If while being triggered due to the telegraph key 7311 in any one analogue-key module 731, telegraph key 7311 is pressed, telegraph key 7311 presents closure state.The analogue-key module 731 that power module and telegraph key 7311 are closure state forms closed-loop path, and power module can produce pressure drop behind described closed-loop path, and the voltage that power module sends to the ADC input port of described MCU module to receive can reduce.The resistance size of the earth resistance 7312 of the size of power module process pressure drop that described closed-loop path produces in each analogue-key module 731 determines.
The magnitude of voltage that only has power module to give the interrupting input port of described MCU module through analogue-key module 731 just can respond interrupt signal while being less than predeterminated voltage value, the actuation of keys information of scanning analogue-key module 73121.Therefore, according to analogue-key module 731 numbers, in sample range, sample, if the resistance value of the earth resistance 7312 in analogue-key module 731 is identical, a plurality of analogue-key modules 731 in sample range according to the number average sample of analogue-key module 731.In circuit design, need to know the action of telegraph key 7311 in each analogue-key module 731, and then carry out keyboard-coding, in sample range, according to the number average sample of analogue-key module 731, can realize better simple, accurate circuit design.
The embodiment of the present invention six also comprises one second resistance R 2, and analogue-key module 731 is through the base stage of described the second resistance R 2 connecting triodes.The device 73 that ADC input port is simulated a plurality of IO mouth key-press inputs also comprises one the 3rd resistance R 3, and described analogue-key module 731 connects the ADC input port of MCU module through described the 3rd resistance R 3.
Described the second resistance R 2, the 3rd resistance R 3, for the protection of circuit, prevent the circuit damage that electric current increases sharply and causes.Resistance value those skilled in the art of described the second resistance R 2, the 3rd resistance R 3 choose as required, and general the second resistance R 2 is chosen for 200 ohm, and the 3rd resistance R 3 is chosen for 1K ohm.
Described device 73 also comprises a diode D1, one the 4th resistance R 4 and one first capacitor C 1, the output of the positive pole difference connecting analog key-press module 731 of described diode D1 and one end of the second resistance, minus earth.One end of described the 4th resistance R 4 connects the other end of the second resistance R 2, other end ground connection, the base stage of one end connecting triode of described the first capacitor C 1, other end ground connection.
Described diode D1, the 4th resistance R 4 and one first capacitor C 1 are for the protection of circuit structure, and the first capacitor C 1 is also for filtering Alternating Component.Value those skilled in the art of described the 4th resistance R 4 and one first capacitor C 1 choose as required, and general the 4th resistance R 4 is chosen for 47K ohm, and the first capacitor C 1 is chosen for 0.1uF.
Described device 73 also comprises a diode D2, the second capacitor C 2, and described diode D2 and the second capacitor C 2 are connected in parallel between ADC input port line described analogue-key module and MCU module 71 and ground.Described diode D2 and the second capacitor C 2 are for the protection of circuit structure, and described the second capacitor C 2 is also for filtering Alternating Component.Value those skilled in the art of described the second capacitor C 2 choose as required, and general the second capacitor C 2 is 1000pF.
Embodiment nine
Referring to Fig. 8, with respect to said method, the present invention also provides ADC port to simulate the method for many IO mouth key-press input, comprises step:
801, trigger the telegraph key in simulation key-press module, to MCU module, send interrupt signal.
If trigger the telegraph key in any one analogue-key module, telegraph key is pressed, and analogue-key module sends interrupt signal to MCU module.
802, MCU module is by the interrupting input port receive interruption signal of MCU module, interrupt signal described in MCU module responds.
803, MCU module reads the key information that analogue-key module that its ADC input port samples is carried out.
If when the telegraph key in any one analogue-key module is triggered, telegraph key is pressed, telegraph key presents closure state.The analogue-key module that power module and telegraph key are closure state forms closed-loop path, and power module can produce pressure drop behind described closed-loop path, and the voltage that power module sends to the ADC input port of MCU module to receive can reduce.The resistance size of the earth resistance of the size of power module process pressure drop that described closed-loop path produces in each analogue-key module determines.Described MCU module reads the actuation of keys information that described analogue-key module that its ADC input port samples is carried out.Therefore, described MCU module is that the voltage swing receiving by ADC input port completes the actuation of keys information that scans described analogue-key module.
The present invention is when only the telegraph key in analogue-key module is triggered, and MCU module receives interrupt signal, just can scan its IO mouth.Therefore, the present invention has saved MCU resource, has reduced power consumption.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (10)

1.ADC port is simulated many IO mouth press key input device, comprise at least one analogue-key module, the input of each analogue-key module connects power module, output connects the ADC input port of MCU module, described in each, analogue-key module comprises telegraph key and the resistance of series connection, it is characterized in that, described power module connects the interrupting input port of described MCU module through described analogue-key module
When being triggered, the telegraph key in described analogue-key module sends interrupt signal to described MCU module;
Described MCU module receives after described interrupt signal by the interrupting input port of described MCU module, responds described interrupt signal, and reads the actuation of keys information that described analogue-key module that the ADC input port of described MCU module samples is carried out.
2. device according to claim 1, is characterized in that, when the interrupting input port of described MCU module receives interrupt signal and is less than predeterminated voltage value, and interrupt signal described in described MCU module responds.
3. device according to claim 2, is characterized in that, also comprises a switch module, and the input of described switch module connects respectively described analogue-key module and power module, and the output of described switch module connects the interrupting input port of described MCU module,
When the voltage of described analogue-key module output is during higher than the default conducting voltage of described switch module, described switch module conducting, described power module is the interrupting input port to MCU module through described switch module output interrupt signal, described MCU module responds interrupt signal.
4. device according to claim 3, it is characterized in that, described switch module is further a triode, and the base stage of described triode connects described analogue-key module, collector electrode connects respectively the interrupting input port of described power module and described MCU module, grounded emitter.
5. device according to claim 4, it is characterized in that, also comprise that power module described in one first resistance connects one end of described the first resistance, the other end of described the first resistance connects respectively the interrupting input port of described MCU module and the collector electrode of described triode.
6. device according to claim 1, is characterized in that, the resistance value of the earth resistance in described each analogue-key module is identical.
7. according to the device described in claim 1 or 4, it is characterized in that,
Also comprise one second resistance, described analogue-key module connects the base stage of described triode through described the second resistance;
Also comprise one the 3rd resistance, described analogue-key module connects the ADC input port of described MCU module through described the 3rd resistance.
8. device according to claim 7, is characterized in that,
Also comprise a diode, one the 4th resistance and one first electric capacity, described diode, the 4th resistance and the first Capacitance parallel connection are connected between the output and ground of described analogue-key module, the output of the positive pole difference connecting analog key-press module of described diode and one end of the second resistance, minus earth, one end of described the 4th resistance connects the other end of the second resistance, other end ground connection, the base stage of one end connecting triode of described the first electric capacity, other end ground connection.
9.ADC port is simulated the television system of many IO mouth key-press input, described television system comprises MCU module, power module and the ADC port that is connected between described MCU module, power module is simulated many IO mouth press key input device, described ADC port simulate many IO mouth press key input device as arbitrary in claim 1-8 as described in.
10.ADC port is simulated the method for many IO mouth key-press input, comprises step:
Trigger the telegraph key in simulation key-press module, to MCU module, send interrupt signal;
MCU module receives described interrupt signal by the interrupting input port of MCU module, interrupt signal described in MCU module responds;
MCU module reads the actuation of keys information that analogue-key module that its ADC input port samples is carried out.
CN201310604069.0A 2013-11-22 2013-11-22 ADC port simulation multi-IO-port key input device, television-system and method Pending CN103686010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310604069.0A CN103686010A (en) 2013-11-22 2013-11-22 ADC port simulation multi-IO-port key input device, television-system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310604069.0A CN103686010A (en) 2013-11-22 2013-11-22 ADC port simulation multi-IO-port key input device, television-system and method

Publications (1)

Publication Number Publication Date
CN103686010A true CN103686010A (en) 2014-03-26

Family

ID=50322146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310604069.0A Pending CN103686010A (en) 2013-11-22 2013-11-22 ADC port simulation multi-IO-port key input device, television-system and method

Country Status (1)

Country Link
CN (1) CN103686010A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107340872A (en) * 2016-04-29 2017-11-10 技嘉科技股份有限公司 Key system and its control method
CN107579733A (en) * 2017-08-15 2018-01-12 北京奇虎科技有限公司 A kind of key circuit and key device
CN111340983A (en) * 2020-02-21 2020-06-26 德施曼机电(中国)有限公司 Intelligent lock verification system and method for preventing Tesla coil from being opened

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2580444Y (en) * 2002-10-25 2003-10-15 上海精密科学仪器有限公司 Matrix keyboard circuit
CN2704982Y (en) * 2004-06-26 2005-06-15 海信集团有限公司 TV circuit with one input port for simulating several I/O inputs
KR20060062758A (en) * 2004-12-06 2006-06-12 엘지전자 주식회사 Apparatus and method for improving of key recognition accuracy in multi key demanded terminal
CN101102348A (en) * 2007-06-28 2008-01-09 中兴通讯股份有限公司 A keyboard circuit and method for recognizing hand-held mobile device
CN201039440Y (en) * 2007-03-14 2008-03-19 中兴通讯股份有限公司 A cable control earphone for multi-key and single detection end
US20110068772A1 (en) * 2009-09-21 2011-03-24 Samsung Electronics Co. Ltd. Apparatus and method for detecting mode change in an electronic device
CN102467241A (en) * 2010-11-12 2012-05-23 珠海全志科技股份有限公司 Keyboard of mobile terminal and method for realizing keying and keyboard lock for same
CN203608276U (en) * 2013-11-22 2014-05-21 乐视致新电子科技(天津)有限公司 ADC port simulated multi-IO port key input device and television system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2580444Y (en) * 2002-10-25 2003-10-15 上海精密科学仪器有限公司 Matrix keyboard circuit
CN2704982Y (en) * 2004-06-26 2005-06-15 海信集团有限公司 TV circuit with one input port for simulating several I/O inputs
KR20060062758A (en) * 2004-12-06 2006-06-12 엘지전자 주식회사 Apparatus and method for improving of key recognition accuracy in multi key demanded terminal
CN201039440Y (en) * 2007-03-14 2008-03-19 中兴通讯股份有限公司 A cable control earphone for multi-key and single detection end
CN101102348A (en) * 2007-06-28 2008-01-09 中兴通讯股份有限公司 A keyboard circuit and method for recognizing hand-held mobile device
US20110068772A1 (en) * 2009-09-21 2011-03-24 Samsung Electronics Co. Ltd. Apparatus and method for detecting mode change in an electronic device
CN102467241A (en) * 2010-11-12 2012-05-23 珠海全志科技股份有限公司 Keyboard of mobile terminal and method for realizing keying and keyboard lock for same
CN203608276U (en) * 2013-11-22 2014-05-21 乐视致新电子科技(天津)有限公司 ADC port simulated multi-IO port key input device and television system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107340872A (en) * 2016-04-29 2017-11-10 技嘉科技股份有限公司 Key system and its control method
CN107579733A (en) * 2017-08-15 2018-01-12 北京奇虎科技有限公司 A kind of key circuit and key device
CN111340983A (en) * 2020-02-21 2020-06-26 德施曼机电(中国)有限公司 Intelligent lock verification system and method for preventing Tesla coil from being opened
CN111340983B (en) * 2020-02-21 2022-02-11 德施曼机电(中国)有限公司 Intelligent lock verification system and method for preventing Tesla coil from being opened

Similar Documents

Publication Publication Date Title
CN201927859U (en) Reusable interface
CN201503689U (en) Video equipment
CN103678226A (en) General purpose input/output (GPIO) port reuse circuit and method of chip
CN102075194A (en) Circuit and method for scanning keyboard and electronic equipment
CN103324363A (en) Photoelectric signal processing device and infrared touch screen
CN103701472A (en) Digital keying circuit and keying equipment
CN103686010A (en) ADC port simulation multi-IO-port key input device, television-system and method
CN113514673B (en) Touch channel switching circuit, device and detection system
CN202339631U (en) Transmitting and learning control circuit of remote control, remote control and tablet computer
CN102624957B (en) Detection system for earphone drive-by-wire button of mobile phone
CN205265658U (en) Switching signal input circuit
CN203608276U (en) ADC port simulated multi-IO port key input device and television system
CN202931272U (en) Electronic device and signal one-out-of-two circuit thereof
CN201571142U (en) Signal switching circuit and television set test circuit
CN203772995U (en) Interface short-circuit detector
CN202841104U (en) Button detection circuit
CN202906437U (en) Input undervoltage protection circuit
CN206370027U (en) Electric boot-strap circuit on a kind of simple and practical pure hardware
CN201571151U (en) Multiway voltage switching circuit and television set test circuit
CN103391405A (en) Signal switching device and electronic device with signal switching device
CN102681449A (en) Switching value input circuit for controller special for engineering machinery
CN208999815U (en) Conversion circuit, pinboard and control system
CN104836438A (en) Switch circuit device and driving circuit
CN203480829U (en) Analog audio signal self-check system
CN102857232B (en) A kind of key press detecting circuit and detection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into 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: 20140326