I am rather new to this and I have a project where I need to debounce a switch using some sort of algorithm. I choose to go with utilizing shift registers rather than a delay because of the versatility of it. I think I have the basic outline of how I am going to do it i.e use timer interrupts call the debounce sub routine etc etc being new to coding this is where I am falling short. I know I need to set a threshold so the switch knows it is debounceed but I don't know how to set that up. I am using assembly language but any help would be appreciated. Also any tips on implementing this would be great as well. Thanks!