during increment the value jump in embedded c

Status
Not open for further replies.

bagavathi

Member level 3
Joined
Nov 15, 2011
Messages
58
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Tamil Nadu,India
Visit site
Activity points
1,686
Hi friends,

I am using LPC 2478 microcontroller. i connect pushbutton switch in the IO pin and which is assigned as input. for every press the value of the variable is incremented i wrrote the program like that. it works but sometime the value got jump.
for ex : incremented 8 ot 10 . 9 is missing . can any one rectify the problem.
 

i don't think saw please post some code here bro!!! is that any debounce of switch problem ?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…