interfacing pc to a 8051 micro controller

Discussion in 'General Electronics Chat' started by dawuzi, Apr 18, 2011.

  1. dawuzi

    Thread Starter New Member

    Apr 11, 2011
    hi everyone. I would like to send three set of data from the 8051 micro controller to a c# application running on a pc with some control signals sort of identifying which data is been sent currently. i have not interfaced a pc to a controller before so please include little details as well.
  2. GetDeviceInfo

    AAC Fanatic!

    Jun 7, 2009
    RS232 port if you have one.
  3. RiJoRI

    Well-Known Member

    Aug 15, 2007
    Look around on There should be a load of code & schematics.
    You'll need to design a message format so the PC can figure which data set you are sending. Something like this:

    [Bytes in message][Data set number][data...][Checksum]

    Each [] is one byte. [data...] is a string of data bytes. Or 1 byte.

    Is there a reason you are using an 8051? An Arduino board may be easier. Or if your data is not coming in too fast, a Parallax BASIC Stamp may do the trick.