flat assembler
Message board for the users of flat assembler.
Index
> Windows > RS232 API?? |
Author |
|
lilljocke 20 Mar 2006, 17:10
Is there someone who can show me how to receve data from the com port??
|
|||
20 Mar 2006, 17:10 |
|
farrier 20 Mar 2006, 23:32
lilljocke,
Read the info here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp UCM was correct, you use CreateFile to open a port, and ReadFile/WriteFile to read and write from/to the port. Setting "interrupts" and handlers is more complicated. I use this technique to read data from a truck scale and write info to a slip printer and it works. Another alternative is to use a "device driver" such as the WinIO library which you can find at www.internals.com This gives you access to the serial ports in a way which would be familiar to DOS programmers using in and out port instructions. I have never used this, but others say it works well. hth, farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
20 Mar 2006, 23:32 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.