15
Synchronous Display Synchronous Display Controller Controller Sneeker Yeh

Introduction to synchronous display controller (chinese)

Embed Size (px)

Citation preview

Page 1: Introduction to synchronous display controller (chinese)

Synchronous Display Synchronous Display ControllerController

Sneeker Yeh

Page 2: Introduction to synchronous display controller (chinese)

簡報綱要簡報綱要• RGB interface of iMX31

• Case study

Page 3: Introduction to synchronous display controller (chinese)

RGB interface of iMX31• PCLK latches data into the panel on its positive/negative edge.PCLK latches data into the panel on its positive/negative edge.

• HSYNC causes the panel to start a new line.HSYNC causes the panel to start a new line.

• VSYNC causes the panel to start a new frame.VSYNC causes the panel to start a new frame.

• OE functions as an output enable signal. OE functions as an output enable signal.

Page 4: Introduction to synchronous display controller (chinese)

• 我們會設定我們會設定 i.MX31 display controller i.MX31 display controller 丟出類似下列的訊號丟出類似下列的訊號 ::

• 其中其中 HSYNCHSYNC之後是劃一條線的時間,之後是劃一條線的時間, VSYNCVSYNC之後是劃一個之後是劃一個 frameframe的時間。的時間。

• 其中其中 320(320(時間單位是時間單位是 Pixel clock)Pixel clock)或或 240(240(時間單位是時間單位是 per line)per line)代表有效的代表有效的 pixelpixel資料。資料。

Page 5: Introduction to synchronous display controller (chinese)

• 如果以上面的圖來講的話,如果以上面的圖來講的話,

• HBP=Horizontal Back Porch, HFP= Horizontal Front Porch, HS= Horizontal SYNC,HBP=Horizontal Back Porch, HFP= Horizontal Front Porch, HS= Horizontal SYNC,

• 其實這些都只是同步的訊號,真正有用的資料是在其實這些都只是同步的訊號,真正有用的資料是在 HDSIPHDSIP這段時間裡的訊號。這段時間裡的訊號。 Vertical Vertical 的部的部分則是以此類推。分則是以此類推。

Page 6: Introduction to synchronous display controller (chinese)

RGB interface of iMX31• 時序圖時序圖 ::

Page 7: Introduction to synchronous display controller (chinese)

• How to configure iMX31 Synchronous Display Controller:How to configure iMX31 Synchronous Display Controller:

• 請廠商提供請廠商提供 Vsync width, Hsync width, VBP, VFP, HBP, HFP, Vsync width, Hsync width, VBP, VFP, HBP, HFP, 以及以及 panelpanel可以支援的更新頻率可以支援的更新頻率 (frames/sec)(frames/sec)

• 計算計算 pixel clock =(Hsync width+HBP+HFP)*(Vsync width+VBP+VFP)*pixel clock =(Hsync width+HBP+HFP)*(Vsync width+VBP+VFP)* 更更新頻率新頻率 ..

Page 8: Introduction to synchronous display controller (chinese)

Case Study 1:• Pixel clock Pixel clock 的調整的調整 ::

• 調整出適當的波形調整出適當的波形 , , 例如例如 50%50%的的 highhigh與與 50%50%的的 low durationlow duration 。 避免 。 避免 hx8852hx8852當機當機 ..

• 根據廠商的提供的根據廠商的提供的 timingtiming來適當調整來適當調整 rising edgerising edge與與 falling edgefalling edge的時間點的時間點 , , 下圖為下圖為 88528852的的輸入時序輸入時序 ::

Min:20ns

Page 9: Introduction to synchronous display controller (chinese)

Case Study 1:• SDCSDC輸出的輸出的 pixel clockpixel clock有問題時,可能會有下列現象。有問題時,可能會有下列現象。

• ICONICON邊緣會有閃爍的現象。邊緣會有閃爍的現象。

• 字體會有殘影字體會有殘影 (shift)(shift)的現象。的現象。

Page 10: Introduction to synchronous display controller (chinese)

Case Study 2:• 星星顏色會暈開星星顏色會暈開

• Solution:Solution:更換不同光機更換不同光機

Page 11: Introduction to synchronous display controller (chinese)

Case Study 3:• 圖檔顏色會水平拖曳圖檔顏色會水平拖曳 (crosstalk)(crosstalk)

• Solution:Solution:更換更換 hx7067 panelhx7067 panel

Page 12: Introduction to synchronous display controller (chinese)

Case Study 4:• 圖檔邊緣會出現白邊圖檔邊緣會出現白邊

• RGBWRGBW架構所造成。架構所造成。

Page 13: Introduction to synchronous display controller (chinese)

Case Study 4:• RGBWRGBW架構的架構的 HX7067 panelHX7067 panel

Page 14: Introduction to synchronous display controller (chinese)

Case Study 4:• RGBWRGBW的演算法的演算法 ::

• W = min. ( R , G , B ) W = min. ( R , G , B ) R’ = R – k W ; R’ = R – k W ; G’ = G – k W ; G’ = G – k W ; B’ = B – k W ; B’ = B – k W ;

• Note: k=K(8852)/255Note: k=K(8852)/255

• 因為因為 HX7067HX7067為為 RGBW panel, RGBW panel, 所以亮度會提升但色飽和度會犧牲掉所以亮度會提升但色飽和度會犧牲掉 , , 以下的做以下的做法可以提升色飽和度法可以提升色飽和度 , , 但亮度會下降但亮度會下降

• 調整調整 HX8852 RGBW K factor, K=0~255, KHX8852 RGBW K factor, K=0~255, K 越小亮度越高越小亮度越高

Page 15: Introduction to synchronous display controller (chinese)

Case Study 4:• 某些顏色的組合會出現白邊的狀況某些顏色的組合會出現白邊的狀況