Hello Everyone I am using Mini2440 to develop an application which uses ADC of Mini2440. I am using Linux Kernel version 2.6.32.2. For testing I am running http://friendlyarm-micro2440.blogspot.in/p/building-qt-projects.html above application. I am testing on AIN0. And all I am getting is Random and Fluctuating values. I tried "cat dev/adc" then it works fine, values changes according to POT. I just observed that there is no entry of "s3c24xx-adc" in sys/devices/platform/ when I tried to run built in application of ADC Convertor present in OS it just gives -1. Can anybody provide solution???
ADC of Mini2440 displaying random values
Does the kernel require something enabled and re-compiled? The tutorial should advise. Be aware that 4 of the ADC inputs are used for the touchscreen, depending on model of the display
Thank You for Response I also think so that kernel needs to be modified but i dont know how it has to be done. While searching I found that something needs to be done with "arm/arch/mach-mini2440/mach-mini2440.c" file You have link to any tutorial?? I searched google but didnt find any useful one.
http://ebrombaugh.studionebula.com/embedded/mini2440/index.html but no ADC. There is a mention that one ADC (I think 4 channels) is enabled but if you want more then it is a re-compile. The file you mention is probably the one that needs modifying. My collection of mini2440 is in another location. Maybe in 2 days time I could find something. Also the Pengutronix Quickstart guide for their mini2440 BSP might be useful.
Thank You for the link. If they say that AIN0 is already enabled in Mini2440, then I dont know I cant use it in program. I start my application even before Linux. Will that affect on functionality of Drivers? And it'll be great help if you find something out of your Mini2440 collection. Regards
Some of the ADC channels are enabled for the touchscreen. I think you could remove the touchscreen and interface your circuit to those channels. Sounds like a big job. How can you start anything before the kernel is loaded or the root filesystem?
Can't log into the forum! Send your email address to dave underscore festing at hotmail dot com and I'll send you all my ADC stuff.