咨询下,imx6的SION位的作用?希望可以详细说明下。
IMX6SDLRM.pdf的1975页,对SION位的说明我一直不是很明白。
我在读取gpio状态值读取不到时就是把该位设置为1就可以读取状态值了。
37.2.2 SW Loopback through SION Bit
A limited option exists to override the default pad functionality and force the input path
to be active (ipp_ibe==1'b1) regardless of the value driven by the corresponding module.
This can be done by setting the SION (SW Input On) bit in the
IOMUXC_SW_MUX_CTL register (when available) to "1".
Uses include:
• LoopBack - Module X drives the pad and also receives pad value as an input.
• GPIO Capture - Module X drives the pad and the value is captured by GPIO.
不好意思,这么小的问题还麻烦大家。
楼主你好,关于i.mx6的SION的作用在我们的参考手册中描述的很清楚的:
Software Input On Field.
Force the selected mux mode input path no matter of MUX_MODE functionality.
它有两种状态,在参考手册中不同寄存器该位有其对应不同的含义的。
比如:
Pad Mux Register
(IOMUXC_SW_MUX_CTL_PAD_CSI0_DATA19)
SION
Software Input On Field.
Force the selected mux mode input path no matter of MUX_MODE functionality.
1 ENABLED — Force input path of pad CSI0_DAT19.
0 DISABLED — Input Path is determined by functionality of the selected mux mode (regular).
回复第 3 楼 于2014-08-18 17:29:50发表:
楼主你好,关于i.mx6的SION的作用在我们的参考手册中描述的很清楚的:
Software Input On Field.
Force the selected mux mode input path no matter of MUX_MODE functionality.
它有两种状态,在参考手册中不同寄存器该位有其对应不同的含义的。
比如:
Pad Mux Register
(IOMUXC_SW_MUX_CTL_PAD_CSI0_DATA19)
SION
Software Input On Field.
Force the selected mux mode input path no matter of MUX_MODE functionality.
1 ENABLED — Force input path of pad CSI0_DAT19.
0 DISABLED — Input Path is determined by functionality of the selected mux mode (regular).
==========================
感谢您的答复,但是如果我设置IOMUXC_SW_MUX_CTL_PAD_CSI0_DATA19为gpio模式,并gpio_direction_output设置该gpio为输出模式来输出高低电平,那么SION为1来强制input path 与该输出模式不是有冲突吗?不会有影响吗?谢谢!