Navigation

    全志在线开发者论坛

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

    t113 PWM输出波形不正确

    其它全志芯片讨论区
    2
    3
    252
    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
        lansecd LV 5 @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
          • 1 / 1
          • First post
            Last post

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

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