Principle and circuit structure of audio induction of single chip remote control key

Publisher:tau29Latest update time:2018-03-16 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  Since the advent of single-chip microcomputers, they have been widely used in the fields of instruments, meters, and intelligent control. Most single-chip microcomputer application systems (SCAS) cannot do without key input control. The commonly used single-chip microcomputer system keys can be installed on the panel, but for single-chip microcomputer application systems working in the control field and high and low temperature and dusty environments, the life of the keys will be shortened and the failure rate will increase. In order to improve the reliability and durability of the key input of the single-chip microcomputer application system, a single-chip microcomputer remote control key input circuit is designed. The key code is input into the SCAS system through audio sensing; and one machine can be used for multiple purposes, that is, one keyboard remote control can perform key input operations on any number of identical SCAS systems.
  
  Audio sensing principle and circuit structure
  
  The circuit structure is divided into two parts: the remote control and the decoding receiving circuit. Its structure is shown in the figure.


The circuit structure is divided into remote control and decoding receiving circuit
  
  The remote control part encodes the 16 keys, and a unique dual audio signal is generated for each key. This dual audio signal is sent out by the speaker in the form of sound. In the decoding receiving circuit, the microphone receives the dual audio sound signal sent by the remote control and sends it to the decoder circuit. After the decoder circuit correctly decodes it, it outputs a binary code, which is the key code entered by the remote control. In addition, the decoder also outputs a correctly decoded flag signal at the same time, which sends an interrupt request to the MCU, and the MCU can read the key code and execute the corresponding program module according to the code.

2. Circuit Design Principle

  1. Hardware circuit design
  
  The remote control key input circuit is shown in the figure.


  
  The core of the circuit is the dual-tone multi-frequency (DTMF) codec chip CSC5087 and SC8870. As a DTMF signal encoder, CSC5087 can generate a set of dual-audio signals cos 27πft+cos 2πfcHt according to different keys. The International Telegraph and Telephone Consultative Committee (CCITT) and China's standards stipulate that the combination relationship between keys and high and low frequency groups is listed in Table 3-1. If key 6 is pressed, the frequency of the DTMF signal sent is fL=770 Hz, fH=1 477 Hz. This DTMF signal is amplified by the audio power amplifier LM386 and converted into a sound signal by the speaker.
  
  Table 1 Key and DTMF signal encoding comparison table

Key and DTMF signal coding comparison table

  The DTMF signal received and amplified by the microphone is decoded by SC8870, and each DTMF signal is translated into a 4-bit binary code for output. The 16 DTMF signals correspond to 16 binary codes from 0000 to 1111, and their corresponding relationship is listed in the table. For example, if the remote control sends a DTMF signal with a frequency of fL=770 Hz and fH=1477 Hz, the SC8870 will output the code 0110 after decoding.
  
  2SC8870 decoding table


  
  SC8870 has a delay control output terminal CID. If a valid DTMF signal is detected and the control input terminal STO level exceeds the threshold level VTst, the input code is updated, and the CID output changes from low level to high level; if the STO level is lower than V Tst, CID returns to low level. The STO level is determined by the initial control output signal ECO: when SC8870 detects a valid DTMF signal, ECO first changes to high level, and then the STO level is increased through the resistor; when there is no input DTMF signal or the input signal is continuously distorted, ECO outputs low level, so STO is also low level, and CID outputs low level. The CID signal is used as the interrupt request signal of the MC68HC705 MCU. Since the interrupt trigger of the MCU is a falling edge trigger, the CID signal is inverted by the inverter and connected to the interrupt request input terminal IQR of the MCU.
  
  SC8870's DOi~D04 are connected to MCU's port lines PAo~PA3 respectively, and the three-state data output control terminal EN is connected to a high level, so that D01~D04 maintains the last decoded output code of the DTMF signal, so that the MCU can read the input key value at any time.
  
  2. Key input interrupt and key code receiving software
  
  The software flow and program list are shown in the figure.

Software Process and Procedure List
  
  The MCU receives the key code from the interrupt response program and returns to the main program. The main program decides which functional module to execute based on the key code.

3. Application

  Since DTMF signals have high encoding and decoding reliability and low transmission error rate, the key input circuit introduced in this article has strong anti-interference ability and has been successfully applied to the urban street lamp microcomputer monitoring system. The key codes of all switch cabinet measurement and control subsystems are input in this way. They share a remote control, which greatly improves the system's anti-interference, anti-dust, and anti-aging performance.


Keywords:MCU Reference address:Principle and circuit structure of audio induction of single chip remote control key

Previous article:Hardware Design of Single Chip Microcomputer Ultrasonic Vision Recognition System
Next article:Temperature-measurable electronic calendar based on STC89C52 single-chip microcomputer

Recommended ReadingLatest update time:2024-11-16 14:33

[Self-study 51 single chip microcomputer] 12 --- Preliminary understanding of 1602 LCD
1. Introduction to 1602 LCD hardware interface 1602 LCD technical parameters Note: (1) Working current: The working current of the LCD is 2mA at a working voltage of 5V, which only refers to the LCD and does not include the backlight. 1602 LCD interface schematic and pin functions Description: (1) Pin 3: LCD
[Microcontroller]
[Self-study 51 single chip microcomputer] 12 --- Preliminary understanding of 1602 LCD
Some experience in learning plc, single chip microcomputer, configuration software, and embedded
     If you focus on a certain interest and devote yourself to it, you will definitely have a feeling: learning is really endless and there is always something to learn!          PLC, 51 single-chip microcomputer, embedded system, configuration software, etc., these things must be studied in a down-to-earth manner,
[Microcontroller]
Single-chip C language programming: a single digital tube cyclically displays 0~9
/* Name: Single digital tube displays 0~9 in a loop Description: The loop statement in the main program repeatedly sends the segment code 0~9 to port P0, so that the numbers 0~9 are displayed cyclically. */ #include reg51.h #include intrins.h #define uchar unsigned char #define uint unsigned int uchar co
[Microcontroller]
Single-chip C language programming: a single digital tube cyclically displays 0~9
Programmable Active Filter Circuit Based on Single Chip Microcomputer Control
Active filters are widely used in digital signal processing, communication, and automatic control, but it is difficult to design variable broadband active filters. Using a single-chip microcomputer to control programmable dual-second-order universal switched capacitor active filter, the center frequency f0, quality
[Microcontroller]
Programmable Active Filter Circuit Based on Single Chip Microcomputer Control
Introduction to 51 MCU - Basic use of interrupt system and external interrupt
Basic concepts of interrupt system Five interrupt sources and their basic structure The 51 microcontroller has a total of five interrupt sources Prioritize from top to bottom The interrupt system structure The interrupt vector is the interrupt number, which is the number on the far left of the figure below (usefu
[Microcontroller]
Introduction to 51 MCU - Basic use of interrupt system and external interrupt
Based on 51 single chip microcomputer - multi-function stopwatch
Features: 1. Three-digit digital tube display data 00.0~99.9 2. Four data can be recorded in one timing (one data is saved for each press) and stored in EEPROM (if pressed five times, the data of the first press will be lost) 3. The two buttons have the functions of pause, start, store, retrieve and page turning
[Microcontroller]
51 MCU Section 8: Serial Port Application
Section 8: Serial Port Application 1. Use the AT89C52 microcontroller with a crystal frequency of 22.1184MHz, and the serial port application working mode 1 to send data out at a baud rate of 9600bps. The data is ten digits from '0' to '9', which are sent continuously in a cycle. Solution: Digital characters are inc
[Microcontroller]
Mobile data processing and transmission system based on TMS320VC5409 and Cygnal MCU
1 Introduction Mobile data processing and transmission systems are mainly used in small or portable instruments. They can collect, process and transmit and receive data through wireless mobile networks. Due to the cost of wireless mobile networks, mobile data processing and transmission systems should have stron
[Microcontroller]
Mobile data processing and transmission system based on TMS320VC5409 and Cygnal MCU
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components
Guess you like

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号