H hgoh2 New Member Feb 13, 2004 #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
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
Exo Active Member Feb 14, 2004 #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 https://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/createfile.asp
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 https://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/createfile.asp
Exo Active Member Feb 14, 2004 #3 I made a wrapper class for visual c++ 6.0 ... if you're interested :!: