Reading BBB ADC's using QNX

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!

Got it!

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

Hey Acheesehead,

funny name :slight_smile: 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

Sent you email with the files.

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