I want to get the count whenever a pin gets high and store it in a variable and then use every count of the variable in if loop for my process.
What would be the syntax and how can i add a counter if i am using just a pin suppose P0.15 of LPC2148.
can anyone help me with a small guiding syntax to how to incorporate a counting variable for a pin to count no of time the pin gets high and if the pin gets high after a particular value suppose 4 i want to reset the count.
View all questions in Keil forum