Rockbox Development > New Ports

Cowon D2

<< < (95/194) > >>

FranzD2:
I just tried but i've got the top line repeated at the bottom, it seems that a value of 22 is worse than 23, is it possible?
By the way i'm investigating the problem in the touchscreen driver which takes wrong presses, i'm almost sure that the problem is the lack of a delay between the adc start command and the read:


--- Code: --- pcf50606_write(PCF5060X_ADCC2, (0xE<<1) | 1); /* ADC start X+Y */
 pcf50606_read_multiple(PCF5060X_ADCS1, buf, 3);

--- End code ---

in button-cowond2.c.
Putting a delay here seem to solve this problem but it slows down when i keep the screen button pressed.

shotofadds:

--- Quote from: FranzD2 on November 16, 2008, 10:54:41 AM ---I just tried but i've got the top line repeated at the bottom, it seems that a value of 22 is worse than 23, is it possible?
--- End quote ---
Strange, both values seem to work here. Looks like I'll need to do some more work on this...


--- Quote ---Putting a delay here seem to solve this problem but it slows down when i keep the screen button pressed.
--- End quote ---
Yes, the touchscreen handling is one area that could do with some serious re-work. Inserting delays should be a last resort as this code is run from IRQ context, and like you say, it will cause slow-downs. If I remember correctly, the PCF50606 datasheet states that a delay should not be required between the start and read commands.

I have some changes in my local tree that might improve things, but I was waiting to see how reliable they turned out to be!

Finally, I've committed some improvements to the NAND driver (in r19118), so please try out the new version and let me know how it goes. Cheers!  ;)

EDIT: To get the full benefit of any improvements to the NAND driver you will also need to update and re-flash the bootloader.

FranzD2:
 :) !!!NAND!!!   :o :)

However i've just checked on the pcf50606 user manual and it says that the coversion time is 25 us.

vodi:
hi!
i just loaded r19130 (incl. new bootloader) into my D2!

The Bootup-logo works, but after this there is again the "2 lines from top on bottom" problem. everytime.

shotofadds:
Wow, that was quick..  ;D

Could you try one thing quickly for me - a variation of the "fix" I suggested to FranzD2 earlier? Could you try editing line 80 of lcd-cowond2.c, so that FREQ>>23 now reads FREQ>>24?

I just booted up the D2 15 times in a row with this setting and didn't see the problem once...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version