I have made PORTC.0,PORTC.1,PORTC.2,PORTC.3 as input and set it at high. The remaining pins are set as output and high. Thus all pins of PORTC are high.
Now what I want to check that whenever any pin of PORTC gets low (0), then my function "setDirection()"should be called. For that I have written
but ~PINC condition comes out to be always true, irrespective of any pin of PORTC is low or not. Then I tried this code
this condition never turns out to be true, either PORTC PIN is high or low.