Have you a pull down resistor (say 10K) on pins 2 & 3 ?
You changed both ang and chiran to volatile ?
What board / processor have you and what is connected to pins 2 & 3 ?
Have you a pull down resistor (say 10K) on pins 2 & 3 ?
You changed both ang and chiran to volatile ?
What board / processor have you and what is connected to pins 2 & 3 ?