interfacing pc to a 8051 micro controller

Thread Starter

dawuzi

Joined Apr 11, 2011
1
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.
 

RiJoRI

Joined Aug 15, 2007
536
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.
Look around on 8052.com. 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.

--Rich
 
Top