Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Does anyone have any example or website how to use VS 2008 to UART in microcontroller to receive data. I have found many but it is either in VB6 and it uses MSCOMMS that is not available is VS 2008.
If all you want is to receive data from the UART of Microcontroller you can use this method.
1) Add a Serial Port component to a form.
2) Change desired properties ( i.e. Baud rate..)
3) Call the Open() method in the Serial port control instance. eg : serialPort1.open();
4) Then you can use any of the following methods to receive data from the serial port
Read(), ReadByte(), ReadChar(), ReadExisting(), ReadLine()
eg : int onOfBytesRead = serialPort1.Read(receiveBuffer,0,serialPort1.BytesToRead)
I just gave you some guide lines. Hope you'll be able to manage it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.