configure lcd ili9325 in script.bin on FB0: I offer money paypal

Started by pawnies20, November 01, 2014, 01:42:45 AM

Previous topic - Next topic

pawnies20

HI i've bought this screen but do't find good parameters to do it work fine.
http://www.banggood.com/2_4-Inch-TFT-LCD-Display-Module-Touch-Panel-240-x-320-With-PCB-Adapter-p-913116.html
Can someone help me please pleaeeeaaaaaaaaasee?
I offer money (paypal) if you can solve problem.


Thanx:

Technical datasheet:
http://www.adafruit.com/datasheets/ILI9325.pdf

my conf:

[disp_init]
disp_init_enable = 1
disp_mode = 4 (pour essayer, mode clone)
screen0_output_type = 1
screen0_output_mode = 6
screen1_output_type = 1
screen1_output_mode = 6
fb0_width = 320
fb0_height = 240
fb0_framebuffer_num = 2 ????
fb0_format = 9
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb1_width = 320
fb1_height = 240
fb1_framebuffer_num = 2
fb1_format = 9
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
lcd0_backlight = 197
lcd1_backlight = 197
lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50
lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

[lcd0_para]
lcd_used = 1
lcd_x = 320
lcd_y = 240
lcd_dclk_freq = 30
lcd_pwm_not_used = 0
lcd_pwm_ch = 0
lcd_pwm_freq = 10000
lcd_pwm_pol = 0
lcd_max_bright = 240
lcd_min_bright = 64
lcd_if = 1
lcd_hbp = 14
lcd_ht = 100
lcd_vbp = 14
lcd_vt = 100
lcd_vspw = 150
lcd_hspw = 150
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 6
lcd_frm = 0
lcd_io_cfg0 = 0
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x0
lcd_gamma_tbl_1 = 0x10101
lcd_gamma_tbl_255 = 0xffffff
lcd_bl_en_used = 1
lcd_bl_en = port:PH21<1><0><default><1>
lcd_power_used = 1
lcd_power = port:PH08<1><0><default><1>
lcd_pwm_used = 1
lcd_pwm = port:PB02<2><0><default><default>
lcd_gpio_0 = port:PH15<0><0><default><default>
lcd_gpio_1 =
lcd_gpio_2 =
lcd_gpio_3 =
lcdd0 = port:PD00<2><0><default><default>
lcdd1 = port:PD01<2><0><default><default>
lcdd2 = port:PD02<2><0><default><default>
lcdd3 = port:PD03<2><0><default><default>
lcdd4 = port:PD04<2><0><default><default>
lcdd5 = port:PD05<2><0><default><default>
lcdd6 = port:PD06<2><0><default><default>
lcdd7 = port:PD07<2><0><default><default>
lcdd8 = port:PD08<2><0><default><default>
lcdd9 = port:PD09<2><0><default><default>
lcdd10 = port:PD10<2><0><default><default>
lcdd11 = port:PD11<2><0><default><default>
lcdd12 = port:PD12<2><0><default><default>
lcdd13 = port:PD13<2><0><default><default>
lcdd14 = port:PD14<2><0><default><default>
lcdd15 = port:PD15<2><0><default><default>
lcdd16 = port:PD16<2><0><default><default>
lcdd17 = port:PD17<2><0><default><default>
lcdd18 = port:PD18<2><0><default><default>
lcdd19 = port:PD19<2><0><default><default>
lcdd20 = port:PD20<2><0><default><default>
lcdd21 = port:PD21<2><0><default><default>
lcdd22 = port:PD22<2><0><default><default>
lcdd23 = port:PD23<2><0><default><default>
lcdclk = port:PD24<2><0><default><default>
lcdde = port:PD25<2><0><default><default>
lcdhsync = port:PD26<2><0><default><default>
lcdvsync = port:PD27<2><0><default><default>

Cosik


pawnies20

 Not working.
I dont know how to.
Can you help me?

LCD Work in parallel rgb 8 BITS.
I will offer you money if it works!!

Thanx

Cosik

Maybe you could show some connection schematic between board and LCD?

Problem could be everywhere.

pawnies20

----- ITDB02 --------------- Graph/Touch --            A10 LCD_CON ---- Nota ----

pin 19   LED   backlight +5V              G                 pin 35                 GPIO PWM
pin 7   DB8   Data Bus 0                   G        pin 21 LCD_D0
pin 8   DB9   Data Bus 1                   G        pin 22 LCD_D1
pin 9   DB10   Data Bus 2                 G                pin 23 LCD_D2
pin 10   DB11   Data Bus 3               G                pin 24 LCD_D3
pin 11   DB12   Data Bus 4               G                pin 25 LCD_D4
pin 12   DB13   Data Bus 5               G                pin 26 LCD_D5
pin 13   DB14   Data Bus 6               G                pin 27 LCD_D6
pin 14   DB15   Data Bus 7               G                pin 28 LCD_D7
pin 15   CS   chip select      G                          pin 30  PD27             
pin 4   RS   Data/command Select    G                  pin 32 PD25               
pin 5   WR   Write Signal                 G                pin 31 PD24                 
pin 6   RD   read signal                   G                pin 29 PD26       
pin 17   RST   Reset                        G                 ?               GPIO

Cosik

Ok,

1. I think that CS is not the same as LCD_VSYNC
2. You should try to pullup RST to get allways 1, and connect back light to stable voltage (not PWM), and then you could remove those two things from list, and we can go on.
3. Which MCU interface you set?

pawnies20

http://linux-sunxi.org/Fex_Guide#.5Blcd0_para.5D
This?


lcd_if: lcd interface:
interface
lcd_interface

0 hv (sync + de)
1 8080
2 ttl
3 lvds

I Choose 8080
Your qurstion or not?

I want the most simple
RGB 8 bits is set per defult in my lcd



Cosik



Cosik

Quote from: pawnies20 on November 02, 2014, 11:01:29 PM
Anything because I can not do it

Did you have schematic of those LCD board or pinout? Because on this page I can't see pinout.


dave-at-axon

Number one. It won't work with the LCD interface on the A10 without a driver. Even though the 8080 is supported in the LCD settings, it requires a driver to work and is not autonomous. I doubt the sunxi drivers are ready for this.

That LCD has a data bus connection and is designed to connect to a 16 bit bus and uses READ and WRITE to control the internal IL9325 controller which then handles the LCD driving. The CS is chip select and not sync.

Have a look at page 407 of the A10 datasheet. It shows that you need to read and write a register to send and receive data from the LCD.

http://dl.linux-sunxi.org/A10/A10%20User%20Manual%20-%20v1.20%20%282012-04-09%2c%20DECRYPTED%29.pdf

I think you are better off using an LCD with a native RGB interface as these work without any special drivers under Android and Linux.

pawnies20

OK thanx dave-at-axon
i don't know if you are right

which cheap lcd in range 2.4"  3.2"  choosen?


Thanx


dave-at-axon

They are not cheap but the Newhaven 3.5" is very nice and is 24 bit RGB so will work once you work out the timing.

They even have a new capacitive touch option too.

http://www.newhavendisplay.com/tfts-35-tfts-c-1_591.html