A133 GPIO无法输出0v,最低0.1V
-
用A133+android10,发现 GPIO无法输出0v,最低0.1V,并且温度越高,这个最低电平也上升。
dts中配置:lcd_gpio_0 = <&pio PE 6 1 1 3 0>;
同时,请大侠给我标注一下这个的gpio配置项说明和取值范围。我理解倒数第3个数字是上下拉,我修改为2也不行。 -
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. -
A133+android10,有相关完整资料吗
-
@whycan
感谢。这个问题的最终解决:就是在输出1前,我先输出0后delay。实际上,我在初始化io时,寄存器data就是0.
这个现象,和温度还有关:温度上升,这个0电平就会上升。
感谢大家的帮助。 -
@jmhh247 不清楚你要资料是哪部分
-
@szwellchip 如果需要绝对的0建议外置下拉电阻,芯片内置的始终容易温飘影响
-
@szwellchip 开发资料,SDK
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号