Coder Social home page Coder Social logo

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

View Code? Open in Web Editor NEW
14.0 3.0 49.0 184 KB

Serial Port Programming on Windows using Win32 API and C language

Home Page: http://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).

Screenshot of the serial port programming code running on windows 7

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

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.

serial-programming-win32api-c's People

Contributors

xanthium-enterprises avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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