This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TDES954:与具有 STP 模式的 TSER953 连接、用于 ar1044CS 摄像头模块。

Guru**** 2576215 points
Other Parts Discussed in Thread: TDES954, TSER953, ALP

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1570828/tdes954-connecting-with-tser953-with-stp-mode-for-ar1044cs-camera-module

Thread 中讨论的其他器件:TSER953、TDES954、 ALP

工具/软件:

尝试将 TDES954 连接到具有 STP 模式的 TSER953 以连接 AR1044CS 摄像头模块。

以下是用于初始化 DE 串行器的寄存器:

        add_write(&core, 0x01, 0x01, 0);
        add_delay(&core, delay_reset_assert_ms);
        add_write(&core, 0x1F, 0x03, 0);
        add_write(&core, 0x33, 0x23, 0);
        add_write(&core, 0x4c, 0x03, 0);
        add_write(&core, 0x6D, 0x78, 0);
        add_write(&core, 0x0c, 0x47, 0);
        add_write(&core, 0x58, 0x5e, 0);
        add_write(&core, 0x5c, 0x12, 0);
        add_write(&core, 0x5d, 0x20, 0);
        add_write(&core, 0x65, 0x20, 0);
        add_write(&core, 0x20, 0x10, 0);

然后我们 写了

0x02 0x52

以将其切换到 CSI 2 通道。

我们尝试通过设置寄存器来启用 BIST 模式  

0xB3 到 0x81 、我们是否需要更改任何其他内容才能通过 BIST 运行、如果我们可以看到 0x57 中的错误、因为对于我们来说它显示为 0x00。

具有 BIST 的串行器通道:

具有 BIST 的解串器通道:

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Anthony、

    首先、连接 954 和 953 器件并通电后、您是否能够实现稳定锁定? 锁定应在上电后自动发生。 如果未锁定、则串行器或解串器上的 MODE 设置可能存在问题。

    您可以通过在 TDES954 设备上执行以下步骤来检查锁是否稳定:

    1) 设置 954 寄存器 0x4C = 0x01 #这选择 RX 端口 0 作为接收器端口。 如果您的串行器改为连接到 RX 端口 1、则将此项设置为 0x12。

    2) 读取 954 寄存器 0x4D #确保该寄存器读为 0x03。 由于这些寄存器在读取时被清除、因此您可以多次读取该寄存器以获得准确的读数。

    ...

    如果您想检查寄存器、您还可以提供 954 和 953 的寄存器转储。

    ...

    对于 BIST 脚本、我们提供了一个在 954 和 953 器件之间运行 BIST 的示例脚本。 如果您安装 ALP (https://www.ti.com/tool/ALP) 、计算机上将有一个文件夹、其中包含预定义的示例脚本。 请参阅下面的示例目录路径:

    C:\Program Files (x86)\Analog Texas Instruments LaunchPAD\Analog LaunchPAD v1.57.0010\PreDefScripts\DS90UB954\ub954_MARGIN_ANalysis_script

    此致、

    Justin Phan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    它似乎锁定了、我们可以从解串器的链接看到串行器 i2c id 和摄像头 i2c id。

    下面是转储,当尝试让 AR0144CS 摄像头通过解析器和解析器工作。

    Deser i2c 转储:

    SER i2cDump:

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Anthony、

    好的、您现在似乎已经锁好了。 如果您已建立锁定并且能够向远程摄像头模块发送 I2C 命令、则应该能够启动系统。 您是否能够向成像仪发送 I2C 命令并确认视频已发送?

    ...

    如果没有视频、则可以使用 BIST 和 MAP 来检查链路的质量。

    进入 BIST 模式后、需要手动将错误注入链路。 一旦退出 BIST 模式、BIST 错误计数器将更新。 如果错误数多于手动注入的错误数、则您的链接可能存在问题。

    [引述 userid=“478682" url="“ url="~“~/support/interface-group/interface/f/interface-forum/1570828/tdes954-connecting-with-tser953-with-stp-mode-for-ar1044cs-camera-module/6051256

    对于 BIST 脚本、我们提供了一个在 954 和 953 器件之间运行 BIST 的示例脚本。 如果您安装 ALP (https://www.ti.com/tool/ALP) 、计算机上将有一个文件夹、其中包含预定义的示例脚本。 请参阅下面的示例目录路径:

    C:\Program Files (x86)\Analog Texas Instruments LaunchPAD\Analog LaunchPAD v1.57.0010\PreDefScripts\DS90UB954\ub954_MARGIN_ANalysis_script

    [/报价]

    您是否能够找到 TI 为运行 BIST 提供的示例脚本?

    您也可以运行地图工具来检查链接的边距。

    C:\Program Files (x86)\MSP430\Analog Texas Instruments v1.57.0010\PreDefScripts\DS90UB954\953_954_BIST.py

    此致、

    Justin Phan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:
    我们运行 python 脚本来执行 BIST 模式、这是日志。

    Devices Reset
    954 Device ID (0x00): 0x60
    953 Device ID (0x00): 0x30
    ------------------------------------------------------------------
    Reciever Lock Status (0x04): 0xdb
    Should read 0xDF
    ------------------------------------------------------------------
    Read BCC Error Status (0x79): 0x0
    Consult Register 0x79 on the SER for more information
    ------------------------------------------------------------------
    Pre-Error Link Status of 953 (0x52): 0x45
    Should read 0x45 = RX Lock Detect, HS PLL Lock, Link Detect
    ------------------------------------------------------------------
    BIST CRC Error count (0x54) on 953 before forced error. 0x0
    ------------------------------------------------------------------
    Read BIST CTL register (0xB3) Before BIST ENABlED 0x0
    Should read 0x00 or 0x08
    
    Read BIST CTL (0xB3) register After BIST ENABLED 0x1
    Should read 0x01
    ------------------------------------------------------------------
    Read BIST Lock Status Change of 954 RIGHT AFTER BIST enabled (0x4D): 0x13
    Read to clear BIST enable Lock Status Change.
    Read Post-BIST Lock Status Change of 954 RIGHT BEFORE BIST disabled (0x4D): 0x3
    Should read 0x03, If lock status changed during BIST, will read 0x13
    ------------------------------------------------------------------
    Post-Error Link Status of 953 (0x52): 0x47
    Should read 0x4D = RX Lock Detect, HS PLL Lock, Link Detect, and BIST CRC Error
    Reciever Lock Status (0x04): 0xdb
    Should read 0xDF
    ------------------------------------------------------------------
    BIST CRC Error count (0x54) on 953. 0x0
    Parity Error count MSB (0x56) on 954. 0x0
    Parity Error count LSB (0x55) on 954. 0x0
    ------------------------------------------------------------------

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    错误注入似乎不会导致错误。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Anthony、

    在 953_954_BIST.py 脚本中、您能否修改代码以强制连续错误? 请参阅以下示例:

    该寄存器应该会填充 BIST 错误计数器。

    您是否也要运行地图工具、只是为了确保链接的质量正常?

    此致、

    Justin Phan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、我启用了连续错误输出 10 秒、这是输出:

    Devices Reset
    954 Device ID (0x00): 0x60
    953 Device ID (0x00): 0x30
    ------------------------------------------------------------------
    Reciever Lock Status (0x04): 0xdb
    Should read 0xDF
    ------------------------------------------------------------------
    Read BCC Error Status (0x79): 0x0
    Consult Register 0x79 on the SER for more information
    ------------------------------------------------------------------
    Pre-Error Link Status of 953 (0x52): 0x45
    Should read 0x45 = RX Lock Detect, HS PLL Lock, Link Detect
    ------------------------------------------------------------------
    BIST CRC Error count (0x54) on 953 before forced error. 0x0
    ------------------------------------------------------------------
    Read BIST CTL register (0xB3) Before BIST ENABlED 0x0
    Should read 0x00 or 0x08
     
    Read BIST CTL (0xB3) register After BIST ENABLED 0x1
    Should read 0x01
    ------------------------------------------------------------------
    Read BIST Lock Status Change of 954 RIGHT AFTER BIST enabled (0x4D): 0x13
    Read to clear BIST enable Lock Status Change.
    Read Post-BIST Lock Status Change of 954 RIGHT BEFORE BIST disabled (0x4D): 0x10
    Should read 0x03, If lock status changed during BIST, will read 0x13
    ------------------------------------------------------------------
    Post-Error Link Status of 953 (0x52): 0x45
    Should read 0x4D = RX Lock Detect, HS PLL Lock, Link Detect, and BIST CRC Error
    Reciever Lock Status (0x04): 0xdb
    Should read 0xDF
    ------------------------------------------------------------------
    BIST CRC Error count (0x54) on 953. 0x0
    Parity Error count MSB (0x56) on 954. 0x0
    Parity Error count LSB (0x55) on 954. 0x0
    ------------------------------------------------------------------

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Anthony、

    此处是我在 954-953 EVM 上运行的 BIST 脚本、以供参考。

    e2e.ti.com/.../7418.953_5F00_954_5F00_BIST.py

    这里是对数结果。

    *** Running 953_954_BIST.py ***
    
    
    
    Devices Reset
    ('954 Device ID (0x00):', '0x60')
    ('953 Device ID (0x00):', '0x30')
    ------------------------------------------------------------------
    ('Reciever Lock Status (0x04):', '0xdf')
    Should read 0xDF
    ------------------------------------------------------------------
    ('Read BCC Error Status (0x79):', '0x0')
    Consult Register 0x79 on the SER for more information
    ------------------------------------------------------------------
    ('Pre-Error Link Status of 953 (0x52):', '0x45')
    Should read 0x45 = RX Lock Detect, HS PLL Lock, Link Detect
    ------------------------------------------------------------------
    ('BIST CRC Error count (0x54) on 953 before forced error.', '0x0')
    ------------------------------------------------------------------
    ('Read BIST CTL register (0xB3) Before BIST ENABlED', '0x8')
    Should read 0x00 or 0x08
    
    ('Read BIST CTL (0xB3) register After BIST ENABLED', '0x1')
    Should read 0x01
    ------------------------------------------------------------------
    ('Read BIST Lock Status Change of 954 RIGHT AFTER BIST enabled (0x4D):', '0x13')
    Read to clear BIST enable Lock Status Change.
    ('Read Post-BIST Lock Status Change of 954 RIGHT BEFORE BIST disabled (0x4D):', '0x13')
    Should read 0x03, If lock status changed during BIST, will read 0x13
    ------------------------------------------------------------------
    ('Post-Error Link Status of 953 (0x52):', '0x4d')
    Should read 0x4D = RX Lock Detect, HS PLL Lock, Link Detect, and BIST CRC Error
    ('Reciever Lock Status (0x04):', '0xdf')
    Should read 0xDF
    ------------------------------------------------------------------
    ('BIST CRC Error count (0x54) on 953.', '0xff')
    ('Parity Error count MSB (0x56) on 954.', '0x0')
    ('Parity Error count LSB (0x55) on 954.', '0x0')
    ------------------------------------------------------------------
    
    

    我能够看到错误在 BIST CRC 错误计数中累积。

    ...

    需要注意的一点是、我在您的 BIST 结果中看到锁定丢失。

    ...

    在您的最后一个寄存器转储中、当锁定很高时、您可能会读取、但后来锁丢失。 您能否确认锁是否不稳定?  

    1) 设置 954 寄存器 0x4C = 0x01 #这选择 RX 端口 0 作为接收器端口。 如果您的串行器改为连接到 RX 端口 1、则将此项设置为 0x12。

    2) 读取 954 寄存器 0x4D #确保该寄存器读为 0x03。

    3) 多次重复步骤 2 中的寄存器读取以获得准确的读数、因为这些寄存器在读取时被清除。 可能在每次读取之间等待 1 秒。

    如果 LOCK_STS_CHG 位被重复设置和清零、则表示锁定不稳定。

    ...

    如果锁定稳定、您是否能够运行地图工具来评估链接上的边距?

    此致、

    Justin Phan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    e2e.ti.com/.../ub954sfeq_5F00_test2.csv
    大家好、我们运行了 MAP 程序、  结果就是这些。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    根据这些结果、正向通道看起来正常。 但 MAP 主要监测 FC 信号质量。 接下来、您可以检查反向通道信号质量、因为 BIST 通过 BC 向串行器发送信号以指示其进入 BIST 模式。

    我看到 953 寄存器 0x52 = 0x47、这意味着设置了以下位。

    您是否可以尝试设置 CRC_ERR_CLR 寄存器位 (953 寄存器 0x49[3]= 1)、并查看该位是否清除了 953 寄存器 0x52[1]? 您可能需要多次执行此测试、在每次清除前等待几秒钟、以确保在 BC 上捕获任何错误。

    此外、您是否已将串行器编程为以前打开 PATGEN、并且您是否能够在解串器侧接收到有效的视频数据?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!在使用 ALP 的初始化脚本 (954_953_sensor_setup.py) 为我们在 BIST 期间能够锁定的传感器供电后。

    Devices Reset
    954 Device ID (0x00): 0x60
    953 Device ID (0x00): 0x30
    ------------------------------------------------------------------
    Reciever Lock Status (0x04): 0xdf
    Should read 0xDF
    ------------------------------------------------------------------
    Read BCC Error Status (0x79): 0x0
    Consult Register 0x79 on the SER for more information
    ------------------------------------------------------------------
    Pre-Error Link Status of 953 (0x52): 0x45
    Should read 0x45 = RX Lock Detect, HS PLL Lock, Link Detect
    ------------------------------------------------------------------
    BIST CRC Error count (0x54) on 953 before forced error. 0x0
    ------------------------------------------------------------------
    Read BIST CTL register (0xB3) Before BIST ENABlED 0x0
    Should read 0x00 or 0x08
     
    Read BIST CTL (0xB3) register After BIST ENABLED 0x1
    Should read 0x01
    ------------------------------------------------------------------
    Read BIST Lock Status Change of 954 RIGHT AFTER BIST enabled (0x4D): 0x13
    Read to clear BIST enable Lock Status Change.
    Read Post-BIST Lock Status Change of 954 RIGHT BEFORE BIST disabled (0x4D): 0x3
    Should read 0x03, If lock status changed during BIST, will read 0x13
    ------------------------------------------------------------------
    Post-Error Link Status of 953 (0x52): 0x4d
    Should read 0x4D = RX Lock Detect, HS PLL Lock, Link Detect, and BIST CRC Error
    Reciever Lock Status (0x04): 0xdf
    Should read 0xDF
    ------------------------------------------------------------------
    BIST CRC Error count (0x54) on 953. 0x2
    Parity Error count MSB (0x56) on 954. 0x0
    Parity Error count LSB (0x55) on 954. 0x0
    ------------------------------------------------------------------


    您知道为什么它锁定了 ALP 脚本、而不是之前使用的初始化序列吗?


  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    如果 SER 和 DES 都具有相同的模式设置、则 954/953 器件将在上电时锁定。 上电后无需运行任何脚本。

     954_953_sensor_setup.py 脚本仅运行简单的寄存器写入、写入已在模式设置中设置的寄存器。 下面突出显示了相关的寄存器写入。

    在代码中、您能否尝试注释掉这些行以查看是否获得相同的结果?

            add_write(&core, 0x01, 0x01, 0);
            add_delay(&core, delay_reset_assert_ms);
            add_write(&core, 0x1F, 0x03, 0);
            add_write(&core, 0x33, 0x23, 0);
            add_write(&core, 0x4c, 0x03, 0);
            add_write(&core, 0x6D, 0x78, 0); # Try to comment out
            add_write(&core, 0x0c, 0x47, 0);
            add_write(&core, 0x58, 0x5e, 0);
            add_write(&core, 0x5c, 0x12, 0);
            add_write(&core, 0x5d, 0x20, 0);
            add_write(&core, 0x65, 0x20, 0);
            add_write(&core, 0x20, 0x10, 0);
            
            0x02 0x52 # Try to comment out