I had a question in my electronics course homework pertaining to eliminating the bounce from a SPDT switch with a Schmitt trigger. The switch has two inputs with opposite polarity. I've looked online and seen some SPST switches that use a capacitor. (this was my initial design attempt before anything. Although, the opposite polarity case caused my design to fail after some simple analysis). I believe just a Schmitt trigger works fine here; however, out of pure interest, how can I improve this simple circuit from a practical standpoint? (I.e., what am I missing here since I am ignoring nonidealities, or anything else?)
I attached a schematic of my design, let me know if you need any more clarifications. Thank you.
Below the schematic is an image of what the expected bounce looks like from my textbook Microelectronic Circuits and Devices, 2nd ed. by Mark N Horenstein, published in 1996, Pearson Education Inc. The figure is P2.122 on page 101.