The schmitt trigger circuit explained