You are using different input treshold levels for port 12.
Psw - port is defined as CMOS level
Isw - port is defined as LVTTL.
Both, Psw and Isw are located at port 12
This is not allowed on the same port, so best would be to move one of them to a ditterent I/O port.
Ah! thank you Bob-san, I had lost this point, I was changing the setting parameter of other Pins cause of another problem. It is no need to has different threshold level. Now It is corrected and working well. Appreciate for this answer. Happy PSoC!
You are alway welcome!