![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
HI! I just start my porject of PIC progarmming. Can some one please help me to write a simple program on how to send a analog data through serial port on PC. How can VC++ read the data from PIC. Thanks. Anderson Goh
__________________ Anderson goh | |
| |
| | #2 |
|
You have to use CreateFile, ReadFile and WriteFile to send data to the serial port. Use CreateFile with "COMx" as devicename to get an handle There's info on MSDN http://msdn.microsoft.com/library/de...createfile.asp | |
| |
| | #3 |
|
I made a wrapper class for visual c++ 6.0 ... if you're interested :!:
| |
| |
|
| Thread Tools | |
| Display Modes | |
| |