If you don't mind a few components you could implement a classic discrete 2 transistor Schmitt trigger with two BJTs and 5 resistors. Component sizes can be at "breathing hazard" level if you can handle them. Or with 4 resistors using an NPN/PNP pair. You can then design I_max_transition to suit. Data sheets are for dimension information only: DFN2020B-3 2 x 2 mm https://www.diodes.com/assets/Datasheets/ZXTN619MA.pdf DFN1006B-3 / SOT883 / SC101 1.3 x 0.9 mm https://assets.nexperia.com/documents/data-sheet/PMBT3906M.pdf Resistors Choose your poison 0.4 x 0.2 mm 0.6 x 0.3 1.0 x 0.5 ..... http://www.samsungsem.com/kr/support/product-search/chip-resistor/__icsFile= s/afieldfile/2019/01/21/RC_Spec_Sheet(1901).pdf > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .