Latch for 2 seconds | Cypress Semiconductor
Latch for 2 seconds
I have a pin called "OVER_CURRENT" that goes low when an over current condition occurs. When this happens I'd like it to latch for 2 seconds. During this period I'd like the driving pin "PIEZO_DRV" to go low. After 2 seconds if the OVER_CURRENT pin is high I'd like the driving pin to go high again. I think this should be pretty simple in hardware but I'm having trouble. I figured I could use a SR Flip Flop but I can't quite make sense of it. I've attached what I have attempted so far.