Navigation

    全志在线开发者论坛

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

    t113 PWM输出波形不正确

    其它全志芯片讨论区
    4
    5
    3093
    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.
    • C
      captain LV 5 last edited by

      主控:t113-s3
      SDK:longan_sdk
      按照一下命令进行操作pwm,输出的pwm波形如图。
      正常情况下,应该输出方波才对。

      echo N > /sys/class/pwm/pwmchip0/export
      echo 1000000 > /sys/class/pwm/pwmchip0/pwmN/period
      echo 500000 > /sys/class/pwm/pwmchip0/pwmN/duty_cycle
      echo 1 > /sys/class/pwm/pwmchip0/pwmN/enable 
      

      a360dc6b-9436-40c9-ac32-a533163846c7-002.png

      L 1 Reply Last reply Reply Quote Share 0
      • L
        linsen LV 7 @captain last edited by

        @captain 在 t113 PWM输出波形不正确 中说:

        况下,应该输出方波才对。

        示波器探头是X10,还是X1?

        C 1 Reply Last reply Reply Quote Share 0
        • C
          captain LV 5 @lansecd last edited by

          @lansecd
          是使用的X1探头

          1 Reply Last reply Reply Quote Share 0
          • radxiaohe
            radxiaohe LV 4 last edited by

            谢谢,在H6上,用上面的命令配置后,可以正确的输出波形。👍

            1 Reply Last reply Reply Quote Share 0
            • Q
              qq1844641696 LV 2 last edited by

              你好,请问问题解决了吗,我这也遇到类似的问题

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

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

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