Design of remote communication based on single chip microcomputer 8251

Publisher:BlossomWhisperLatest update time:2011-08-02 Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

Most of my country's medium and large petrochemical enterprises use a small current grounding system for power supply, and the power system is relatively large. This type of system generally has several or even more than a dozen 35kV level total step-down stations, dozens of 6-10kV level high-voltage distribution rooms, and a wide distribution range. Some substations are more than ten kilometers away from the main dispatch. Therefore, the accurate and reliable transmission of the power parameters (voltage, current, phase, power factor, etc.) of each substation is particularly important for the main dispatch to make timely decisions, improve the quality of power supply, and ensure the safety of power operation. Here, we use a single-chip microcomputer to control the modem for remote real-time data transmission, and achieved satisfactory results.

2 Hardware System Design

The system network diagram is shown in Figure 1. The host computer of this system adopts a PII microcomputer, which is connected to the single-chip microcomputer system as the lower computer through MODEM←→ switching network←→MODEM. The data signal collected by the power sensor is input into the single-chip microcomputer system, and after being processed by the software program, the asynchronous transceiver 8251 controls the MODEM to automatically dial, and sends data after the host computer responds. After receiving the data through the MODEM, the host computer can process the data table or graph, which completes the whole process of remote data collection. The host computer can perform patrol control and detection on multiple lower single-chip microcomputer systems through the MODEM in a time-sharing manner.

The hardware circuit of the single-chip microcomputer system is shown in Figure 2. It is mainly composed of a single-chip microcomputer 89C51 and an asynchronous/synchronous transceiver controller chip. Here, 8251 is used as an asynchronous transceiver. Among them, COM8046 is a programmable dedicated clock generator that can provide clock signals for 89C51 at the same time. The signals of the receiving clock RXC and the transmitting clock TXC required by 8251 are also provided by it.

Since the input and output of 8251 are TTL level, a serial transceiver driver is required for level conversion and driving. This system uses the more commonly used MC1488 and MC1489 chips. RS-232 is a standard 9-pin interface that can be connected to any standard external MODEM interface.

The performance requirements for MODEM are: it has telephone number parameter storage; it has automatic dialing function and automatic answering function; it can perform speed buffering and flow control; it uses MNP5/V.42bis data compression method; it uses V4.2 error control protocol/MNP 2-4 error correction protocol; the rate is greater than 14.4kbps; and standard products that are compatible with the US Hayes series are selected.

Since the telephone line as the medium of the switching network will inevitably have line interference, the MODEM as the two end points must adopt corresponding anti-interference and error control technology. At the same time, the line transmission rate should not be too high. This system uses a baud rate of 1200dps. [page]

3 Software Design

The software design of the single-chip microcomputer system mainly consists of two parts: 8251 initialization and data transmission. The program flow charts are shown in Figures 3 and 4 respectively.

The initialization settings of 8251 are: working in asynchronous mode; baud rate is 1200dps; data length is 8 bits, one stop bit; even parity is used; DTR and RTS signals are valid.

The control of the MODEM is determined by DSR. When DSR is valid, the MODEM is reset first, and then a command is sent to make the MODEM dial automatically. Data is transmitted with the host computer while the DSR signal remains valid.

In the data transmission program, a group of storage units stores the data to be sent (i.e. the data converted by the sensor input, or the manually input data of the extended keyboard system). When the data is sent, the checksum data is also sent. After sending the data, check whether the send register is zero. If it is zero, it means that the data has been sent. After each data is sent, wait for the return signal from the host computer. If it is incorrect, it needs to be resent; if it is correct, send the next data again until all the data are sent.

4 Conclusion

Using a single-chip microcomputer to control the MODEM for remote data transmission has achieved good results and solved the problem of data exchange at remote locations that cannot be reached by the LAN dedicated line. It is particularly suitable for inspections and tests in remote areas, such as docks, warehouses, and high towers at remote locations of enterprises.

Keywords:MCU Reference address:Design of remote communication based on single chip microcomputer 8251

Previous article:Decoder based on single chip microcomputer is applied in security system
Next article:Design of FM radio system based on single chip microcomputer and TEA5767HN

Recommended ReadingLatest update time:2024-11-16 22:31

MSP430 series MCU-Timer_A realizes PWM
concept PWM signal is a digital signal with fixed period and variable duty cycle.  If the counter of Timer_A works in up-counting mode, the output adopts output mode 7 (reset/set mode)  to control the period of PWM waveform by register TAxCCR0, and use other registers TAxCCRx to control the duty cycle (t high level /
[Microcontroller]
PIC Microcontroller Basics 2
PIC mid-range series microcontrollers, each instruction is 14 bits, there are 35 assembly instructions in total, according to the different operation objects, they can be divided into three categories: Byte operation instructions Bit operation instructions Immediate and control operation instructions 1. Byte opera
[Microcontroller]
AVR MCU IAR AVR C language interrupt programming
1. AVRmega16 interrupt vector table Vector number Program address Interrupt source Description Definition in IAR AVR 1 000 RESET Reset caused by external pin level, power-on reset, brownout detection reset, watchdog reset, and JTAG AVR reset RESET_vect 2 002 INT0 External interrupt request 0 INT0_vect 3 004 INT1 Exter
[Microcontroller]
Guoxin Technology’s wholly-owned subsidiary obtained the first domestic automotive security chip trusted safety certification certificate
On November 17, 2022, the "Automotive Security Chip Trusted Safety HS Certification" was held at the China Automotive Research Institute (China Automotive Technology Research Center Co., Ltd.) Automobile Inspection Center (Tianjin) Co., Ltd. and China Automotive Research Huacheng Certification (Tianjin) Co., Ltd. At t
[Automotive Electronics]
Guoxin Technology’s wholly-owned subsidiary obtained the first domestic automotive security chip trusted safety certification certificate
「51 single chip microcomputer」transmitter and receiver ultrasonic ranging module analysis + code
The ultrasonic model I use is US-020, and the usage of the four interfaces is basically the same.   I. Overview US-020 ultrasonic module distance measurement range: 2cm~7m The power supply voltage is 5V and the static power consumption is less than 3mA   2. Physical Picture   Size: 45mm*20mm*1.6mm   3. Interface 1.VC
[Microcontroller]
「51 single chip microcomputer」transmitter and receiver ultrasonic ranging module analysis + code
Application of 51 single chip microcomputer in glass tube heating control system
1 Introduction A stepper motor is an electromagnetic mechanical device that converts an electrical pulse signal into a corresponding angular displacement or linear displacement. It is an incremental drive element that outputs an input digital pulse and has the ability to start and stop quickly. However, most de
[Microcontroller]
Application of 51 single chip microcomputer in glass tube heating control system
Functions and roles of automotive MCUs Relationship between ECU and MCU
Functions and roles of automotive MCU Automotive MCU (Microcontroller Unit) refers to an embedded microcontroller chip installed inside a car to control and manage various systems and related devices of the car. The functions and effects of automotive MCU are as follows: Control and manage vehicle electron
[Embedded]
Brushless DC Motor Control System Based on Dual Single Chip Computer Communication
In the brushless DC motor control system, DSP is usually used to collect and process signals. However, due to the high price of DSP, in some occasions where real-time requirements are not high, MCS-51 microcontroller can be used instead of DSP to control the start and stop, forward and reverse rotation and speed re
[Industrial Control]
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号