Software Design and Application of Encoder VD5026 Using Single Chip Microcomputer

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

  Each group of serial data output waveform of VD5026-4 consists of a synchronization pulse, a 12-bit encrypted address (and control data) and a 1-bit stop bit. The order of the coded pulse output is AO~A7, A8/DO~All/D3, and each group of serial data is output at least 4 times. After mastering the output format of the serial data and its data verification method, pulse period, pulse duty cycle and its corresponding data relationship, write an application according to the requirements of the coded pulse output to enable the microcontroller to realize the function of the encoder. The simulation encoder program flowchart is shown in the figure below.

Simulate encoder program block diagram

 

  The infrared remote control keyboard designed with this technology has been applied to the "color remote control monitoring system". The principle of the remote control keyboard is shown in the figure below.
  
  This circuit uses the single-chip microcomputer AT89C2051, which is a high-cost single-chip microcomputer. The device uses the 80C31 core, and the instruction system and pins are fully compatible with MCS-51TM. There is a 2 KB reprogrammable flash memory, which can be erased/written 1,000 times and the data can be saved for 10 years.
  
  The decoder VD5027 has a 4-bit data output and can translate 16 states to meet the requirements of a 3×4 keyboard.
  
  The single-chip microcomputer finds that when a key is pressed, it generates a coded pulse corresponding to this key value. The coded pulse signal is modulated with a 38 kHz pulse signal and transmitted through the transmitting tube (SE303A). The infrared receiving diode (PH302B) converts the received infrared signal into an electrical signal, which is amplified and detected by the infrared remote control receiver CX20106 and converted into a pulse electrical signal. After being shaped and amplified, the signal is restored to the coded pulse output corresponding to the key value and sent to the 14-pin DIN input terminal of the decoder VD5027.
  
  When VD5027 receives the first string of coded pulse signals, if it is exactly the same as the address set by VD5027, the transmitted DO-D3 four-bit data code is sent to the register (and the serial code is changed to parallel code). When the second string of the same coded pulse signal arrives, it is checked again. If the address is correct and the control data is consistent with the first one, the logic control circuit in VD5027 sends a control signal to enter the control data of the register into the latch and output it to the DO~D3 terminal of VD5027. At the same time, the TV terminal changes from low level to high level, indicating that the decoding is valid.
  
  After receiving the valid decoding signal, the host reads the output data DO~D3 from VD5027, decodes the key value code, and performs the corresponding operation.

Software Design and Application of Encoder VD5026 Using Single Chip Microcomputer


Keywords:MCU Reference address:Software Design and Application of Encoder VD5026 Using Single Chip Microcomputer

Previous article:Design and Analysis of Intelligent Electricity Meter Based on 80C51 Single Chip Microcomputer
Next article:DRAM Refresh Process and Management of Dynamic Data Buffer Controlled by Single Chip Microcomputer

Recommended ReadingLatest update time:2024-11-16 13:01

51 microcontroller-STC89C52 series learning, the first part of IO port learning
The STC89C52 series microcontroller IO port has three working modes: 1. Quasi-bidirectional port/weak pull-up (standard 8051 output mode) 2. Open drain output mode 3. Input mode Among them, P1/P2/P3/P4 are in the traditional 8051 IO port mode after power-on reset, while P0 port is an open-drain output after power-on.
[Microcontroller]
Application of LCD Module HG240128R in Single Chip Microcomputer System
The HG240128R series LCD display module developed by Qingda Optoelectronics Technology Co., Ltd. has many advantages over similar products, such as large display information, simple programming, small size, and light weight. It is suitable for various fields such as mobile communications, instruments, and electronic eq
[Power Management]
Microcontroller beginner's guide (14) Program analysis for lighting the first LED
In this article, we will analyze the program code written in the previous article. In the future, we will focus most of our energy on learning microcontrollers on writing program codes. But don't worry, I will introduce the writing ideas and various precautions of each program in great detail. The program we wrote bef
[Microcontroller]
AVR MCU Research (8): GCC-AVR Interrupts
Table of contents 1. Header File 2. Interrupt function format 3. Interrupt vector name 4. Design focus of interrupt function 5. Principles of writing ISR in C language   //Note: The GCC-AVR version used in this article is WinAVR20100110 Interrupts are not part of the C language, and the implementation of
[Microcontroller]
Small program for timer in 51 single chip microcomputer
Today I started to study the timer in 51 and wrote a small program. #i nclude sbit P0_1=P0^1; //define bit variable /********************************************************* * Delay subroutine * 16 cycles equals 1 second * **********************************************************/ void Delay(count)
[Microcontroller]
Design of C8051 microcontroller to realize multi-target ultrasonic ranging
Ultrasonic ranging sensors are widely used in industrial field ranging, mobile robot navigation and positioning due to their high measurement accuracy, fast response and low price. The commonly used method for ultrasonic ranging sensors is that one transmitter corresponds to one receiving head, and there are also mult
[Microcontroller]
Design of C8051 microcontroller to realize multi-target ultrasonic ranging
How to use a microcontroller to drive a standard PC keyboard? C51 program detailed description
  Function: connect the PC keyboard (P/S2 interface) to the 8-bit microcontroller   Principle: The keyboard clock is connected to port p3.2, which is the external interrupt int0 of 8051, and the keyboard data is connected to p1.0   Each time a key is pressed, the keyboard will send a pulse to the microcontroller,
[Microcontroller]
How to use a microcontroller to drive a standard PC keyboard? C51 program detailed description
Realization of RS-485 multi-machine communication based on single chip microcomputer
1 Introduction The RS-485 serial bus interface standard transmits signals in a differential balanced manner, has a strong ability to resist common mode interference, and allows a transmitter on a pair of twisted pairs to drive multiple load devices. This bus standard is generally used for data transmission in in
[Microcontroller]
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

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号