myMPX
Advertisement


Go Back MyMPx.org > MyMPx.org Forum > General Discussion

Hooray!!! Rockchip SDK!
Like Tree1Likes
Reply
Post New Thread
 
LinkBack Thread Tools
  #221 (permalink)  
Old 10th Sep 2009, 6:14 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default


I'll make photos and post them later.

But how the data is transfered between the other chip? Does it uses the whole variable GPIO_PDATx or just one bit of this var depending on the pin used? Or do you config which pins they are by setting GPIO_PCONx??

Last edited by flasher86; 10th Sep 2009 at 6:36 am.
Reply With Quote
  #222 (permalink)  
Old 10th Sep 2009, 7:35 am
New Member
 
Join Date: Aug 2009
Location: Lithuania
Posts: 13
Default

No, it dont use whole variable GPIO_PDATx bits, keyboard chip uses some of them. And yes I config which pins they are by setting GPIO_PCONx, thats why I need to know how do they connects to the CPU. Your keyboard chip uses I2C bus to comunicate with CPU about it you can read here

Last edited by NemesiS2009; 10th Sep 2009 at 7:37 am.
Reply With Quote
  #223 (permalink)  
Old 10th Sep 2009, 7:40 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Ok, I will post pictures, but what if I tell you the values of the GPIO_PCONx from working original firmware? I can read them out using RKP platform. I did that with GPIO_PCON0 and put that value to the SDK source and now finally POWER button responses.

Maybe you can figure out which pins are used by this value?

Even if not, maybe this will help you somehow:
GPIO_PCON0 = 22822
GPIO_PDAT0 = 202 - 252 (its the value to set the level of backlight of the keyboard, dont confuse it with lcd backlight also its the value of POWER button)
GPIO_PCON1 = 9229
GPIO_PDAT1 = 151 (and sometimes 22 but rarely)
GPIO_PCON2A = 66
GPIO_PCON2B = 3003
GPIO_PDAT2 = 61116 and 53035 changing between every 1 ms (sometimes there is some else value 61199 and some that I didnt put down on paper)

Values PCON0, PCON1, PCON2A and PCON2B are steady, they do not change, while others seem to be changing all the time.
btw, all the values are decimals, not hex.

Last edited by flasher86; 10th Sep 2009 at 8:09 am.
Reply With Quote
  #224 (permalink)  
Old 10th Sep 2009, 7:58 am
New Member
 
Join Date: Aug 2009
Location: Lithuania
Posts: 13
Default

the power button responses because it connects straight to the GPIO_PCON0 pin, you can tell me the value of it that I could include it in sources, but with I2C interfase is not that simple.
Reply With Quote
  #225 (permalink)  
Old 10th Sep 2009, 8:23 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

ok, I will make a photos then
Reply With Quote
  #226 (permalink)  
Old 10th Sep 2009, 8:39 am
New Member
 
Join Date: Aug 2009
Location: Lithuania
Posts: 13
Default

if these values are corect, then it seems that your original firmware keyboard driver uses interrupts to drive the keyboard chip, it whill take time to figure out how to work with CPU interrupts first.
Reply With Quote
  #227 (permalink)  
Old 10th Sep 2009, 8:58 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

PHP Code:
unsigned int   imask_tmp;

read_creg(%imaskimask_tmp); //Disable Interrupt
bitclear_creg(%imask15); 

 
write_creg(%imaskimask_tmp); //Enable Interrupt 
is this what you're looking for?
Reply With Quote
Sponsored Links
  #228 (permalink)  
Old 10th Sep 2009, 9:13 am
New Member
 
Join Date: Aug 2009
Location: Lithuania
Posts: 13
Default

No, it is part of 1 of 4 interrupts configuration, if 1 of these interupts are enabled and used by hardware interrupt request, then CPU goes to that interrupt function and executes it, and I need to figure out how to write this function. Rockchip is like a computer CPU, like Pentium 1 at least

By the way, if you dont know how to use the DEC values, or asign them with the rockchip CPU datasheet file, I made a simple explanation in attachment, it whill be intresting for everyone.
Attached Files
File Type: rar Rock.rar (152.6 KB, 25 views)

Last edited by NemesiS2009; 10th Sep 2009 at 10:11 am.
Reply With Quote
  #229 (permalink)  
Old 10th Sep 2009, 1:54 pm
knob's Avatar
Senior Member
Valued Member
 
Join Date: May 2007
Posts: 1,285
Default

Gulp! all I can say is I'm glad I don't have a touch screen Rockchip. I just hope you don't break your player! :-)
__________________
-----------------------------------------------------------------------------------------------------------
Reply With Quote
  #230 (permalink)  
Old 10th Sep 2009, 2:34 pm
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Hmmm, thanks Nemesis. I know how to manipulate with hex dec and bin, but actually I didn't know it reacts with hardware. I am a high-level programmer, its hard for me to understand low-level operations and their relations to the electronics and such. I hope I will get into this, because such knowledge is useful as hell!

I regret I bought a player with touchpad, but at that time it was the best player on the market. It was the only one which supported AVI instead of AMV and MTV. So I thought touchpad will be great too, but its not, its even tiresome. Touchpad often gets crazy in extreme temperatures. Winter outside, or Summer exposed to sun and touchpad barely works.

I made some photos. As you can see I don't have full physical access to it. On the first one I figured out (I hope I was precise and did not make a mistake, though i might be wrong by one pin to the left or right) to which pins it is connected.

don't know why, but something with links is broken (it linked to thumbs only), here they are again:
http://img245.imageshack.us/img245/6664/connections.png
http://img16.imageshack.us/img16/2096/dsc00345v.jpg
http://img6.imageshack.us/img6/73/dsc00346kw.jpg
http://img14.imageshack.us/img14/7256/dsc00354lt.jpg

Click the image to open in full size.
Click the image to open in full size.
Click the image to open in full size.
Click the image to open in full size.

Last edited by flasher86; 10th Sep 2009 at 3:00 pm.
Reply With Quote
Reply

Sponsored Links



Similar Threads
Thread Thread Starter Forum Replies Last Post
NEW rockchip player (Rockchip RK27xx series) availability knob General Discussion 38 12th Nov 2008 10:47 am
Rockchip Editor: for Rockchip 27xx ALP1987 Support and How To 6 17th Oct 2008 5:25 pm


All times are GMT -7. The time now is 4:18 pm.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2
Back to Top

Designed by indiqo.media