i.MX6DL的GPIO1_IO00的状态获取异常

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6DL的GPIO1_IO00的状态获取异常

2,419 Views
yufengzhao
Contributor I

i.MX6DL的GPIO问题,

使用i.MX6DL的GPIO1_IO00做输入,用iomux配置为输入模式,外部输入高电平,已测试确认信号到该引脚上的电平正确,使用12年批次的CPU的板子,读取状态正常,

使用14年新采购的芯片的板子,但通过读取指令读取该IO的状态,始终返回为0。硬件相同,所有的板卡是同样的问题,请问是可能是什么原因。

Labels (2)
0 Kudos
Reply
3 Replies

2,008 Views
BiyongSUN
NXP Employee
NXP Employee

please use /unit_tests/memtool to dump the related registers including iomux register and GPIO register to indetify the issue.

0 Kudos
Reply

2,008 Views
yufengzhao
Contributor I

谢谢Biyong!

我们发现只有将IOMUXC_SW_MUX_CTL_PAD_GPIO00寄存器的bit4(SION)设置为1,输入检测就正常了,我们以前的设置是,bit4为0,bit2~bit0(MUX_MODE)设置为101.

请问这两种配置方式有什么区别吗?

谢谢!

0 Kudos
Reply

2,008 Views
BiyongSUN
NXP Employee
NXP Employee

How's the pad control register? The IOMUX is two important parts. One is the settings. the other is the control.

36.4.376 Pad Control Register

(IOMUXC_SW_PAD_CTL_PAD_GPIO00)

Untitled.png

0 Kudos
Reply