From: Alexis Berlemont <alexis.berlemont@domain.hid>
To: "Kim, Jonghyun (NIH/CC) [F]" <jonghyun.kim@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Sample code about counter for quadrature encoder in S526 DAQ board
Date: Tue, 18 Jan 2011 00:26:33 +0100 [thread overview]
Message-ID: <20110117232633.GA3023@domain.hid> (raw)
In-Reply-To: <CB64A448250ADE40A2D9459AEB556D5E02858217E5@domain.hid>
Hi,
Kim, Jonghyun (NIH/CC) [F] wrote:
> Hi.
>
Sorry for the late reply.
> I wanna use S526 DAQ board under Xenomai 2.5.x.
> The major aim of S526 board is to measure angle by using quadrature encoder.
>
> In contrast to AD and DA function of S526 board (e.g. insn_read and insn_write),
> I was not able to find any sample code about counter function for quadrature encoder.
>
> Could I get a sample code about counter for quadrature encoder in S526 board?
> (insn_read and insn_write are good example of the sample code)
>
No sample program is available for this board. The main reason is that
we did not have enough time to work on a unified user-space API which
would work with any acquisition board (instead of developing a
specific test program for each board).
Simon ported the driver starting from the comedi version. In this
solution, the board registers were configured in user space thanks to
a configuration instruction.
A4L_INSN_CONFIG_GPCT_QUADRATURE_ENCODER:
/*
* data[0]: Application Type
* data[1]: Counter Mode Register Value
* data[2]: Pre-load Register Value
* data[3]: Conter Control Register
*/
A4L_INSN_CONFIG_GPCT_SINGLE_PULSE_GENERATOR:
/*
* data[0]: Application Type
* data[1]: Counter Mode Register Value
* data[2]: Pre-load Register 0 Value
* data[3]: Pre-load Register 1 Value
* data[4]: Conter Control Register
*/
A4L_INSN_CONFIG_GPCT_PULSE_TRAIN_GENERATOR:
/*
* data[0]: Application Type
* data[1]: Counter Mode Register Value
* data[2]: Pre-load Register 0 Value
* data[3]: Pre-load Register 1 Value
* data[4]: Conter Control Register
*/
> Or, how can I use the counter function of S526 board?
>
> Thanks,
>
>
> Jonghyun
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Alexis.
prev parent reply other threads:[~2011-01-17 23:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 20:16 [Xenomai-help] Sample code about counter for quadrature encoder in S526 DAQ board Kim, Jonghyun (NIH/CC) [F]
2011-01-17 23:26 ` Alexis Berlemont [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110117232633.GA3023@domain.hid \
--to=alexis.berlemont@domain.hid \
--cc=jonghyun.kim@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.