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, thank you for replaying my question.
I tried to change pin drive mode to "Digital High Impedance".
Then t it work as I expected.