diff --git a/Hardware/Peripherals/Display/DS90Ux94x.md b/Hardware/Peripherals/Display/DS90Ux94x.md new file mode 100644 index 0000000..af820fc --- /dev/null +++ b/Hardware/Peripherals/Display/DS90Ux94x.md @@ -0,0 +1,99 @@ +# DS90Ux94x + +DS90Ux94x 系列芯片为 FPD-Link III bridge 芯片,分为 Serializer 和 Deserializer。 + +DS90Ux949 和 DS90Ux947 为 Serializer,DS90Ux948 为 Deserializer。 + +## 1.Forced Mode 寄存器 + +### 1.1. DS90Ux947 + +**0x5B,1:** + +* 0: Single FPD-Link III Transmitter mode. +* 1: Dual FPD-Link III Transmitter mode. + +**0x5B,0:** + +* 1 : Forced Single or Dual FPD-Link III mode. +* 0 : Auto-Detect FPD-Link III mode. + +### 1.2. DS90Ux948 + +**0x34,4-3:** + +* 00: Auto-detect based on received data +* 01: Forced Mode: Dual link +* 10: Forced Mode: Single link, primary input +* 11: Forced Mode: Single link, secondary input + +## 2.输出彩条 + +通过 0x66 和 0x67 访问间接控制寄存器,0x66 为间接地址,0x67 映射数据。 + +### 2.1.DS90Ux949 的设置 + +1920x720 分辨率。 + +```bash +# Disable Pattern Generator +i2cset -f -y 3 0x0c 0x64 0x30 +# 设置时钟 +i2cset -f -y 3 0x0c 0x66 0x03 +i2cset -f -y 3 0x0c 0x67 0x02 + +# 设置 Total Horizontal/Vertical Width +i2cset -f -y 3 0x0c 0x66 0x04 +i2cset -f -y 3 0x0c 0x67 0x20 +i2cset -f -y 3 0x0c 0x66 0x05 +i2cset -f -y 3 0x0c 0x67 0x28 +i2cset -f -y 3 0x0c 0x66 0x06 +i2cset -f -y 3 0x0c 0x67 0xE3 + +# 设置 Active Horizontal/Vertical Width +i2cset -f -y 3 0x0c 0x66 0x08 +i2cset -f -y 3 0x0c 0x67 0x27 +i2cset -f -y 3 0x0c 0x66 0x07 +i2cset -f -y 3 0x0c 0x67 0x80 +i2cset -f -y 3 0x0c 0x66 0x09 +i2cset -f -y 3 0x0c 0x67 0xD0 + +# 内部时钟使能,Enable Auto-Scroll +i2cset -f -y 3 0x0c 0x65 0x05 +# Enable Pattern Generator +i2cset -f -y 3 0x0c 0x64 0x37 +``` + +### 2.2.DS90Ux947 的设置 + +1280x720 分辨率。 + +```bash +# Disable Pattern Generator +i2cset -f -y 5 0x0c 0x64 0x30 + +# 设置时钟 +i2cset -f -y 5 0x0c 0x66 0x03 +i2cset -f -y 5 0x0c 0x67 0x02 + +# 设置 Total Horizontal/Vertical Width +i2cset -f -y 5 0x0c 0x66 0x04 +i2cset -f -y 5 0x0c 0x67 0x3C +i2cset -f -y 5 0x0c 0x66 0x05 +i2cset -f -y 5 0x0c 0x67 0x35 +i2cset -f -y 5 0x0c 0x66 0x06 +i2cset -f -y 5 0x0c 0x67 0x18 + +# 设置 Active Horizontal/Vertical Width +i2cset -f -y 5 0x0c 0x66 0x07 +i2cset -f -y 5 0x0c 0x67 0x00 +i2cset -f -y 5 0x0c 0x66 0x08 +i2cset -f -y 5 0x0c 0x67 0x25 +i2cset -f -y 5 0x0c 0x66 0x09 +i2cset -f -y 5 0x0c 0x67 0xD0 + +# 内部时钟使能,Enable Auto-Scroll +i2cset -f -y 5 0x0c 0x65 0x05 +# Enable Pattern Generator +i2cset -f -y 5 0x0c 0x64 0x37 +```