how to (interface uC to a PC)?

chloe

New Member
can someone help me in this? please? how to interface the micro controllers to a PC? the input commands for micro controllers is from the PC. the GUI program that will used by the PC is Visual Basic. in addition the micro controller can be controlled in alternative by a proximity sensor. thanks for the help!
 
one tip for you as I've strugled for simillar project, but some fine friends here in ETO told to use serial port as it is the most popular interface here and that will save you time of trying others.
 
ok, two separate problems here;
chloe - I assume you know how to program both your computer and the MCU that you are using.
Next you have to choose what kind of interface you're going to use.
As aljamri has mentioned using a plane old serial port is one of the easiest ways to do it. Using the parallel printer port is another, though it's a bit old hat to use parallel comms these days.
I would think that your complier has serial port libraries as does the MCU compiler your using and that you should take advantage of these and read up on them or look for some example code for each end.

The libraries may not define any kind of protocol standards and you will have to develop your own for talking to the device of your choice if such a thing is required.

There are also probably libraries for USB serial communications which aren't that much more complex to use than standard serial routines.


@jemich; download the datasheets for your LCD or a generic hitachi LCD module and read how to initialise and talk to it. Writing the code to handle it will then be very easy.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…