- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I have a problem to read IO pin status.
Device:CY8C5868AXI-LP035
Pin name:OK_MPU, Port:12[3] ,Type:Digital Input,
Drive mode:Strong drive (to connect to other output enable pins)
Then I write in the program
tmp = OK_MPU_Read();
But if OK_MPU pin is connected to GND, Always tmp status = "1".
How can I read correct pin status ?
Please give advice to me.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum!
Better is to set the pin drive mode to "Digital High Impedance".
It is easier for us when you post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum!
Better is to set the pin drive mode to "Digital High Impedance".
It is easier for us when you post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bob, thank you for replaying my question.
I tried to change pin drive mode to "Digital High Impedance".
Then t it work as I expected.