Navigation

    全志在线开发者论坛

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

    D1 uart2 PD1&PD2引脚电平有脉冲,求解?

    MR Series
    3
    6
    2634
    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.
    • D
      dianjixz LV 4 last edited by

      在使用 D1 的 uart2 功能时,在 PD1, PD2 引脚上有异常的脉冲信号.
      系统使用情况:
      已经在设备树中关闭了所有和 disp 有关的设备
      将 uart2 的引脚映射到 PD1 和 PD2 上
      刚开始发现 uart2 有异常数据,在逻辑分析仪上查看 PD1 & PD2上有异常的脉冲信号.
      尝试直接设置 GPIO 寄存器,但是没有用,异常信号还在.求解答.很着急,
      设备树设置:
      D1设备树.png
      该节点完全注释了,相关的视频节点也都注释了!包括引脚也注释了.
      D1设备树2.png
      uart2 的引脚配置!
      D1引脚2.png
      这是寄存器设置,下面是逻辑分析仪的波形.D1引脚.png D1引脚3.png D1引脚4.png

      ,这个信号在 disp 节点没有关闭时像是一个差分信号.暂时没什么解决的头绪.求大神指点!

      1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 last edited by whycan

        把 uart2 那两条腿的 cfg 寄存器用devmem显示出来,然后对照pdf手册,看看是什么复用。

        D 1 Reply Last reply Reply Quote Share 0
        • D
          dianjixz LV 4 @whycan last edited by

          @whycan D1引脚寄存器.png
          初始的复用关系是这个!
          出来的信号是这个样子!
          D1引脚寄存器1.png
          上面修改复用关系寄存器,是后面调试发现在其他模式下也会出现这个信号!

          1 Reply Last reply Reply Quote Share 0
          • S
            Vogelweide LV 6 last edited by

            请问这个问题解决了吗

            1 Reply Last reply Reply Quote Share 0
            • S
              Vogelweide LV 6 last edited by

              我之前用PD21,PD20,做I2C也发现有脉冲,引脚MUX了也不行。

              whycan 1 Reply Last reply Reply Quote Share 0
              • whycan
                whycan晕哥 LV 9 @suitjune last edited by

                @suitjune
                检查 .sunxi.dts 这个最终生成的设备树文件。

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

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

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