Menu
Jun 07, 2015 In this tutorial we will learn How to communicate with an external device like a microcontroller board or modem using the Serial port of a windows PC(Windows XP,7). The software is written using C language and communicates with the Serial Port using Win32 API. In Windows,Serial ports are named as COM1,COM2,COM3. This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. The Windows Serial Port Programming Handbook Ying Bai on Amazon.com.FREE. shipping on qualifying offers. The popularity of serial communications demands that additional serial port interfaces be developed to meet the expanding requirements of users. The Windows Serial Port Programming Handbook illustrates the principles and methods of developing various serial port interfaces using. The Windows Serial Port Programming Handbook Ying Bai on Amazon.com.FREE. shipping on qualifying offers. The popularity of serial communications demands that additional serial port interfaces be developed to meet the expanding requirements of users.
- Windows Serial Port Programming In C
- Serial Port Communication
- Windows Serial Port Programming Handbook
- The Windows Serial Port Programming Handbook Ying Bai Pdf
- The Windows Serial Port Programming Handbook Source Code
This Sample program contains code which opens two UART COM port to send and recieve data via serial UART. Windows Dev Center. Serial Port Sample.
#Serial Port Programming using Win32 API and C language
This repo contains code for transmitting and receiving characters (Strings) serially between an x86 Windows PC and a Microcontroller (MSP430G2553 on Launchpad).The code is written in C and uses Win32 API calls to control the SerialPort on a Windows machine.
Windows Serial Port Programming In C
--------------------------------------------------------------------------------------------------------------------------------------##Details
Full code explanation along with screenshots can be found here on the xanthium website
- The Microcontroller and PC are connected in null modem configuration using 3 signals (TX,RX and Ground).
- The code uses standard Win32 API's to intialize the PC serial port and transmit a character to the microcontroller board.
- The PC side code is written in C using Win32 API
- and can be compiled using GCC or Microsoft Visual Studio Express.
- The Code will Work With Standard RS232 Serial ports or any USB to Serial Converter.
More info about the USB to Serial/RS232/RS485 Converter used in the above tutorial can be found here
Serial Port Communication
- The Microcontroller side code is written in Embedded C and Compiled using IAR embedded Workbench for MSP430.
- The Hardware used is MSP430G2553 on Launch pad development board.
Windows Serial Port Programming Handbook
##Repo Contents
The Windows Serial Port Programming Handbook Ying Bai Pdf
The Windows Serial Port Programming Handbook Source Code
- USB2SERIAL_Read
- Contains Code for Reading data from the serial port of Windows Machine .
- A string is transmitted by MSP430 Microcontroller which is received by the PC Serialport and then displayed on the Console.
- USB2SERIAL_Write
- Contains Code for Transmitting data from the serial port of Windows Machine .
- A character is transmitted by the Windows PC towards the MSP430 Microcontroller.The character is received by the MSP430 and an LED on the development board is turned ON to signify data reception.