I have Configured GPIO 1 Pin 2 as I/P and the pin is working fine.
Current Behavior
User Input | Pin value |
0 | 0 |
1 | 1 |
No-Input | 1 |
But problem lies hear. when I'm not giving any I/P .Pin is in state 1.
I have tried configuring the IOMUXC_SW_PAD_CTL_PAD_GPIO_AD_B0_02 Register with Open Drain Bit Enabled, but still I am facing Problem.
I need my PIN to behave like below table.
User Input | Pin value |
0 | 0 |
1 | 1 |
No-Input | 0 |
Can anyone help me on this.
Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
Actually, I'm not very clear with your question, whether you want to the input value will be 0 when the input GPIO is floating.
If yes, I'm afraid that the GPIO doesn't support this feature, as the input buffer's keeper is always enabled for all the pads, in another word, the pad will hold the previous the input value.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
To make my question Precise.
I'm using IMXRT1050 EVK Board.
I have configured a GPIO PIN as Input with Open Drain Enabled
I need to know what will be the PIN state if I'm not giving any Input??
What I need
---> I need my PIN to behave like , If I give 3.3 V It should be in '1'. If I give 0 Volt It should be in'0'. If I don't give any Input It should be in '0'.
--> But I have noticed is
If I give 3.3 V It should be in '1'. If I give 0 Volt It should be in'0'. If I don't give any Input It is in '1'.
Hope this may gives you what I need . I have tried all Possible register Configuration.
If you have any solution Please help me on this.
Thanks for your reply.
In the GPIO module, it exists a wake pull-up resistor which assures the
input GPIO state is stuck high when the input GPIO is floating, otherwise, it will be interfered by noise.
So the RT050 can't satisfy your requirement.
Hope this is clear.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi Jere,
Hope this have gave me a clarity. Thanks for your reply.