GitHub - mnuaimi/Serial-Programming-CSharp: Programming the Serial Port using C# and Dot Net FrameWork


  • The code uses the SerialPort class from .Net Framework/NET Core 3.1
  • Code opens up a Serial port on Windows PC for communiating with a Microcontroller board (MSP430 Launchpad/ATmega328P).
  • Code transmits and receives between PC and Micro Conntroller
  • The code also shows how to control the RTS and DTR pins of the serial Port

Online Tutorial


Details

  • Code can be compiled using

    • Microsoft Visual Studio Community
  • Code will work with traditional serial ports as well USB Serial Converters.


ScreenShot of the Program

  • Program Receiving the data transmitted from ATmega328P Microcontroller (Lauchpad board).

  • Code running on NET Core 3.1

Devices used