Navigation

    全志在线开发者论坛

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

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

    其它全志芯片讨论区
    4
    7
    4460
    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.
    • S
      szwellchip LV 4 last edited by

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

      1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 last edited by 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 Reply Last reply Reply Quote Share 0
        • J
          jmhh247 LV 6 last edited by

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

          S 1 Reply Last reply Reply Quote Share 0
          • S
            szwellchip LV 4 @whycan last edited by

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

            WhycanService 1 Reply Last reply Reply Quote Share 0
            • S
              szwellchip LV 4 @jmhh247 last edited by

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

              J 1 Reply Last reply Reply Quote Share 0
              • WhycanService
                WhycanService LV 8 @szwellchip last edited by

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

                1 Reply Last reply Reply Quote Share 0
                • J
                  jmhh247 LV 6 @szwellchip last edited by

                  @szwellchip 开发资料,SDK

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

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

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