Re: [patch] Add support for unused counter on Advantech PCI1710

On Thu, 13.11.03, David Schleef <ds_at_schleef.org> wrote:


> > To set the counter configuration (this has to be done at least once before
> > the counter is actually used) :
> 
> This isn't how Comedi counter configuration works.  There's
> documentation for counter configuration in Comedilib.

I missed that, mostly because the Comedilib reference on comedi.org is a bit
out-dated :). Shame on me for not using my local tree.

> 
> I applied most of the patch.  However, the config stuff needs to
> be fixed.

I would like to do that. Is subsection 4.7.8 in the comedilib reference what
you are pointing me to?

The counter on the card has only one mode, decrement on rising edge of
clock. According to 4.7.1 this would be encoded 10 00 (data[2]).
However, there is also another "mode"-setting for the counter, which
controls what happens when the count reaches zero. Would this also be
encoded in data[2] or rather as _arg(data[4])?

And i would like to know what to put into data[0].

Thanks,

Nils

Received on 2003-11-18Z08:28:58