How to write a wince program for ADC

felix_cf
Hi expert,
I am a newbie on embedded system. I am writing a application to test the
ADC control of mini2440 using wince 6, but I have no idea how to access it.
Anyone could provides an example code in c# for my reference?

Cristiano
Hello, I'm having the same problem,
I've found an ADC example on :
http://www.thaieasyelec.net/archives/Manual/Example-WINCE-ARM9.zip

I've used just the C# one, it gives me the message: "Open ADC1 Driver Fail"
and nothing works, but the aplication run's ( if you check after getting a
hport = -1, the program don't do nothing )

I think the problem is in the :
 hPort = CreateFile("ADC1:", GENERIC_READ | GENERIC_WRITE, 0, IntPtr.Zero,
OPEN_EXISTING, 0, IntPtr.Zero);

line, I don't know the parameters to access the ADC,

thanks in advice,

Cristiano

Farzad
Hi Cristiano;

you should first change the kernel of your 2440 with 

WinCE6 from 

http://www.thaieasyelec.com/sales-and-service-for-WIN-CE.html

I cant read the text but you can select your WinCe and download it.

for upload winCe to your Hardwear you can read  Mini2440.pdf 

I have no problem with the example

Best Regards

bela
Change what, is there a DLL in that CE image?
I really like t access to IO on my 6410 !
Can we get the dll source or the compiled dll ?

bela
I run the
Example-WINCE-ARM9.zip\LED\C#\LEDsample\LEDsample\bin\Debug\LEDsample.exe
and works fine, whoever when I compile the C#
Example-WINCE-ARM9.zip\LED\C#\LEDsample\LEDsample.sln than the file is 1k
larger and cant open GIO1 !!
Anyone know why ?

This is on 6410 board..

vinayak
detail explanation step wise  follow this link

[url=http://pchardsoft.com/2011/06/how-to-write-a-code-for-wince-application/...]

Toon Coolman
if you want to use example from www.thaieasyelec.com, you must use image
wince6.0 from
http://www.thaieasyelec.com/Free-Service-from-ThaiEasyElec/ARM9-mini2440...

Joan Y
Dear Toon,

But there should be an ADCdriver.dll File in the Thaieasyelec image,

do you have it?

or anybody has it? it would ease alot ADC work.

bela
Anyone read it at all ? !!

"I run the
Example-WINCE-ARM9.zip\LED\C#\LEDsample\LEDsample\bin\Debug\LEDsample.exe
and works fine, whoever when I compile the C#
Example-WINCE-ARM9.zip\LED\C#\LEDsample\LEDsample.sln than the file is 1k
larger and cant open GIO1 !!
Anyone know why ?
"

The precompiled exe works fine, but if I compile with VS2008 the same
example not working and the file-size 1kbyte larger !!
I got the Dll, registered fine, now I just want to make my own app but even
the example they provided not complies a working exe...

Toon CoolMan
Dear bela

First Question. 
  Becoz 6410 WinCE Image from FriendlyARM doesn't have GPIO Driver.

Second Question
  plz check define in your code and compare with example.

Toon CoolMan
Dear Joan Y
   
   I used WinCE Image from thaieasyelec.com too.

Toon CoolMan
Hey Joan Y
   I found ADC Driver and coding from
http://www.friendlyarm.net/forum/topic/1954

singh
this link might be helpful for you.try this

http://goodtricks4pc.blogspot.in/2012/05/how-to-write-windows-ce-configu...

Jibin Joy
hi sir..
Im using arm 9 board w35.i want to digitalise audio signal using adc of
arm..is it posiiblr