Design of serial communication module between PIC microcontroller and PC

Publisher:咖啡小熊Latest update time:2011-08-05 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Design idea of ​​serial communication module between PIC microcontroller and PC: This module uses the asynchronous serial communication port of PIC16F877 to realize serial communication with PC. The serial port in PC is programmed using Visual C++, and the CMSComm control in Visual C++ is used for programming. The PC serial port program uses the timed sending interrupt receiving method. The microcontroller uses the interrupt control method. When the interrupt receives 8 data, the received 8 data are sent to the PC in the form of an interrupt.

As shown in the figure is the host computer serial port debugging interface:


Figure 1. Host computer serial port debugging interface

Reference address:Design of serial communication module between PIC microcontroller and PC

Previous article:PIC18F8520 GPS Precision Clock Implementation
Next article:Introduction to PIC microcontroller reset system module

Recommended ReadingLatest update time:2024-11-16 15:53

Gartner: Global PC shipments will drop 30% in the first quarter of 2023
The PC market experienced a historic year-over-year decline for the second consecutive quarter amid the simultaneous impact of high inventory and low demand. April 17, 2023 - Preliminary results from Gartner show that global personal computer (PC) shipments totaled 55.2 million units in the first quarter of 2023, a
[Home Electronics]
Gartner: Global PC shipments will drop 30% in the first quarter of 2023
Implementation of serial communication between TMS320C54XX series DSP and PC
Abstract: At present, most digital signal processor (DSP) chips do not provide universal asynchronous serial transceiver (UART), and only provide 2 to 3 synchronous serial interfaces. When they communicate serially with microcomputers and other devices, The asynchronous serial interface must be extended on the DSP. Tak
[Industrial Control]
Application of RS-232 serial communication in communication between PC and single chip microcomputer
  Since the single-chip microcomputer has the characteristics of small size, low price and strong adaptability, it is generally used in industrial control systems to complete the collection of various data and the control of actuators. However, the computing power of the single-chip microcomputer is limited, and it is
[Microcontroller]
Application of RS-232 serial communication in communication between PC and single chip microcomputer
cortex-a8 S5PC100 interrupt mechanism
1. Vector Interrupt Overview S5PC100 integrates three vector interrupt controllers (VIC in the following text), adopts PL192 core based on ARM PrimeCell technology, and also includes three TZICs, namely the interrupt controllers involved in TrustZone technology (TZIC in the following text), whose core is SP890. S5P
[Microcontroller]
PIC18 serial bootloader in C language and PC serial communication program with bootloader in C# language
  New PIC18 Bootloader   PhsBoot_v3.0 is my latest PIC bootloader implemented in C language, using serial communication, suitable for PIC18, and I wrote a PC communication program PhsLoader_v3.0 for it in C#. PhsLoader_v3.0 sends data to PhsBoot_v3.0 through the serial port according to the custom communication prot
[Microcontroller]
How to realize serial communication between PC and AT89C51 microcontroller
In the data acquisition and real-time control system based on single-chip microcomputer, the command and data transmission between the computer and the single-chip microcomputer is carried out through the RS-232 interface in the computer, and the computer can be used to monitor and control the production site. Since t
[Microcontroller]
PC2004 LCM Driver
#include /***********************************************************  File name: Driver for PC2004 series character LCM module of POWERTIPAuthor  : FreeVersion : v01Description  : Address 0x80~0xa7,0xc0~0xe7;                 First line: 0x80~0x96; Second line: 0xc0~0xd6;    Third line: 0x97~0xa7; Fourth line:
[Microcontroller]
Sources say Nvidia and AMD will manufacture ARM-based PC chips to challenge Intel and Apple
According to news on October 24, Reuters reported that artificial intelligence chip giant Nvidia has begun designing a central processing unit (CPU) that can run Microsoft's Windows operating system and use Arm's technology. Sources revealed that AMD also plans to manufacture Arm-based PC chips. The chips are expected
[Home Electronics]
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
Guess you like

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号