Interfacing with Analog inputs using the BB Black PRU

Hi Jack!

I have been able to get the ADC working fine with just GPIO, …

I don’t understand this. GPIO is digital input or output. ADC is analog input. There’s no correlation between both. What do you mean here?

I was wondering if anyone had references for reading the built in ADC through the PRU.

There’s no differences in the code. The same PRU code can be used for reading ADC regardless of interfaceing to the ARM CPU by rpmsg or by UIO_PRUSS.


Hello TJF,

I misspoke initially. I meant to say that I was able to get the ADC working in just by referencing AIN on the ARM CPU. I thought that I would need to do something different when using the PRU, but it seems I don’t. Thanks anyways!