CN110989451B - Detection control method based on multi-point touch and remote control shared detection control system - Google Patents

Detection control method based on multi-point touch and remote control shared detection control system Download PDF

Info

Publication number
CN110989451B
CN110989451B CN201911314059.7A CN201911314059A CN110989451B CN 110989451 B CN110989451 B CN 110989451B CN 201911314059 A CN201911314059 A CN 201911314059A CN 110989451 B CN110989451 B CN 110989451B
Authority
CN
China
Prior art keywords
pin
touch
remote control
detection control
key
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.)
Active
Application number
CN201911314059.7A
Other languages
Chinese (zh)
Other versions
CN110989451A (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 detection control method based on a multi-point touch and remote control shared detection control system, which comprises a touch IC, a touch key, an MCU chip and a remote control receiving IC, wherein the detection control method is connected with the MCU chip through a third pin shared by the touch IC and the remote control receiving IC, 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

Detection control method based on multi-point touch and remote control shared detection control system
Technical Field
The invention relates to the field of circuit control, in particular to a detection control method based on a multi-point touch and remote control shared detection control system.
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 invention aims to solve at least one of the technical problems in the prior art, and provides a detection control method based on a multi-touch and remote control shared detection control system, which achieves the aim of saving feet by carrying out shared processing on a control port and a detection port.
According to a first aspect of the present invention, a detection control method based on a multi-touch and remote control shared detection control system is provided, where the multi-touch and remote control shared detection control system 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;
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;
the detection control method comprises the following steps:
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 a high level within a microsecond level, determining to receive a code segment signal sent by the remote control receiving IC;
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, a detection control method based on a multi-touch and remote control shared detection control system is provided, 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 detection control method based on a multi-touch and remote control shared detection control system according to an embodiment of the present invention;
fig. 2 is a flowchart of a detection control method based on a multi-touch and remote control shared detection control system 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 detection control method based on a multi-touch and remote control shared detection control system 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;
the detection control method comprises the following steps:
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 a high level within a microsecond level, determining to receive a code segment signal sent by the remote control receiving IC;
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, the detection control method based on the multi-touch and remote control shared detection control system is provided, 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, the touch IC is 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, the identification and data transmission between the touch IC and the MCU chip are realized, 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.
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 detection control method based on a multi-touch and remote control shared detection control system is characterized in that the multi-touch and remote control shared detection control system comprises 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;
the detection control method comprises the following steps:
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 a high level within a microsecond level, determining to receive a code segment signal sent by the remote control receiving IC;
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 detection control method based on the multi-touch and remote control shared detection control system as claimed in 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 detection control method of claim 1, wherein 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.
4. The detection control method of 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 detection control method of claim 1, wherein the status code comprises a number of data codes corresponding to the number of the key inputs, and the data codes are low when the corresponding touch key is touched and high when the corresponding touch key is not touched.
6. The 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 transfer 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 CN110989451A (en) 2020-04-10
CN110989451B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064372B (en) * 2021-04-07 2023-11-03 厦门宇电自动化科技有限公司 Identification circuit, 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

Also Published As

Publication number Publication date
CN110989451A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN106453383B (en) UART-based master-slave multi-machine communication system and method
US10241955B2 (en) Dynamically adjustable multi-line bus shared by multi-protocol devices
EP3191970A1 (en) Variable frame length virtual gpio with a modified uart interface
CN107771331B (en) Independent UARK BRK detection
CN101727422A (en) Method and system for controlling unibus equipment
CN110989451B (en) Detection control method based on multi-point touch and remote control shared detection control system
CN109871344B (en) Communication system, interface circuit and signal transmission method thereof
US7863938B2 (en) Address decoder and method for setting an address
EP0196870B1 (en) Interface circuit for transmitting and receiving data
CN101826068A (en) Method for hot-plugging PCI-E device and application thereof
CN109154925A (en) Communication equipment, communication means, program and communication system
CN103107862A (en) Logic device and management data input/output (MDIO) data transmission method thereof
EP1926023B1 (en) Communication system and electronic control unit including communication system for vehicle control
CN114490488A (en) Low-power-consumption UART serial port system
JP3115940B2 (en) Communication line status display circuit
US6760854B2 (en) Method and apparatus for handling a framing error at a serial interface by forcing invalid commands to be read upon determine the command is invalid
CN111490919A (en) Master-slave machine system, equipment terminal and communication verification method thereof
KR20060003139A (en) Method to control a increased modules of plc system using trigger signals and serial communication
JP4931727B2 (en) Data communication system
KR900006975B1 (en) Method of detecting data transmission speed in data terminal equipment
CN117579222A (en) Reliable data communication system and method with self-checking function
JPH0313038A (en) Asynchronous serial data transmitter
KR100267344B1 (en) Apparatus and method for collision protecting of transmitting data in hdlc bus structured switching system
CN202841090U (en) Touch key signal transmission circuit and electronic product
CN114527693A (en) Differential bidirectional communication circuit and method capable of customizing sending and receiving communication formats

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