Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    t113-s3 SMHC模块的校准延时链是个什么技术啊?怎么使用呢?

    T Series
    2
    4
    176
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      ZM960406 LV 3 last edited by

      移植好了t113s3 freertos,最近想逐步完善外设驱动,目前正在开发SMHC的驱动,读芯片手册时发现了下面这个内容84b634b6-4840-45a0-bff2-cb21a2557091-image.png ,看描述这个延时链技术似乎是用来校准选通信号和数据信号之间的延时,以及时钟信号和数据信号之间的延时的,根据编程指导,我写了一段代码

      	//校准延时链
      	info("SMHC: start calibrate delay chain!!\r\n");
      	init_environment_calibrate_delay();
      	calibrate_data_sample_delay(&sdhci0);
      	calibrate_data_strobe_delay(&sdhci0);
          deinit_environment_calibrate_delay();
      

      29c87d08-f59d-49a9-9e5e-5ec32a8d0f94-image.png
      获取到了两种延时链的delay cells num,分别都是30,SMHC clk = 200MHZ,那得到这些数据之后,如何使用它们呢,非常好奇,有大佬能解释下吗?

      A 1 Reply Last reply Reply Quote Share 0
      • A
        awwwwa LV 8 @ZM960406 last edited by

        @zm960406 这个是用于优化采样的,具体用法可以参考bsp驱动

        Z 1 Reply Last reply Reply Quote Share 1
        • Z
          ZM960406 LV 3 @awwwwa last edited by

          @awwwwa 您说的bsp驱动是指全志官方提供的裸机bsp驱动还是说从uboot里找啊?

          A 1 Reply Last reply Reply Quote Share 0
          • A
            awwwwa LV 8 @ZM960406 last edited by

            @zm960406 bsp驱动或者uboot都有实现

            1 Reply Last reply Reply Quote Share 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策