补充内容:
补充对 Sync Offset 参数的解释; 补充 DPI 的计算方法. Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
6b42c86be2
commit
140edd4e04
|
@ -41,34 +41,38 @@ pixclock = 1e12/dotclock
|
||||||
|
|
||||||
## 2.术语解析
|
## 2.术语解析
|
||||||
|
|
||||||
* left margin:行切换,从同步到绘图之间的延迟,表示从水平同步信号开始到一行的有效数据开始之间的 VCLK 的个数,等同于 HBP(horizontal back porch);
|
* Left Margin:行切换,从同步到绘图之间的延迟,表示从水平同步信号开始到一行的有效数据开始之间的 VCLK 的个数,等同于 HBP(Horizontal Back Porch);
|
||||||
* right margin:行切换,从绘图到同步之间的延迟,表示一行的有效数据结束到下一个水平同步信号开始之间的 VCLK 的个数,等同于 HFP(horizontal front porth);
|
* Right Margin:行切换,从绘图到同步之间的延迟,表示一行的有效数据结束到下一个水平同步信号开始之间的 VCLK 的个数,等同于 HFP(Horizontal Front Porch, Horizontal Sync Offset);
|
||||||
* upper margin:帧切换,从同步到绘图之间的延迟,表示在一帧图像开始时,垂直同步信号以后的无效的行数,等同于 VBP(vertical back porch);
|
* Upper Margin:帧切换,从同步到绘图之间的延迟,表示在一帧图像开始时,垂直同步信号以后的无效的行数,等同于 VBP(Vertical Back Porch);
|
||||||
* lower margin:帧切换,从绘图到同步之间的延迟,表示在一帧图像结束后,垂直同步信号以前的无效的行数,等同于 VFB(vertical front porch);
|
* Lower Margin:帧切换,从绘图到同步之间的延迟,表示在一帧图像结束后,垂直同步信号以前的无效的行数,等同于 VFB(Vertical Front Porch, Vertical Sync Offset);
|
||||||
* hsync len:水平同步的长度,表示水平同步信号的宽度,用 VCLK 计算,等同于 HSPW(horizontal sync pulse width);
|
* HSYNC Len:水平同步的长度,表示水平同步信号的宽度,用 VCLK 计算,等同于 HSPW(Horizontal Sync Pulse Width, Horizontal Sync Pulse, XPULSE);
|
||||||
* vsync len:垂直同步的长度,表示垂直同步脉冲的宽度,用行数计算,等同于 VSPW(vertical sync pulse width)。
|
* VSYNC Len:垂直同步的长度,表示垂直同步脉冲的宽度,用行数计算,等同于 VSPW(Vertical Sync Pulse Width, Vertical Sync Pulse, YPULSE);
|
||||||
|
* HSYNC POL:水平脉冲极性;
|
||||||
|
* VSYNC POL:垂直脉冲极性。
|
||||||
|
|
||||||
可以用以下两张图来表示:
|
可以用以下三张图来表示:
|
||||||
|
|
||||||
![TFT 屏工作时序](./img/Display_Parameters/001.png)
|
![TFT 屏工作时序](./img/Display_Parameters/001.png)
|
||||||
|
|
||||||
|
![Active Front Sync Back](./img/Display_Parameters/002.png)
|
||||||
|
|
||||||
```blk
|
```blk
|
||||||
+----------+---------------------------------------------+----------+-------+
|
+----------+---------------------------------------------+----------+-------+
|
||||||
| | ↑ | | |
|
| | ↑ | | |
|
||||||
| | |upper_margin | | |
|
| | |Upper Margin | | |
|
||||||
| | ↓ | | |
|
| | ↓ | | |
|
||||||
+----------###############################################----------+-------+
|
+----------###############################################----------+-------+
|
||||||
| # ↑ # | |
|
| # ↑ # | |
|
||||||
| # | # | |
|
| # | # | |
|
||||||
| # | # | |
|
| # | # | |
|
||||||
| # | # | |
|
| # | # | |
|
||||||
| left # | # right | hsync |
|
| Left # | # Right | HSYNC |
|
||||||
| margin # | xres # margin | len |
|
| Margin # | X-Res # Margin | Len |
|
||||||
|<-------->#<---------------+--------------------------->#<-------->|<----->|
|
|<-------->#<---------------+--------------------------->#<-------->|<----->|
|
||||||
| # | # | |
|
| # | # | |
|
||||||
| # | # | |
|
| # | # | |
|
||||||
| # | # | |
|
| # | # | |
|
||||||
| # |yres # | |
|
| # |Y-Res # | |
|
||||||
| # | # | |
|
| # | # | |
|
||||||
| # | # | |
|
| # | # | |
|
||||||
| # | # | |
|
| # | # | |
|
||||||
|
@ -80,11 +84,11 @@ pixclock = 1e12/dotclock
|
||||||
| # ↓ # | |
|
| # ↓ # | |
|
||||||
+----------###############################################----------+-------+
|
+----------###############################################----------+-------+
|
||||||
| | ↑ | | |
|
| | ↑ | | |
|
||||||
| | |lower_margin | | |
|
| | |Lower Margin | | |
|
||||||
| | ↓ | | |
|
| | ↓ | | |
|
||||||
+----------+---------------------------------------------+----------+-------+
|
+----------+---------------------------------------------+----------+-------+
|
||||||
| | ↑ | | |
|
| | ↑ | | |
|
||||||
| | |vsync_len | | |
|
| | |VSYNC Len | | |
|
||||||
| | ↓ | | |
|
| | ↓ | | |
|
||||||
+----------+---------------------------------------------+----------+-------+
|
+----------+---------------------------------------------+----------+-------+
|
||||||
```
|
```
|
||||||
|
@ -107,3 +111,15 @@ LCD提供的外部接口信号:
|
||||||
* LCD_LPCOE:SEC TFT OE 信号;
|
* LCD_LPCOE:SEC TFT OE 信号;
|
||||||
* LCD_LPCREV:SEC TFT REV 信号;
|
* LCD_LPCREV:SEC TFT REV 信号;
|
||||||
* LCD_LPCREVB:SEC TFT REVB 信号。
|
* LCD_LPCREVB:SEC TFT REVB 信号。
|
||||||
|
|
||||||
|
## 3.DPI 的计算
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sqrt(水平分分辨率^2+垂直分辨率^2)/屏幕尺寸
|
||||||
|
```
|
||||||
|
|
||||||
|
例如,5 英寸,分辨率为 1920x1080 的屏幕,其 DPI 为:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
DPI=sqrt(1920^2+1080^2)/5
|
||||||
|
```
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
Loading…
Reference in New Issue