My knowledge :
Assuming you are in user mode (application). Each pointer (which is a VitrualAdress) is intercepted by MMU, and then translated to physical adress.
I don't know how WinCE works, so :
- If my application manipulates a physical pointer does the MMU try to translate it ?
- Does it give access violation error ?
backlight control
Re: backlight control
I have not done any C work in relation to the registers, only managed code.
What I did find was looking thru the wince drivers, specifically LEDDriver.cpp
It has some code that initializes the memory address (s2440IOP) and also deals with the registers.
Im sure this can be extrapolated to user mode.
The method calls are also reinforced via the post here http://social.msdn.microsoft.com/forums ... 29055180b2 (different platform but same desired goal)
What I did find was looking thru the wince drivers, specifically LEDDriver.cpp
It has some code that initializes the memory address (s2440IOP) and also deals with the registers.
Im sure this can be extrapolated to user mode.
The method calls are also reinforced via the post here http://social.msdn.microsoft.com/forums ... 29055180b2 (different platform but same desired goal)
-
- Posts: 15
- Joined: Thu Aug 27, 2009 12:45 pm
Re: backlight control
Thank you for the link.
Now I've figured how to access physical registries under user mode. If I understand correctly, we must first reserve virtual memory by using VirtualAlloc then use VirtualCopy (which is unavailable under Win32 ) to map virtual memory to the physical memory.
So now, I just need to do the initialization which described once in my application then call the backlight driver to set different PWM value ?
I didn't look at the interface of the driver yet.
How is going with CFIO.dll, did you succeed to set different brightness value ?
Now I've figured how to access physical registries under user mode. If I understand correctly, we must first reserve virtual memory by using VirtualAlloc then use VirtualCopy (which is unavailable under Win32 ) to map virtual memory to the physical memory.
So now, I just need to do the initialization which described once in my application then call the backlight driver to set different PWM value ?
I didn't look at the interface of the driver yet.
How is going with CFIO.dll, did you succeed to set different brightness value ?
Re: backlight control
Once you can write to the registers the rest is a breeze.
While the mini2440 has several pwm pins, I have been unable to find the configuration needed to actually control brightness.
The pin responsible is Port G.4
At the moment I have only been able to turn on/off the backlight.
I have the sample almost ready and will be posting it in the next day or so.
While the mini2440 has several pwm pins, I have been unable to find the configuration needed to actually control brightness.
The pin responsible is Port G.4
At the moment I have only been able to turn on/off the backlight.
I have the sample almost ready and will be posting it in the next day or so.
Re: backlight control
Hey nicolas,
Thanks for you great work. Any chance of releasing the code that controls the back light?
Cheers
Thanks for you great work. Any chance of releasing the code that controls the back light?
Cheers
Re: backlight control
Ill post up the VB.Net sample soon. Just been so busy and I had to reinstall windows yesterday.
With the information on the first page and the other sample i released, the LED one, you should be able to put them together and accomplish the task.
Sorry its taking so long for the full sample.
With the information on the first page and the other sample i released, the LED one, you should be able to put them together and accomplish the task.
Sorry its taking so long for the full sample.
Who is online
Users browsing this forum: No registered users and 11 guests