Which files need for ADC, DMA and Timer interrupt

39 views
Skip to first unread message

hieuh...@gmail.com

unread,
May 9, 2017, 9:38:23 PM5/9/17
to BeagleBoard

I have to read from ADC at 20khz in a continuous manner. Maybe I need to use DMA and Timer (or another way).
I read some documents, but I still don't know how to deal with ADC, DMA and Timer interrupt from linux filesystem.
Very helpful if I have some clues. Thank for advance.

Dennis Lee Bieber

unread,
May 9, 2017, 11:08:35 PM5/9/17
to beagl...@googlegroups.com
On Tue, 9 May 2017 15:10:51 -0700 (PDT),
hieuh...@gmail.com declaimed the following:
For some reason... "interrupt" and "linux filesystem" (I presume you
mean the sysfs [or whatever it is called] that exposes the various devices)
seem to be at odds in my mind.

I could be all wet -- but the filesystem access overhead seems to
preclude reliable response timing (after all, most I/O on the filesystem
will result in process swapping).
--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

TJF

unread,
May 11, 2017, 2:21:40 PM5/11/17
to BeagleBoard, hieuh...@gmail.com
Have Check out libpruio. ADC is available in three different modes
  1. IO (ARM fetches value, sloppy timing)
  2. MM (fixed number of samples, several trigger options)
  3. RB (ring buffer for continuous measurement)


Reply all
Reply to author
Forward
0 new messages