目前日期文章:201507 (2)

瀏覽方式: 標題列表 簡短摘要

MSM8909 ili9806e display panel IC- Backlight control

Platform: VAD8909
Android version : 5.1.1
Code base:

Ili9806 mipi Backlight 無法點亮lesson learn

在bring up ili9806e LCD panel時,發生背光一直無法點亮問題
供應商給的參數都不包含背光的mipi command code,因為供應商的治具是用外部另外的IC去抖PWM給LED driver IC的
所以供應商給的參數沒有包含 mipi backlight control code.

研讀 ili9806e v.092 version data sheet後,添加一下 init code 就可以將LCD 背光開啟
===
39 01 00 00 0a 00 06 FF FF 98 06 04 05   // page 5
39 01 00 00 01 00 02 00 00
39 01 00 00 01 00 02 07 b4
39 01 00 00 c8 00 06 FF FF 98 06 04 00   //page 0             
39 01 00 00 01 00 02 51 78   //add for display brightness on page 0
39 01 00 00 01 00 02 53 2C   // CTRL display value
39 01 00 00 01 00 02 55 00 //91  // CABC value
=====            

主要背光設定在兩個部分,分別落在 page 5, page 0
逐行解釋如下:
39 01 00 00 0a 00 06 FF FF 98 06 04 05
使用此指令將 page 切換到 page 5

39 01 00 00 01 00 02 00 00
在 page 5的 0x00 register 設定 PWM_DIV,因為我的平台 LCD driver IC只接受 40kHz-100kHz的PWM 訊號
所以在這邊設定0x00,也就是 70.5kHz

39 01 00 00 01 00 02 07 b4
在 page 5的 0x07 register 設定 0xb4=0b1011 0100 ,設邊要注意一下你的BL設定值是多少,我是將BL設定為1 (page 0 53h)
然後設定 PWMPOL為0、LEDONPOL設為 0、LEDONR設為 1 ,LABC SRE ENABLE設定為0,LABS_SRE_THR設定為 0b1011

39 01 00 00 c8 00 06 FF FF 98 06 04 00   //page 0  
使用此指令將 page 切換到 page 0


39 01 00 00 01 00 02 51 78   //add for display brightness on page 0
在 page 0的 0x51 register 設定 Brightness value,這邊設定為 0x78

39 01 00 00 01 00 02 53 2C   // CTRL display value
在 page 0的 0x53 register 設定 CTRL display value,將BCTRL設為 1、DD設為1、BL設為1


39 01 00 00 01 00 02 55 00 //91  // CABC value
在 page 0的 0x55 register 設定 CABC value,設為 0x00,主要是因為在 page 0 0x52h有提到
>>When bit BCTRL of “Write CTRL Display (53h)” command is ‘1’ and D1/D0 bit of “Write Content Adaptive Brightness Control(55h)” command are ‘0’, DBV[7:0] output is the brightness value specified with “ Write Display Brightness (51h)” command




以上資料,希望能對大家有幫助

文章標籤

CuteParrot 發表在 痞客邦 PIXNET 留言(0) 人氣()

Qualcomm Cromatix light preview command - mm-qcamera-app

Use command line APP to start preview as below steps:
##> adb root
##> adb remount
##> adb shell stop (Device's panel is closed)--->似乎可以不用
##> adb shell
#> cd /system/bin (要改777才需要這一?)
#> chmod 777 mm-qcamera-app
#> mm-qcamera-app
 
4.1 Select 0 for Menu based application
4.2 Select A for Primary Camera Sensor
4.3 Select A to Start preview
 
5. Open another adb window, then
##> adb forward tcp:55555 tcp:55555
##> adb forward tcp:55556 tcp:55556
##> adb shell chmod 777 /data (for snapshot mode capture,沒成功過)

C:\WINDOWS\system32>adb shell
root@vad8974:/ # mm-qcamera-app
mm-qcamera-app
Please Select Execution Mode:
0: Menu Based 1: Regression
0
0

Starting Menu based!!

===========================================
      Camera Sensor to be used:
===========================================

A.  Primary Camera

Please enter your choice for sensor: a
a
output_to_event=0

===========================================
      Camera is in preview/video mode now
===========================================

A.  Start preview
B.  Stop preview/video
C.  Set white balance mode
D.  Set Tintless Enable
E.  Set Tintless Disable
F.  Set exposure metering mode
G.  Get control value menu
H.  Toggle auto frame rate. Default fixed frame rate
I.  ISO changes.
J.  Brightness changes.
K.  Contrast changes.
L.  EV changes.
M.  Saturation changes.
N.  Set Digital Zoom.
....
==
 

C:\WINDOWS\system32>adb shell
root@vad8974:/ # mm-qcamera-app
mm-qcamera-app
Please Select Execution Mode:
0: Menu Based 1: Regression
0
0

Starting Menu based!!

===========================================
      Camera Sensor to be used:
===========================================

A.  Primary Camera

Please enter your choice for sensor: a
a
output_to_event=0

===========================================
      Camera is in preview/video mode now
===========================================

A.  Start preview
B.  Stop preview/video
C.  Set white balance mode
D.  Set Tintless Enable
E.  Set Tintless Disable
F.  Set exposure metering mode
G.  Get control value menu
H.  Toggle auto frame rate. Default fixed frame rate
I.  ISO changes.
J.  Brightness changes.
K.  Contrast changes.
L.  EV changes.
M.  Saturation changes.
N.  Set Digital Zoom.
....
==
 

文章標籤

CuteParrot 發表在 痞客邦 PIXNET 留言(0) 人氣()