Communication method for single-chip microcomputer and PC

A technology of single-chip microcomputer and PC, which is applied in the field of communication between single-chip microcomputer and PC, can solve the problems of low communication efficiency between single-chip microcomputer and communication PC, and achieve the effects of flexible configuration, high communication reliability and high communication efficiency

Inactive Publication Date: 2020-04-03
西安居正知识产权运营管理有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method for communication between a single-chip microcomputer and a PC, which solves the problem of low communication efficiency between a single-chip microcomputer and a communication PC in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention illustrates a kind of method that single-chip microcomputer communicates with PC in conjunction with specific embodiment, and concrete steps are as follows:

[0019] Step 1. First, design the hardware circuit for the communication between the single-chip microcomputer and the PC, and write the source program to realize the communication between the single-chip microcomputer and the PC; the hardware circuit for the communication between the single-chip microcomputer and the PC includes a PC, an interface converter, a communication controller and several non-address Identification equipment; the single-chip microcomputer system inside the communication controller, the level conversion circuit, the address selection circuit, and the address identification circuit are connected to the PC through an interface converter to form a communication path between the PC and the communication controller;

[0020] Step 2. The single-chip microcomputer communicates...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a communication method for a single-chip microcomputer and a PC. The method comprises the specific steps of designing a hardware circuit for the communication between the single-chip microcomputer and the PC, and writing a source program to achieve the communication between the single-chip microcomputer and the PC; enabling the single-chip microcomputer to communicate withthe PC through the MODBUS, realizing an MODBUS protocol function on the single-chip microcomputer, and enabling the PC to obtain data from the single-chip microcomputer system. The single-chip microcomputer needs to transmit and receive data according to an MODBUS protocol, and then the communication can be carried out. According to the communication method for the single-chip microcomputer and the PC, and by introducing the MODBUS communication protocol, a large number of serial communication controllers support the protocol, and the method has the advantages of being simple in connection circuit, flexible in configuration, high in communication reliability and high in communication efficiency.

Description

technical field [0001] The invention belongs to the technical field of electronic communication, and relates to a method for communicating between a single-chip microcomputer and a PC. Background technique [0002] The rapid development of my country's modern industry has continuously improved the level of industrial automatic control. At the same time, in the field of modern communications, the research on single-chip microcomputers and PCs has become more and more in-depth. Applying single-chip microcomputers and PCs to the field of industrial automatic control can effectively To solve the remote communication problem of industrial equipment, the existing single-chip microcomputer and PC communicate through the RS232 interface. Due to the low computing performance and less memory of the single-chip microcomputer, the implementation efficiency is low for multi-algorithm communication. Contents of the invention [0003] The purpose of the present invention is to provide a m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & AuthorityApplications(China)
IPC IPC(8): G05B19/042
CPCG05B19/0423G05B2219/21027
Inventor成丁
Owner西安居正知识产权运营管理有限公司