Application of communication between PC and single chip microcomputer

Publisher:不羁少年Latest update time:2012-09-12 Source: 21ic Keywords:PC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

This article is about the application of the communication experiment between computers and single-chip microcomputers. It mainly includes the explanation of the experimental principle, hardware circuit diagram, source program, etc.

Contents:

1. Application of MCU serial communication

2. PC controls the MCU IO port output

3. Single chip microcomputer control training guidance and comprehensive application examples

4. The microcontroller sends data to the computer:

[Experimental tasks]

The application of microcontroller serial port communication, through the serial port, our personal computer and microcontroller system communicate.

The personal computer acts as the host computer and sends hexadecimal or ASCII codes to the microcontroller system.

After receiving the data, the system uses LED to display the received data and sends the original data back to the host computer.

[Hardware Circuit Diagram]

PC and MCU communication

[Experimental principle]

RS-232 is a serial bus standard officially announced by the American Electronics Industries Association. It is also the most commonly used serial interface standard. It is used to realize data communication between computers and between computers and peripherals.

The RS-232 serial interface bus is suitable for: the communication distance between devices is no more than 15m, and the maximum transmission rate is 20kBps. The RS-232 protocol uses -5V-15V to represent logic 1; +5V-15V to represent logic 0. We use the MAX232 chip to convert the RS232 level to the TTL level. A complete RS-232 interface has 22 wires and uses a standard 25-pin plug socket. We use a simplified 9-pin plug socket here.

Note that the crystal oscillator we use here is 11.0592M, not 12M, because the baud rate setting requires 11.0592M.

Keywords:PC Reference address:Application of communication between PC and single chip microcomputer

Previous article:C language source code of frequency meter based on single chip microcomputer
Next article:Design of a water bath thermostat controller with switch quantity control

Recommended ReadingLatest update time:2024-11-17 00:32

Review and Research on Testing Methods of RAM in Single Chip Microcomputer Systems
In various single-chip microcomputer application systems, the normality of the memory is directly related to the normal operation of the system. In order to improve the reliability of the system, it is necessary to test the reliability of the system. Through testing, the damage caused by memory failure to the system
[Test Measurement]
GD32 MCU won the Embedded Award 2020 Best Hardware Product Award
GigaDevice's GD32 MCU participated in this year's first top international exhibition - Embedded World 2020 in Nuremberg, Germany. The GD32VF103 series RISC-V core MCU stood out in the hardware field nominations and won the championship, winning the only Best Hardware Product Award of the year! GigaDevice GD32 MCU is
[Embedded]
GD32 MCU won the Embedded Award 2020 Best Hardware Product Award
51 MCU interrupt enable register IE
In the MCS-51 interrupt system, the enable or disable of interrupts is controlled by the 8-bit interrupt enable register IE which can be addressed on the chip. See the table below. EA -  -  ES ET1  EX1 ET0  EX0 Where EA is the master switch, if it is equal to 0, all interrupts are not allowed. ES - Seri
[Microcontroller]
STM8 Study Notes---Read the STM8S003 MCU serial number
I recently needed to use the serial number of the microcontroller when doing a project, so I looked up the method of reading the UID of the STM8S003 microcontroller. There are two ways to read the UID, one is to read it directly from the address, and the other is to define a union, set the starting address of the unio
[Microcontroller]
Design of Serial Communication between PC and Multiple MCS-51 Single-Chip Microcomputers
【Abstract】 This paper mainly explains the communication principle of IBM-PC and MCS-51 single-chip multi-computer system, gives its hardware interface block diagram, and analyzes the multi-computer communication software design of the system in detail. Keywords: single-chip microcomputer, distributed system, seri
[Industrial Control]
Design of Serial Communication between PC and Multiple MCS-51 Single-Chip Microcomputers
Two-wheeled self-balancing electric vehicle designed with ATMEGA16 microcontroller
In the past two years, a kind of transportation tool called a somatosensory vehicle (or a balancing electric vehicle) can often be seen in public places. Due to its convenience and flexibility, it is quite popular and is called the "last mile magic weapon". Its operating principle is mainly based on a basic principle
[Power Management]
Two-wheeled self-balancing electric vehicle designed with ATMEGA16 microcontroller
Initial experience in developing Bootloader for Freescale MCU series
BootLoader is generally used for upgrading embedded products in the later stage. Since the products lack the JTAG hardware debugging interface, BootLoader can realize software upgrade without physical destruction. Development focus: 1. The Flash driver of the chip itself. Generally, it is provided by the official. F
[Microcontroller]
Make a good MCU 89C51 programmer according to the crooked circuit diagram
Last time I used the 89C51 microcontroller , the K1200 programmer had some problems. I didn't know whether it was the programmer or the microcontroller that had problems, so I made a simple 89C51 programmer myself, mainly because I didn't want to spend any money and used local materials. The circuit diagram was refere
[Power Management]
Make a good MCU 89C51 programmer according to the crooked circuit diagram
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号