Subject: Re: A/Ds (device drivers)
To: None <port-i386@netbsd.org>
From: Christian Kuhtz <ck@gnu.org>
List: port-i386
Date: 06/19/2001 14:13:24
Jasper Wallace wrote:
> How concerned are you about timeing?
>
> If you just want to read from an IO address every second or so and you don't
> care about interrupts you can do this from userland - see i386_iopl(2) and
> /usr/include/machine/pio.h for inb().
Sorry, I forgot to address that.
Ideally, I'd like to get each channel at a constant sub-second range, at least
10Hz, maybe up to 50Hz (but seems for what I want to do with it 10Hz is plenty
in most cases; so, you may have a couple of high rate channels and a the rest
is 10Hz or less). Probably something along the lines of this board
http://www.diamondsystems.com/diamondmmat.htm
which offers 16ch @ 12-bit each, with a 512 sample fifo (which generates an
interrupt at half full).
Seems that'd be a bit much to do from userland...
Thanks,
Chris