cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

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
JoMe_264151
Expert II

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
JoMe_264151
Expert II

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
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