[go: up one dir, main page]

CN110989451A - Multi-point touch and remote control shared detection control method - Google Patents

Multi-point touch and remote control shared detection control method Download PDF

Info

Publication number
CN110989451A
CN110989451A CN201911314059.7A CN201911314059A CN110989451A CN 110989451 A CN110989451 A CN 110989451A CN 201911314059 A CN201911314059 A CN 201911314059A CN 110989451 A CN110989451 A CN 110989451A
Authority
CN
China
Prior art keywords
pin
touch
remote control
key
mcu chip
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.)
Granted
Application number
CN201911314059.7A
Other languages
Chinese (zh)
Other versions
CN110989451B (en
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.)
Guangdong Jinlaite Intelligent Technology Co ltd
Original Assignee
Guangdong Kennede Electronics Manufacturing 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 Guangdong Kennede Electronics Manufacturing Co Ltd filed Critical Guangdong Kennede Electronics Manufacturing Co Ltd
Priority to CN201911314059.7A priority Critical patent/CN110989451B/en
Publication of CN110989451A publication Critical patent/CN110989451A/en
Application granted granted Critical
Publication of CN110989451B publication Critical patent/CN110989451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a multi-point touch and remote control shared detection control method, which comprises a touch IC, a touch key, an MCU chip and a remote control receiving IC, wherein the touch IC and the remote control receiving IC share a third pin and are connected with the MCU chip, the MCU chip identifies the input of two signals according to the difference between the response time of the touch key and the code segment signal sent by the remote control receiving IC, and the touch IC is not influenced by interference.

Description

Multi-point touch and remote control shared detection control method
Technical Field
The invention relates to the field of circuit control, in particular to a multi-point touch and remote control shared detection control method.
Background
In the product of multiple load work of multi-point touch control, comparatively demand to the MCU chip is great, often needs the foot position of extension MCU chip, still can increase the volume of the cost of product simultaneously. If the pin positions of some MCU chips can not be expanded, the functions of the MCU chips are greatly limited.
Disclosure of Invention
The present invention is directed to solve at least one of the technical problems in the prior art, and provides a multi-touch and remote control shared detection control method, which achieves the purpose of saving pins by performing shared processing on a control port and a detection port.
According to a first aspect of the present invention, an embodiment provides a multi-touch and remote control shared detection control method, including:
the touch IC is provided with a data transmission pin SDA, a clock signal pin SCL, a work expression pin INT and a plurality of key input ends;
the touch keys are provided with a plurality of touch keys and are connected with the key input ends through input resistors;
the MCU chip is provided with a first pin, a second pin and a third pin, the data transmission pin SDA is connected with the first pin through a first resistor, the clock signal pin SCL is connected with the second pin through a second resistor, and the work performance pin INT is connected with the third pin through a third resistor; when any touch key is touched, the work expression pin INT is in a low level, and when all the touch keys are not touched, the work expression pin INT is in a high level; the response time of each touch key is longer than 100 ms;
the remote control receiving IC is provided with a remote control signal output pin IR, and the remote control signal output pin IR is connected with the third pin; when the remote control receiving IC does not receive signals, the remote control signal output pin IR is in a high level, when the remote control receiving IC receives the signals, the remote control signal output pin IR is in a low level, and a code segment signal with a communication protocol and a total length of no more than 20ms is sent to the third pin;
further comprising the steps of:
the MCU chip performs microsecond detection on the third pin, and if the third pin is detected to be at a low level, timing is started;
if the third pin changes to be high level within microsecond level, judging that the code segment signal sent by the remote control receiving IC is received;
continuing to receive the code segment signal, and decoding the received code segment signal;
if the low level duration time of the third pin exceeds 100ms, judging that the touch key is touched;
the MCU chip outputs a clock signal with high and low changes to the touch IC through the second pin, and simultaneously outputs an address code to the touch IC through the first pin;
after the touch IC writes the address code, a state code containing the state of the key input end is sent back to the MCU chip through the data transmission pin SDA;
and the MCU chip judges the touched touch key according to the state code.
According to the first aspect of the present invention, an embodiment provides a multi-touch and remote control shared detection control method, which has at least the following beneficial effects: the touch IC and the remote control receiving IC share a third pin to be connected with the MCU chip, the MCU chip identifies the input of two signals according to the difference between the duration of response of the touch key and the duration of a code segment signal sent by the remote control receiving IC, the touch IC and the remote control receiving IC are not influenced by interference, the touch IC is also provided with a data transmission pin SDA and a clock signal pin SCL to be matched, and the identification and data transmission between the touch IC and the MCU chip are realized, so that the specific touched touch key is distinguished, and the purpose of saving the pin position is achieved by carrying out shared processing on a control port and a detection port.
According to some embodiments of the present invention, if the low level duration of the third pin exceeds 20ms, the received code segment signal is cleared, and the low level signal continues to be received.
According to some embodiments of the present invention, if the touch key is touched during the process of receiving the code segment signal, the code segment signal is shielded and responds to the key touch preferentially.
According to some embodiments of the invention, the writing of the address code by the touch IC comprises:
and the touch IC reads the level of the data transmission pin SDA at the falling edge of the clock signal pin SCL, and obtains the address code after continuously writing eight bits.
According to some embodiments of the present invention, the status code includes data codes corresponding to the number of the key input terminals, and the data codes are at a low level when the corresponding touch key is touched and at a high level when the corresponding touch key is not touched.
According to some embodiments of the present invention, when the MCU chip outputs an address code through the first pin, the first pin is an output pin, and the data transmission pin SDA is an input detection pin; and after the MCU chip sends the address code, the first pin is changed from an output pin to an input detection pin, and the data transmission pin SDA is changed from the input detection pin to the output pin.
Drawings
The invention is further described below with reference to the accompanying drawings and examples;
fig. 1 is a circuit diagram used in a multi-touch and remote control common detection control method according to an embodiment of the present invention;
fig. 2 is a flowchart of a multi-touch and remote control shared detection control method according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as the upper, lower, front, rear, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplification of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
Referring to fig. 1 and 2, a multi-touch and remote control shared detection control method according to an embodiment of the present invention includes:
the touch IC is provided with a data transmission pin SDA, a clock signal pin SCL, a work expression pin INT and a plurality of key input ends; specifically, the touch IC in fig. 1 is provided with a total of CIN0 to CIN89 key inputs;
the touch keys are provided with a plurality of touch keys and are connected with the key input ends through input resistors; specifically, 7 touch keys such as ON/OFF, SPEED-, SPEED +, BABY, TIMER, SW-UD, SW-RL and the like are arranged in the keyboard 1;
the MCU chip is provided with a first pin, a second pin and a third pin, the data transmission pin SDA is connected with the first pin through a first resistor R25, the clock signal pin SCL is connected with the second pin through a second resistor R26, and the work performance pin INT is connected with the third pin through a third resistor R27; when any touch key is touched, the work expression pin INT is in a low level, and when all the touch keys are not touched, the work expression pin INT is in a high level; the response time of each touch key is longer than 100 ms;
the remote control receiving IC is provided with a remote control signal output pin IR, and the remote control signal output pin IR is connected with the third pin; when the remote control receiving IC does not receive signals, the remote control signal output pin IR is in a high level, when the remote control receiving IC receives the signals, the remote control signal output pin IR is in a low level, and a code segment signal with a communication protocol and a total length of no more than 20ms is sent to the third pin;
further comprising the steps of:
the MCU chip performs microsecond detection on the third pin, and if the third pin is detected to be at a low level, timing is started;
if the third pin changes to be high level within microsecond level, judging that the code segment signal sent by the remote control receiving IC is received;
continuing to receive the code segment signal, and decoding the received code segment signal;
if the low level duration time of the third pin exceeds 100ms, judging that the touch key is touched;
the MCU chip outputs a clock signal with high and low changes to the touch IC through the second pin, and simultaneously outputs an address code to the touch IC through the first pin;
after the touch IC writes the address code, a state code containing the state of the key input end is sent back to the MCU chip through the data transmission pin SDA;
and the MCU chip judges the touched touch key according to the state code.
According to the first aspect of the invention, a third pin shared by a touch IC and a remote control receiving IC is connected with an MCU chip, the MCU chip identifies the input of two signals according to the difference between the response time of a touch key and the code segment signal sent by the remote control receiving IC, and the touch IC is not influenced by interference, and is also provided with a data transmission pin SDA and a clock signal pin SCL to be matched to realize identification and data transmission with the MCU chip, so that the specific touched touch key is distinguished, and the purpose of saving the pin positions is achieved by carrying out shared processing on a control port and a detection port.
According to some embodiments of the present invention, if the low level duration of the third pin exceeds 20ms, the received code segment signal is cleared, and the low level signal continues to be received.
According to some embodiments of the present invention, if the touch key is touched during the process of receiving the code segment signal, the code segment signal is shielded and responds to the key touch preferentially.
According to some embodiments of the invention, the writing of the address code by the touch IC comprises:
and the touch IC reads the level of the data transmission pin SDA at the falling edge of the clock signal pin SCL, and obtains the address code after continuously writing eight bits.
According to some embodiments of the present invention, the status code includes data codes corresponding to the number of the key input terminals, and the data codes are at a low level when the corresponding touch key is touched and at a high level when the corresponding touch key is not touched.
According to some embodiments of the present invention, when the MCU chip outputs an address code through the first pin, the first pin is an output pin, and the data transmission pin SDA is an input detection pin; and after the MCU chip sends the address code, the first pin is changed from an output pin to an input detection pin, and the data transmission pin SDA is changed from the input detection pin to the output pin.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (6)

1. A multi-touch and remote control common detection control method is characterized by comprising the following steps:
the touch IC is provided with a data transmission pin SDA, a clock signal pin SCL, a work expression pin INT and a plurality of key input ends;
the touch keys are provided with a plurality of touch keys and are connected with the key input ends through input resistors;
the MCU chip is provided with a first pin, a second pin and a third pin, the data transmission pin SDA is connected with the first pin through a first resistor, the clock signal pin SCL is connected with the second pin through a second resistor, and the work performance pin INT is connected with the third pin through a third resistor; when any touch key is touched, the work expression pin INT is in a low level, and when all the touch keys are not touched, the work expression pin INT is in a high level; the response time of each touch key is longer than 100 ms;
the remote control receiving IC is provided with a remote control signal output pin IR, and the remote control signal output pin IR is connected with the third pin; when the remote control receiving IC does not receive signals, the remote control signal output pin IR is in a high level, when the remote control receiving IC receives the signals, the remote control signal output pin IR is in a low level, and a code segment signal with a communication protocol and a total length of no more than 20ms is sent to the third pin;
further comprising the steps of:
the MCU chip performs microsecond detection on the third pin, and if the third pin is detected to be at a low level, timing is started;
if the third pin changes to be high level within microsecond level, judging that the code segment signal sent by the remote control receiving IC is received;
continuing to receive the code segment signal, and decoding the received code segment signal;
if the low level duration time of the third pin exceeds 100ms, judging that the touch key is touched;
the MCU chip outputs a clock signal with high and low changes to the touch IC through the second pin, and simultaneously outputs an address code to the touch IC through the first pin;
after the touch IC writes the address code, a state code containing the state of the key input end is sent back to the MCU chip through the data transmission pin SDA;
and the MCU chip judges the touched touch key according to the state code.
2. The multi-touch and remote control shared detection control method according to claim 1, wherein if the low level duration of the third pin exceeds 20ms, the received code segment signal is cleared, and the low level signal continues to be received.
3. The multi-touch and remote control common detection control method as claimed in claim 1, wherein if the touch key is touched during receiving the code segment signal, the code segment signal is masked and responds to the key touch preferentially.
4. The multi-touch and remote control common detection control method according to claim 1, wherein the writing of the address code by the touch IC comprises:
and the touch IC reads the level of the data transmission pin SDA at the falling edge of the clock signal pin SCL, and obtains the address code after continuously writing eight bits.
5. The multi-touch and remote control common detection control method according to claim 1, wherein the status code includes data codes in accordance with the number of the key input terminals, and the data codes are at a low level when the corresponding touch key is touched and at a high level when the corresponding touch key is not touched.
6. The multi-touch and remote control common detection control method according to claim 1, wherein when the MCU chip outputs an address code via the first pin, the first pin is an output pin, and the data transmission pin SDA is an input detection pin; and after the MCU chip sends the address code, the first pin is changed from an output pin to an input detection pin, and the data transmission pin SDA is changed from the input detection pin to the output pin.
CN201911314059.7A 2019-12-19 2019-12-19 Detection control method based on multi-point touch and remote control shared detection control system Active CN110989451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911314059.7A CN110989451B (en) 2019-12-19 2019-12-19 Detection control method based on multi-point touch and remote control shared detection control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911314059.7A CN110989451B (en) 2019-12-19 2019-12-19 Detection control method based on multi-point touch and remote control shared detection control system

Publications (2)

Publication Number Publication Date
CN110989451A true CN110989451A (en) 2020-04-10
CN110989451B CN110989451B (en) 2020-12-22

Family

ID=70095774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911314059.7A Active CN110989451B (en) 2019-12-19 2019-12-19 Detection control method based on multi-point touch and remote control shared detection control system

Country Status (1)

Country Link
CN (1) CN110989451B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064372A (en) * 2021-04-07 2021-07-02 厦门宇电自动化科技有限公司 Identification circuit and related touch module and controller

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6581019B1 (en) * 2000-03-20 2003-06-17 Koninklijke Philips Electronics N.V. Computer-system-on-a-chip with test-mode addressing of normally off-bus input/output ports
CN103135054A (en) * 2013-01-31 2013-06-05 建荣集成电路科技(珠海)有限公司 Press key detection circuit integrating light-emitting diode (LED) driving and infrared remote control receiving function and integration achieving method
CN203191518U (en) * 2013-01-31 2013-09-11 建荣集成电路科技(珠海)有限公司 Key detection circuit combining LED driving and infrared remote control receiving functions
CN103377549A (en) * 2012-04-12 2013-10-30 鸿富锦精密工业(深圳)有限公司 Signal processing circuit
CN203931172U (en) * 2014-07-01 2014-11-05 广州安广电子有限公司 LCD shows the telepilot that shares IO mouth with key scan
JP2019102959A (en) * 2017-12-01 2019-06-24 日本電信電話株式会社 Server device, communication device, key sharing system, key sharing method, and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6581019B1 (en) * 2000-03-20 2003-06-17 Koninklijke Philips Electronics N.V. Computer-system-on-a-chip with test-mode addressing of normally off-bus input/output ports
CN103377549A (en) * 2012-04-12 2013-10-30 鸿富锦精密工业(深圳)有限公司 Signal processing circuit
CN103135054A (en) * 2013-01-31 2013-06-05 建荣集成电路科技(珠海)有限公司 Press key detection circuit integrating light-emitting diode (LED) driving and infrared remote control receiving function and integration achieving method
CN203191518U (en) * 2013-01-31 2013-09-11 建荣集成电路科技(珠海)有限公司 Key detection circuit combining LED driving and infrared remote control receiving functions
CN203931172U (en) * 2014-07-01 2014-11-05 广州安广电子有限公司 LCD shows the telepilot that shares IO mouth with key scan
JP2019102959A (en) * 2017-12-01 2019-06-24 日本電信電話株式会社 Server device, communication device, key sharing system, key sharing method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064372A (en) * 2021-04-07 2021-07-02 厦门宇电自动化科技有限公司 Identification circuit and related touch module and controller
CN113064372B (en) * 2021-04-07 2023-11-03 厦门宇电自动化科技有限公司 Identification circuit, related touch module and controller

Also Published As

Publication number Publication date
CN110989451B (en) 2020-12-22

Similar Documents

Publication Publication Date Title
US20190146944A1 (en) Dynamically adjustable multi-line bus shared by multi-protocol devices
US9880965B2 (en) Variable frame length virtual GPIO with a modified UART interface
JP6517243B2 (en) Link Layer / Physical Layer (PHY) Serial Interface
US20150074306A1 (en) Single Wire Communications Interface and Protocol
EP3236361A1 (en) Dynamically adjustable multi-line bus shared by multi-protocol devices
US6691201B1 (en) Dual mode USB-PS/2 device
CN109871344B (en) Communication system, interface circuit and signal transmission method thereof
US20030163615A1 (en) Peripheral or memory device having a combined ISA bus and LPC bus
CN103095855A (en) I2C communication interface unit
US7863938B2 (en) Address decoder and method for setting an address
US9626323B2 (en) Keyboard-video-mouse switch and operating method thereof
US20160373238A1 (en) Independent UART BRK Detection
CN110989451B (en) Detection control method based on multi-point touch and remote control shared detection control system
CN103106113A (en) Interrupt event processing method and processing equipment
EP1926023B1 (en) Communication system and electronic control unit including communication system for vehicle control
CN114968683B (en) Bus relation detection device, slave device, system and chip
US5428813A (en) Special function micro controller integrated circuit programmed to selectively perform one of at least two different and unrelated functions
US20110289246A1 (en) Super i/o module, computer system and control method thereof
JPH0730613A (en) Data communication system
CA1137585A (en) Function coding via digital addresses in a two-way system
KR20060003139A (en) Expansion module control method of PLC system using trigger signal and serial communication
JP4931727B2 (en) Data communication system
CN221529079U (en) Mode selection circuit and electronic equipment
CN103106162B (en) Logical device and MDIO interface communication method thereof
JPH0313038A (en) Asynchronous serial data transmitter

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210112

Address after: No.21 Jintong Road, Tangxia Town, Pengjiang district, Jiangmen City, Guangdong Province

Patentee after: Guangdong jinlaite Intelligent Technology Co.,Ltd.

Address before: No.21 Jintong Road, Tangxia Town, Pengjiang district, Jiangmen City, Guangdong Province

Patentee before: KENNEDE Electronics MFG. Co., Ltd.

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Detection and Control Method Based on Multi touch and Remote Control Shared Detection and Control System

Effective date of registration: 20231215

Granted publication date: 20201222

Pledgee: Guangdong Development Bank Co.,Ltd. Jiangmen branch

Pledgor: Guangdong jinlaite Intelligent Technology Co.,Ltd.

Registration number: Y2023980072112

PE01 Entry into force of the registration of the contract for pledge of patent right