导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    A133 GPIO无法输出0v,最低0.1V

    其它全志芯片讨论区
    4
    7
    2674
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • S
      szwellchip LV 4 最后由 编辑

      用A133+android10,发现 GPIO无法输出0v,最低0.1V,并且温度越高,这个最低电平也上升。
      dts中配置:lcd_gpio_0 = <&pio PE 6 1 1 3 0>;
      同时,请大侠给我标注一下这个的gpio配置项说明和取值范围。我理解倒数第3个数字是上下拉,我修改为2也不行。

      1 条回复 最后回复 回复 引用 分享 0
      • whycan
        whycan晕哥 LV 9 最后由 whycan 编辑

        https://linux-sunxi.org/Fex_Guide

        Port Definitions
        Description of the GPIO configuration in the form:

        port:<port><mux feature><pullup/down><drive capability><output level>
        where:

        <port> is the port to configure (ie. PH15)
        <mux feature> is the function to configure the port for, mux 0 is as input, mux 1 as output and for 2-7 see A10/PIO, A13/PIO, or A20/PIO for details.
        <pullup/down> is 0 = disabled; 1 = pullup enabled; 2 = pulldown enabled (only valid when port is an input)
        <drive capability> defines the output drive in mA, values are 0-3 corresponding to 10mA, 20mA, 30mA and 40mA.
        <output level> sets the initial output level for the port; 0 = low; 1 = high (only valid for outputs)
        The <pullup/down> <drive capability> and <output level> can be set to <default> which means don't change. Any trailing <default> options can be omitted.

        S 1 条回复 最后回复 回复 引用 分享 0
        • J
          jmhh247 LV 6 最后由 编辑

          A133+android10,有相关完整资料吗

          S 1 条回复 最后回复 回复 引用 分享 0
          • S
            szwellchip LV 4 @whycan 最后由 编辑

            @whycan
            感谢。这个问题的最终解决:就是在输出1前,我先输出0后delay。实际上,我在初始化io时,寄存器data就是0.
            这个现象,和温度还有关:温度上升,这个0电平就会上升。
            感谢大家的帮助。

            WhycanService 1 条回复 最后回复 回复 引用 分享 0
            • S
              szwellchip LV 4 @jmhh247 最后由 编辑

              @jmhh247 不清楚你要资料是哪部分

              J 1 条回复 最后回复 回复 引用 分享 0
              • WhycanService
                WhycanService LV 8 @szwellchip 最后由 编辑

                @szwellchip 如果需要绝对的0建议外置下拉电阻,芯片内置的始终容易温飘影响

                1 条回复 最后回复 回复 引用 分享 0
                • J
                  jmhh247 LV 6 @szwellchip 最后由 编辑

                  @szwellchip 开发资料,SDK

                  1 条回复 最后回复 回复 引用 分享 0
                  • 1 / 1
                  • First post
                    Last post

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

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