GithubHelp home page GithubHelp logo

ahmedkhalid1 / serial-programming-win32api-c Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rrmhearts/serial-programming-win32api-c

0.0 1.0 0.0 20 KB

Serial Port Programming on Windows using Win32 API and C language

Home Page: https://www.xanthium.in/Serial-Port-Programming-using-Win32-API

License: Apache License 2.0

C 100.00%

serial-programming-win32api-c's Introduction

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.

Screenshot of the serial port programming code running on windows 7


Online Tutorial

Details

  • 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

  • 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.


Repo Contents

  • 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.

serial-programming-win32api-c's People

Contributors

xanthium-enterprises avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.