7 Replies Latest reply on Jul 8, 2019 12:03 AM by DaHu_285096

    Digital Input pin state not updating

    DaHu_285096

      I have an issue that has never appeared before. I am running PSOC creator 4.2 and Device is 5LP.

       

      I have a switch to ground on pin 12.7

       

      In the main loop the code reads the switch and stores into volatile uint8 "myID".

       

      ie: myID = SW1_Read();

       

      If I run with debugger the value changes between 0 and 1 shenw I change switch position.

       

      When I program the code into the target, it reads the correct value on start but if I change the switch while it is running it does not update to new value.