Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: cpilote on November 24, 2019, 04:12:09 AM

Title: A20 LRADC
Post by: cpilote on November 24, 2019, 04:12:09 AM
Hi! I'm new to the A20 development board and I would like to know if it's possible to have access to the value read by the LRADC pin.

Thank you
Title: Re: A20 LRADC
Post by: martinayotte on November 24, 2019, 03:51:34 PM
Quote from: cpilote on November 24, 2019, 04:12:09 AMHi! I'm new to the A20 development board and I would like to know if it's possible to have access to the value read by the LRADC pin.

Thank you
Download this http://dl.linux-sunxi.org/A20/A20%20User%20Manual%202013-03-22.pdf
Go to page 191 ...
Title: Re: A20 LRADC
Post by: cpilote on November 24, 2019, 08:12:48 PM
ok thank you. So I guess on the A20 board there is no way to access the values converted in a way that is similar to the GPIOs (ie /sys/class/*adc/ch...)?
thank you.
Title: Re: A20 LRADC
Post by: martinayotte on November 25, 2019, 06:09:23 PM
Quote from: cpilote on November 24, 2019, 08:12:48 PMok thank you. So I guess on the A20 board there is no way to access the values converted in a way that is similar to the GPIOs (ie /sys/class/*adc/ch...)?
thank you.
It doesn't seems that kernel has any driver for that.
You can use "devmem" tool to access those registers.