- This topic has 2 replies, 2 voices, and was last updated 8 years, 12 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › state machine code
i want state machine code in place of debounce delay when we switch button
pls any body help me..its urgent
Hey praneeth,
Describe your stuff in brief. You want to debouncing of switch button using state code. You can do easily by use of combination of interrupt service routine and switch case.
Note: Please define your state read variable as volatile.
i want to set the time in digital clock program.firstly if i press one switch it flag will be incremented and when flag==1 hours should be set by dec and incr with the help of switches…like wise othe for min also…can u provide code for that