云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > MIPI调试总结

MIPI调试总结

  • 62 次阅读
  • 3 次下载
  • 2025/5/1 9:32:50

以下是最近几个月在调试 MIPI DSI / CSI 的一些经验总结,因为协议有专门的文档,所以这里就记录一些常用知识点: 一、D-PHY 1、传输模式

LP(Low-Power) 模式:用于传输控制信号,最高速率 10 MHz

HS(High-Speed)模式:用于高速传输数据,速率范围 [80 Mbps, 1Gbps] per Lane

传输的最小单元为 1 个字节,采用小端的方式及 LSB first,MSB last。 2、Lane States

* LP mode 有 4 种状态: LP00、LP01(0)、LP10(1)、LP11 (Dp、Dn)

* HS mode 有 2 种状态: HS-0、HS-1

HS 发送器发送的数据 LP 接收器看到的都是 LP00, 3、Lane Levels * LP: 0 ~ 1.2V

* HS: 100 ~ 300mV,HS common level = 200mV,swing = 200 mv 4、操作模式

在数据线上有 3 种可能的操作模式:Escape mode, High-Speed (Burst) mode and Control mode,下面是从停止状态进入相应模式需要的时序:

* Escape mode 进入时序:LP11→LP10→LP00→LP01→LP00,退出时序:LP10→LP11

当进入 Escape mode 需要发送 8-bit entry command 表明请求的动作,比如要进行低速数据传输则需要发送 cmd: 0x87,进入超低功耗模式则发送 cmd: 0x78。在 DSI 中 LP 通讯只用 Data Lane 0。

* High-Speed mode 进入时序:LP11→LP01→LP00→SoT(0001_1101),退出时序:EoT→LP11,时序图如下:

* Turnaround 进入时序:LP11→LP10→LP00→LP10→LP00,退出时序:LP00→LP10→LP11

这是开启 BTA 的时序,一般用于从 slave 返回数据如 ACK: 0x84。 5、时序要求

在调试 DSI 或者 CSI 的时候, HS mode 下的几个时序非常重要:T_LPX,T_HS-SETTLE ≈ T_HS-PREPARE + T_HS-ZERO,T_HS-TRAIL,一般遵循的原则为:Host 端的 T_HS-SETTLE > Slave 端的 T_HS-SETTLE。 二、DSI 1、线路构成

在 DSI 中需要 1 根时钟线以及 1 ~ 4 根数据线。 2、两种接口的 LCD

* Command mode(对应 MPU 接口) * Video mode(对应 RGB 接口)

该模式下视频数据只能通过 HS mode 传输。 3、数据包类型

短包:4 bytes,由 3 部分组成:

* Data Identifier (DI) * 1byte: Contains the Virtual Channel[7:6] and Data Type[5:0].

* Packet Data * 2byte:Length is fixed at two bytes

* Error Correction Code (ECC) * 1byte:allows single-bit errors to be corrected and 2-bit errors to be detected.

长包:6 ~ 65541 bytes,同样由 3 部分组成: * Packet Header(4 bytes) - 包头

Data Identifier (DI) * 1byte:Contains the Virtual Channel[7:6] and Data Type[5:0].

Word Count (WC) * 2byte:defines the number of bytes in the Data Payload.

Error Correction Code (ECC) * 1byte:allows single-bit errors to be corrected and 2-bit errors to be detected.

* Data Payload(0~65535 bytes) - 有效数据 Length = WC × bytes

* Packet Footer(2 bytes):Checksum - 包尾

If the payload has length 0, then the Checksum calculation results in FFFFh If the Checksum isn’t calculated, the Checksum value is 0000h 4、从控制器到外设发送的包类型

如果希望从外设读取数据或者状态,则在处理器发送完读取命令后还需要发送 BTA 命令,非读取命令在外设接收成功后会返回 trigger message 0x84。 5、从外设到处理器数据包类型

返回的数据一般分为 4 个类型: * Tearing Effect (TE):trigger message (BAh) * Acknowledge:trigger message (84h) * Acknowledge and Error Report:short packet (Data Type is 02h) * Response to Read Request:short packet or long packet Generic Read Response、DCS Read Response(1byte, 2byte, multi byte) 读取数据返回值解析示例如下: [cpp] 1. - Acknowledge and Error report (if error occurs)

2. Byte 0 is 0x87 (escape mode low power data transmission header)

3. Byte 1 is 0x02 (Data type, 8.10 of “MIPI Alliance Specification for DSI”)

4. Byte 3,2 are error report bits[15:0] (8.9.5 of “MIPI Alliance Specification for DSI”)

5. Byte 4 is the ECC, calculated from byte 1,2,3 6.

7. - Generic Short READ response

8. Byte 0 is 0x87 (escape mode low power data transmission header)

9. Byte 1 is 0x11 or 0x12 (8.10 of “MIPI Alliance Specification for DSI”)

10. Byte 2,3 are the read data. If only 1 byte is returned, byte 3 will be 0x00

11. Byte 4 is the ECC, calculated from byte 1,2,3 12.

搜索更多关于: MIPI调试总结 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

以下是最近几个月在调试 MIPI DSI / CSI 的一些经验总结,因为协议有专门的文档,所以这里就记录一些常用知识点: 一、D-PHY 1、传输模式 LP(Low-Power) 模式:用于传输控制信号,最高速率 10 MHz HS(High-Speed)模式:用于高速传输数据,速率范围 [80 Mbps, 1Gbps] per Lane 传输的最小单元为 1 个字节,采用小端的方式及 LSB first,MSB last。 2、Lane States * LP mode 有 4 种状态: LP00、LP01(0)、LP10(1)、LP11 (Dp、Dn) * HS mode 有 2 种状态: HS-0、HS-1 HS 发送器发送的数据 LP 接收器看到的都是 LP00, 3、La

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com