How to read IO Pin (Digital input and Strong drive mode)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

View solution in original post

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes
Anonymous
Not applicable

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.

0 Likes