Navigation

    全志在线开发者论坛

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

    提高香橙派GPIO最高速率

    H/F/TV Series
    2
    2
    1619
    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
      ddrddr LV 5 last edited by

      使用香橙派zero3,最高只能达到5MHz的信号,请问如何提高gpio速率?

      这个速率是参照网上树莓派的实现方法,直接对gpio写操作的寄存器循环进行写1和0。但只能产生最高5MHz的方波,即仅10MHz的写。函数是参照writeR实现的,在它单次写寄存器的基础上加了小循环写。用示波器可见5MHz方波。

      但实际需要30MHz的频率,请问zero3如何支持?需要修改APB频率吗?还是说h618芯片不支持这么高的频率呢

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

        SoC一般不推荐GPIO翻转,如果需要提高需要提高APB的时钟,但是修改APB的时钟会对APB上的全部设备造成影响,例如UART,TWI,PWM,Timer全部需要重新计算频率配置

        1ea7f7cb-1d03-48b4-9151-fb997d0dc2eb-image.png

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

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

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