From: Paul on
On 03/07/10 11:03 AM, ScottMcP [MVP] wrote:
> On Mar 7, 7:04 am, Paul<pminott...(a)yahoo.ca> wrote:
>> That is a pity. Parallel ports are extremely convenient for interfacing
>> with sensors and robots.
>>
>> Do you know if the same applies to serial I/O?- Hide quoted text -
>
> All versions of Windows since Win95 have very complete support for
> serial ports.
>
> Find the article "Serial Communications in Win32" in MSDN and the
> associated MTTTY sample. I tried to give you a link to it, but the
> MSDN site is flaky at the moment.
>

Thank you. I already had the URL for that site.
From: Paul on
On 03/07/10 08:01 AM, Bob Masta wrote:
> On Sat, 06 Mar 2010 16:49:58 -0500, Paul
> <pminottawa(a)yahoo.ca> wrote:
>
>> Is it possible to read from and write to a parallel port with Windows? I
>> have produced Parallel Port I/O with DOS (using interrupts or inp/outp)
>> and OS/2 using DosDevIOCtl (roughly equivalent to DeviceIoControl).
>>
>> I have tried opening a port using CreateFile. This seemed to work. But
>> when I tried to read from the port using ReadFile or DeviceIOControl,
>> the read failed.
>>
>> I cannot use third party drivers, or even a driver that I might write,
>> since I cannot change the configuration of the computers I am writing
>> for. (So I cannot use inpout32.dll since it requires a
>> driver--hwinterface.ocx.)
>>
>> I understand that device I/O under Windows must be done through device
>> drivers--as with other, more advanced OSs--and why this must be. But, I
>> though Windows (95,NT,98,...,XP,Vista, 7) _did_ have a parallel port
>> driver. Is this driver just for show?
>
> The place to go for all kinds of port info is Jan
> Axelson's Lakeview Research<www.lvr.com>.
>
> As I understand it, the ports were freely
> accessible from user mode under Windows versions
> through Win98, but XP and later require special
> Ring 0 drivers, installed at boot time. There are
> a number of such drivers out there, but it sounds
> like this is not the approach you need.
>
> On the other hand, if there is a way to make the
> standard Windows drivers work, I suspect it will
> be discussed somewhere on Jan's site, or one of
> the many links she has there.
>
> Best regards,
>
>
> Bob Masta
>
> DAQARTA v5.10
> Data AcQuisition And Real-Time Analysis
> www.daqarta.com
> Scope, Spectrum, Spectrogram, Sound Level Meter
> Frequency Counter, FREE Signal Generator
> Pitch Track, Pitch-to-MIDI
> DaqMusic - FREE MUSIC, Forever!
> (Some assembly required)
> Science (and fun!) with your sound card!

Thanks, I have already been to that site, several times. If there is any
info that does not involve a driver I haven't found it.

My problem now is how to take the byte data, provided by an adc chip and
convert it to serial output for RS-232 communication. I am not an
electrical engineer.
From: ScottMcP [MVP] on
On Mar 7, 12:55 pm, Paul <pminott...(a)yahoo.ca> wrote:
> My problem now is how to take the byte data, provided by an adc chip and
> convert it to serial output for RS-232 communication. I am not an
> electrical engineer.- Hide quoted text -

Numerous hobbyist projects do this. With the "Basic Stamp"
microcontroller, and several similar products, the unit can be
"programmed" in a simple variant of BASIC. You get a PC board instead
of a chip. Here's a starting point:

http://en.wikipedia.org/wiki/BASIC_Stamp