> Can anyone tell me where is the related web site or reference books
>for data acquisition via parallel port and serial ports written in C
>program ?
The C language itself has no support for particular hardware
devices or direct hardware access. The approach you use depends on the
particular OS you are using: some provide ready-made drivers with APIs
through which programs can access and control them. Of the ones that don't
some require you to write a device driver because they don't allow user
level programs to access hardware devices directly. Some do allow direct
hardware access and compilers for those will probably provide extra
facilities (typically library functions) to allow hardware accesses.
So the simple answer is that there is no way to do what you want in plain C.
You need instead to look to the facilities of your specific OS or compiler
to do what you want. Therefore try an appropriate OS or compiler
related newsgroup such as comp.os.msdos.programmer, comp.unix.programmer,
comp.os.ms-windows.programmer.win32 etc.
--
-----------------------------------------
Lawrence Kirby | fr...@genesis.demon.co.uk
Wilts, England | 7073...@compuserve.com
-----------------------------------------
--
please remove .nospam to reply
--
Mijo ^¿^
"9A" Hardware Software Development
http://131.123.14.203/~knamjesn/dic.html
http://131.123.14.203/~knamjesn/vbsearch32.html
¯¯
"Don't just do something. Stand there."
If you are interested, the company that I work for sells a serial
communications program called the Software Wedge that you may find to
be a good tool for adding serial communications capabilities to your
application. The Software Wedge is an executable program that can pass
serial data back and forth to other programs using either DDE (Dynamic
Data Exchange) or by converting incoming serial data to keystrokes
(i.e. it stuffs the keyboard buffer with the incoming serial data).
The program is extremely easy to use and is designed to have you up
and running sending and receiving serial data directly from within
your application in just a few minutes.
Please visit http://www.taltech.com for more information.