Microcontroller › 8051 › state machine code › Hey praneeth,Describe your
December 18, 2015 at 12:55 pm #13588
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.