Reading BBB ADC's using QNX

81 views
Skip to first unread message

Todd Peterson

unread,
Mar 11, 2015, 4:27:30 PM3/11/15
to beagl...@googlegroups.com
I want to read the BBB ADC inputs using the QNX operating system. As no driver is provided in the QNX BSP, I need to write low-level C code to do this. I figure I need to do the following steps:

1. Put the pins in the right mux mode
2. Turn on the clock to the ADC
3. Set up the 'steps'
4. Start a conversion sequence
5. Wait for the sequence to end
6. Read the sampled values

I have not found any low-level code that does this. It would be greatly appreciated if anybody could provide example register-level code to do this.

Thanks in advance!

acheesehead

unread,
Mar 12, 2015, 1:14:23 PM3/12/15
to beagl...@googlegroups.com
Got it!

Steps 1 & 2 are not necessary. The rest is pretty straight-forward.

set...@gmx.de

unread,
Jul 14, 2017, 3:20:54 PM7/14/17
to BeagleBoard
Hey Acheesehead,

 funny name :) I'm sitting here with the same problem and want to use the adc of beaglebone black with qnx. But i cant figure out how it will work. Can help me? I read you did it and it works.

Best Regards
Sethary

acheesehead

unread,
Jul 15, 2017, 12:17:02 PM7/15/17
to BeagleBoard, set...@gmx.de
Sent you email with the files.

set...@gmx.de

unread,
Jul 17, 2017, 8:25:58 AM7/17/17
to BeagleBoard, set...@gmx.de
I got it, thanks a lot. I found them in my Spamfolder - can't figure out why^^

Ok, i try to get it run now and will inform you if it works fine.


Best Regards
Sethary
Reply all
Reply to author
Forward
0 new messages