Design of Control Circuit for Intelligent Video Monitoring System Based on 89C51 Single Chip Microcomputer

Publisher:数字思维Latest update time:2014-11-11 Source: elecfansKeywords:89C51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  The keyboard is one of the most important input devices in the digital video surveillance recording system and an important part of the human-machine interface. The commonly used industrial control computer keyboard is not much different from the PC keyboard except that it is equipped with an electronic lock switch to prevent illegal keyboard input. This keyboard not only has many keys and is inflexible to operate, but it can usually only be used as an input device, and the host cannot communicate with the peripherals through the keyboard. Based on the analysis of the communication method of the PC keyboard, this paper designs a digital video surveillance system keyboard and alarm control card with the 89C51 single-chip microcomputer as the core. The card has two functions: keyboard communication and input and output alarm. It adopts the structure of a standard PCI card, but does not occupy the host hardware resources. Among them, the alarm part has 4 inputs and 4 outputs, which can be connected to standard alarm sensors; the keyboard part has 16 keys, and the communication method is fully compatible with the PC.

  The keyboard receives host commands and parameters

  The host first sets the clock line to a low level, then sets the data line to a low level, and after a delay of about 200μs, sets the clock line to a high level. When the keyboard detects this state, it starts to receive host commands, and the format of the received data is the same as that sent. The keyboard receives 1 start bit, 8 data bits, 1 check bit, and 1 stop bit in sequence. It is particularly noteworthy that when receiving keyboard commands or parameters, although the data is sent from the host to the keyboard, the clock pulse is generated by the keyboard. The host outputs a bit of data on the data line for each falling edge of a pulse received on the clock line. If the reception is correct, after both the clock line and the data line become high levels, the keyboard will send a response signal (0FAH) to the host, otherwise it will send a 0FEH signal to the host to request retransmission. After the host receives the 0FEH signal, it resends the data that it has just output. If this process continues for three times and the keyboard still cannot receive correctly, the host will give up transmitting this data and switch to executing the following program or display an error message. The host commands and parameters also use odd parity.

   System hardware circuit design

  This system uses 89C51 single-chip microcomputer connected to PC keyboard interface. Figure 2 shows the principle of the system hardware circuit. P3.0 and P3.1 are connected to the clock line CLK and data line DATA of the host keyboard interface respectively, P2 port is connected to the 4×4 keyboard matrix, and P0 port is connected to the input and output alarm device after being driven. To ensure the reliable operation of the keyboard, the system is equipped with a watchdog circuit MAX813L. In addition, the system is also equipped with a buzzer, and there is a sound prompt every time a key is pressed.

  Design of Control Circuit for Intelligent Video Monitoring System Based on 89C51 Single Chip Microcomputer

  Figure 2 System hardware circuit principle

Keywords:89C51 Reference address:Design of Control Circuit for Intelligent Video Monitoring System Based on 89C51 Single Chip Microcomputer

Previous article:Design of intelligent video monitoring circuit for access control system
Next article:Interface circuit design of face recognition attendance machine

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号